Function at 0x458390
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bc578
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eb86c]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
call fcn.0045a356
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4583d3
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x40
lea ecx, [esp + 0x38]
push ebx
push ecx
mov dword [esp + 0x88], ebx
call fcn.00489e60
mov edx, dword [esp + 0x90]
xor eax, eax
add esp, 0xc
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0x44
call fcn.00405b00
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 1
call fcn.00457210
lea ecx, [esp + 0x14]
call fcn.004571a0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00403380
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 2
call fcn.004047c0
lea eax, [esi - 0x10]
or ebp, 0xffffffff
mov byte [esp + 0x7c], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45848c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x88]
cmp esi, ebx
je 0x4584ca
push 1
push 0x4c1bf0
lea ecx, [esp + 0x20]
call fcn.0040c0e0
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4584b0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.0040c0e0
mov edi, dword [esp + 0x18]
push edi
push str._INFO_Launch_Process:__s_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4585e2
cmp byte [esp + 0x8c], bl
je 0x458578
mov eax, dword [esp + 0x20]
push ebp
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45853b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERROR_Failed_to_wait_end_process:_0x_x_n
call fcn.0044f300
push eax
call fcn.0044fb20
add esp, 0xc
jmp 0x458578
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x458578
mov eax, dword [esp + 0x1c]
push eax
push str._INFO_Exit_Code:_0x_x_n
call fcn.0044f300
push eax
call fcn.0044fb20
mov eax, dword [esp + 0x9c]
add esp, 0xc
cmp eax, ebx
je 0x458578
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x7c], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4585af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x7c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4585cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERROR_CreateProcess_failed:_0x_x_n
call fcn.0044f300
push eax
call fcn.0044fb20
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x7c], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45861f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x7c], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x45863c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret