Function at 0x458790
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403fd4
mov eax, dword [ebp - 0xc]
call fcn.00403fd4
mov eax, dword [ebp + 8]
call fcn.00403fd4
xor eax, eax
push ebp
push 0x4589c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x8c], 0
jne 0x458999
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00402b60
mov eax, dword [ebp - 4]
call fcn.004583dc
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.00458770
cmp dword [ebp - 8], 0
je 0x458811
mov eax, dword [ebp - 8]
call fcn.00403fe4
mov ebx, eax
jmp 0x458813
xor ebx, ebx
cmp dword [ebp - 0xc], 0
je 0x458835
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4589dc
call fcn.00403e6c
mov eax, dword [ebp - 0x54]
call fcn.00403fe4
mov esi, eax
jmp 0x458837
xor esi, esi
cmp dword [ebp + 8], 0
je 0x458849
mov eax, dword [ebp + 8]
call fcn.00403fe4
mov edi, eax
jmp 0x45884b
xor edi, edi
mov eax, dword [ebp - 4]
add eax, 0x3c
push eax
lea eax, [ebp - 0x50]
push eax
push edi
push 0
push 0x8000000
push 0xffffffffffffffff
push 0
push 0
push esi
push ebx
call sub.kernel32.dll_CreateProcessA
neg eax
sbb eax, eax
neg eax
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x30], edx
test bl, bl
je 0x458994
mov eax, dword [ebp - 4]
mov byte [eax + 0x8c], 1
xor eax, eax
push ebp
push 0x45898d
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x458278]
call fcn.004589f8
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4582e0]
call fcn.00458bd0
jmp 0x4588fb
mov eax, dword [0x4bdb04]
mov eax, dword [eax]
call fcn.00431274
push 0xff
push 0xffffffffffffffff
push 0
mov eax, dword [ebp - 4]
add eax, 0x3c
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4588ef
mov eax, dword [ebp - 4]
add eax, 0x4c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x458933
call fcn.0040c6b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458999
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
mov byte [eax + 0x8c], 0
mov eax, dword [ebp - 4]
cmp word [eax + 0x92], 0
je 0x45898c
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x94]
call dword [ebx + 0x90]
ret
call fcn.0040c6b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4589cb
lea eax, [ebp - 0x54]
call fcn.00403ba0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403bc4
lea eax, [ebp + 8]
call fcn.00403ba0
ret