Function at 0x4f43c0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x599c96
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x615720]
xor eax, esp
mov dword [esp + 0x2b4], eax
push esi
push edi
mov eax, dword [0x615720]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], edi
mov word [esp + 0x8c], ax
mov dword [esp + 0x2d0], eax
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], eax
mov word [esp + 0xa4], ax
push 0x44
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0x2d8], 1
push eax
call fcn.0055eb60
add esp, 0xc
mov dword [esp + 0x2c], 0x44
xorps xmm0, xmm0
mov dword [esp + 0x34], str.WinSta0Default
mov ecx, str.Kernel32.dll
movdqa xmmword [esp + 0x74], xmm0
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
call fcn.004f46e0
mov esi, eax
test esi, esi
je 0x4f46b3
mov ecx, str.Wtsapi32.dll
call fcn.004f46e0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4f46b3
mov ecx, str.Userenv.dll
call fcn.004f46e0
mov dword [esp + 0x10], eax
test eax, eax
je 0x4f46b3
mov ecx, str.advapi32.dll
call fcn.004f46e0
mov dword [esp + 0x14], eax
test eax, eax
je 0x4f46b3
call fcn.004f48e0
push str.WTSGetActiveConsoleSessionId
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
test eax, eax
je 0x4f46b3
call eax
push 0x5f8140
push dword [esp + 0x20]
mov dword [esp + 0x28], eax
call esi
test eax, eax
jne 0x4f4533
push 0x1fe
push eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc6]
push eax
call fcn.0055eb60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress__WTSQueryUserToken__failed_Error:_d
jmp 0x4f4694
lea ecx, [esp + 0x24]
push ecx
push dword [esp + 0x24]
call eax
mov edi, eax
test edi, edi
jne 0x4f4573
push 0x1fe
push eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc6]
push eax
call fcn.0055eb60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WTSQueryUserToken_failed_Error:_d
jmp 0x4f4694
push 0x5f85fc
push dword [esp + 0x14]
call esi
test eax, eax
jne 0x4f45b1
push 0x1fe
push eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc6]
push eax
call fcn.0055eb60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress__CreateEnvironmentBlock__failed_Error:_d
jmp 0x4f4694
push 0
push dword [esp + 0x28]
lea ecx, [esp + 0x30]
push ecx
call eax
test eax, eax
jne 0x4f45f1
push 0x1fe
push eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc6]
push eax
call fcn.0055eb60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateEnvironmentBlock_failed_Error:_d
jmp 0x4f4694
push 0x5f86d8
push dword [esp + 0x14]
call esi
test eax, eax
jne 0x4f462e
xor eax, eax
push 0x1fe
push eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc6]
push eax
call fcn.0055eb60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress__DestroyEnvironmentBlock__failed_Error:_d
jmp 0x4f4694
push 0x5f8764
push dword [esp + 0x18]
call esi
test eax, eax
je 0x4f4600
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x30]
push ecx
push 0
push dword [esp + 0x34]
push 0x430
push 0
push 0
push 0
push dword [esp + 0x38]
push 0
push dword [esp + 0x4c]
call eax
mov edi, eax
test edi, edi
jne 0x4f46b3
push 0x1fe
push eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc6]
push eax
call fcn.0055eb60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUser_failed_Error:_d
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, edi
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.0055e48d
mov esp, ebp
pop ebp
ret