Function at 0x42d5c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c810
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4c7050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
call fcn.00403660
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x42d621
push 0x80004005
call fcn.00403040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push dword [ebp + 8]
push str.__s___s
push eax
call fcn.00403490
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004031c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0042bc10
push 0x44
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.00452ac0
movdqu xmm0, xmmword [str.winsta0default]
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edi, dword [ebp - 0x38]
add esp, 0x14
movdqu xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x94], 0x44
movdqu xmm0, xmmword [0x4a4750]
mov dword [ebp - 0x8c], eax
movdqu xmmword [ebp - 0x20], xmm0
cmp dword [esi - 4], 1
jle 0x42d6c6
push dword [esi - 0xc]
lea ecx, [ebp - 0x34]
call fcn.00403410
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x42d6dd
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00403410
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push edi
push 0
push 0
push 0
push 0
push 0
push esi
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp + 0x10], 0
mov ebx, eax
je 0x42d721
push 0xffffffffffffffff
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x4c]
call edi
mov edx, dword [ebp - 0x38]
or edi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 2
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x42d744
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42d761
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov ecx, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42d781
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x42d7a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448352
mov esp, ebp
pop ebp
ret