Function at 0x403720
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431338
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x43ec2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.ProcUtil::ExecuteProcess_r_n
push 0x442e1c
mov dword [ebp - 4], 1
call fcn.004013e0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00401610
lea esi, [eax + 0x10]
add esp, 0xc
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x4037a7
push 1
push 0x437408
lea ecx, [ebp - 0x14]
call fcn.004014b0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.004014b0
mov esi, dword [ebp - 0x14]
push esi
push 0x43740c
push 0x442e1c
call fcn.004013e0
push 0x40
lea ecx, [ebp - 0x68]
push ebx
push ecx
call fcn.0041af50
add esp, 0x18
xor eax, eax
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x6c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4038f0
cmp dword [ebp + 0x10], ebx
je 0x40385d
mov ecx, dword [ebp - 0x24]
push 0xffffffffffffffff
push ecx
mov dword [ebp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40382c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_wait_end_process_0x_x__r_n
push 0x442e1c
call fcn.004013e0
add esp, 0xc
jmp 0x40385d
mov eax, dword [ebp - 0x24]
lea edx, [ebp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40385d
mov ecx, dword [ebp + 0x10]
push ecx
push str.Exit_Code:_0x_x_r_n
push 0x442e1c
call fcn.004013e0
add esp, 0xc
cmp edi, ebx
je 0x40385d
mov edx, dword [ebp + 0x10]
mov dword [edi], edx
mov eax, dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [ebp - 0x20]
push ecx
call edi
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40388f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4038b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4038d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failed_0x_x__r_n
push 0x442e1c
call fcn.004013e0
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403929
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40394b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403971
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc