That is not it....
Read the assembly and look at the address's(ntdll module).... Its doing a check, not any console functions, what has me confused is its been done in the ntdll module? this was always found in the engine.exe or CShell.dll I dont remember which one it was it now(pretty sure its Engine.exe right before the PTC unwrapped) hence why we get the unwrapped PTC...
Anyway there is that many different calls to sub functions that it would impossible to recreate it,