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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x603246
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x697bc0]
xor eax, esp
mov dword [esp + 0x2b4], eax
push esi
push edi
mov eax, dword [0x697bc0]
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.005c63d0
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.004fdb70
mov esi, eax
test esi, esi
je 0x4fdb43
mov ecx, str.Wtsapi32.dll
call fcn.004fdb70
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4fdb43
mov ecx, str.Userenv.dll
call fcn.004fdb70
mov dword [esp + 0x10], eax
test eax, eax
je 0x4fdb43
mov ecx, str.advapi32.dll
call fcn.004fdb70
mov dword [esp + 0x14], eax
test eax, eax
je 0x4fdb43
call fcn.004fdd70
push 0x66f064
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
test eax, eax
je 0x4fdb43
call eax
push 0x66f0a0
push dword [esp + 0x20]
mov dword [esp + 0x28], eax
call esi
test eax, eax
jne 0x4fd9c3
push 0x1fe
push eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc6]
push eax
call fcn.005c63d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress__WTSQueryUserToken__failed_Error:_d
jmp 0x4fdb24
lea ecx, [esp + 0x24]
push ecx
push dword [esp + 0x24]
call eax
mov edi, eax
test edi, edi
jne 0x4fda03
push 0x1fe
push eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc6]
push eax
call fcn.005c63d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WTSQueryUserToken_failed_Error:_d
jmp 0x4fdb24
push 0x66f57c
push dword [esp + 0x14]
call esi
test eax, eax
jne 0x4fda41
push 0x1fe
push eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc6]
push eax
call fcn.005c63d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress__CreateEnvironmentBlock__failed_Error:_d
jmp 0x4fdb24
push 0
push dword [esp + 0x28]
lea ecx, [esp + 0x30]
push ecx
call eax
test eax, eax
jne 0x4fda81
push 0x1fe
push eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc6]
push eax
call fcn.005c63d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateEnvironmentBlock_failed_Error:_d
jmp 0x4fdb24
push 0x66f658
push dword [esp + 0x14]
call esi
test eax, eax
jne 0x4fdabe
xor eax, eax
push 0x1fe
push eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc6]
push eax
call fcn.005c63d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress__DestroyEnvironmentBlock__failed_Error:_d
jmp 0x4fdb24
push 0x66f6e4
push dword [esp + 0x18]
call esi
test eax, eax
je 0x4fda90
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 0x4fdb43
push 0x1fe
push eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc6]
push eax
call fcn.005c63d0
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.005c6c09
mov esp, ebp
pop ebp
ret