Function at 0x402730
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f8bb
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x4899f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], 0
push 0x40
push 0
lea eax, [ebp - 0x70]
push eax
call fcn.004472f0
add esp, 0xc
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x14]
call fcn.00420390
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x4027c2
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
je 0x4027c2
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.__s___s
lea eax, [ebp - 0x14]
push eax
call fcn.004090d0
add esp, 0x10
jmp 0x4027d7
mov ecx, dword [ebp + 8]
push ecx
push 0x4757ac
lea edx, [ebp - 0x14]
push edx
call fcn.004090d0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x78]
call fcn.00405ec0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0xa8], ecx
push 0x5c
mov edx, dword [ebp - 0xa8]
push edx
call fcn.00448407
add esp, 8
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x40281c
mov dword [ebp - 0xcc], 0xffffffff
jmp 0x40282b
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0x78]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 0
jle 0x402881
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x78]
call fcn.004062a0
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xac], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xac]
push edx
lea ecx, [ebp - 0x78]
call fcn.00406c40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00406c00
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xb8], ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0xb4]
push ecx
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0xb8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4028f4
mov dword [ebp - 0x88], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.00406c00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406c00
mov eax, dword [ebp - 0x88]
jmp 0x40298f
mov dword [ebp - 0x10], 1
cmp dword [ebp + 0x10], 0
jbe 0x402951
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x7c], eax
cmp dword [ebp + 0x14], 0
je 0x402951
cmp dword [ebp - 0x7c], 0
jne 0x402951
mov dword [ebp - 0x80], 0xffffffff
lea edx, [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 0x18], 0
je 0x402941
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x80]
mov dword [ecx], edx
cmp dword [ebp - 0x80], 0x80000000
jb 0x402951
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x8c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.00406c00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406c00
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret