Function at 0x405fb0
Capabilities:
Create process on windows
Resume thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x4278
call fcn.00409410
mov eax, dword [0x46a124]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x44
lea eax, [ebp - 0x4278]
push 0
push eax
call fcn.0040a3a0
xorps xmm0, xmm0
push 0x5c
push 0x46bbb0
movaps xmmword [ebp - 0x4230], xmm0
call fcn.0040aa74
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40601a
xor eax, eax
mov edi, 0x46bbb0
mov word [esi], ax
add esi, 2
jmp 0x406024
mov esi, 0x46bbb0
mov edi, 0x4956a0
push 0x46bdb8
push 0x491260
lea eax, [ebp - 0x4210]
push 0x45ccb8
push eax
call fcn.004020d0
add esp, 0x10
cmp byte [0x46ffc6], 0
jne 0x4060f1
cmp word [esi], 0
je 0x4060f1
xor ecx, ecx
lea eax, [ebp - 0x4230]
cmp word [0x46fdb8], cx
push eax
lea eax, [ebp - 0x4278]
push eax
mov eax, 0x46fdb8
cmove eax, ecx
push eax
mov eax, dword [0x46ffc8]
push ecx
or eax, 0x414
push eax
lea eax, [ebp - 0x4210]
push eax
xor eax, eax
cmp byte [0x46a10a], al
push ecx
setne al
push eax
push 0x491480
push edi
push esi
call dword [0x46ffd4]
test eax, eax
jne 0x40621e
push 0x491260
push str._rPsExec_could_not_start__s:_n
push 2
call fcn.00413ed7
add esp, 4
push eax
call fcn.00402680
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
call esi
push eax
call fcn.004040a0
add esp, 4
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004093c1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x4214]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp byte [0x46ffc6], 0
je 0x406181
push dword [ebp - 0x4214]
call fcn.00402970
mov edi, eax
add esp, 4
test edi, edi
jne 0x406171
push str._rPsExec_could_not_create_a_limited_user_token:_n
push 2
call fcn.00413ed7
add esp, 4
push eax
call fcn.00402680
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.004040a0
add esp, 4
push dword [ebp - 0x4214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004093c1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push dword [ebp - 0x4214]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x40618d
mov edi, dword [ebp - 0x4214]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
lea eax, [ebp - 0x4230]
cmp word [0x46fdb8], cx
push eax
lea eax, [ebp - 0x4278]
push eax
mov eax, 0x46fdb8
cmove eax, ecx
push eax
mov eax, dword [0x46ffc8]
push ecx
or eax, 0x414
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x4210]
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x406219
push 0x491260
push str._rPsExec_could_not_start__s:_n
push 2
call fcn.00413ed7
add esp, 4
push eax
call fcn.00402680
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
call esi
push eax
call fcn.004040a0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004093c1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push edi
call esi
jmp 0x406224
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x46ffc8], 0x100000
jne 0x40623e
push dword [ebp - 0x4230]
call fcn.00403000
add esp, 4
mov eax, dword [0x46ffcc]
test eax, eax
je 0x406254
push eax
push dword [ebp - 0x4230]
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
push dword [ebp - 0x422c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [0x46ffc1], 0
jne 0x4062a1
push 0xffffffffffffffff
push dword [ebp - 0x4230]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x4218]
push eax
push dword [ebp - 0x4230]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x4218]
push 0x491260
push str._s_exited_with_error_code__d._n
call fcn.00404170
jmp 0x4062c2
push dword [ebp - 0x4228]
push 0x491260
push str._s_started_with_process_ID__d._n
call fcn.00404170
mov eax, dword [ebp - 0x4228]
mov dword [ebp - 0x4218], eax
add esp, 0xc
push dword [ebp - 0x422c]
call esi
push dword [ebp - 0x4230]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4218]
xor ecx, ebp
pop edi
pop esi
call fcn.004093c1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret