Function at 0x58c70c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00405ec4
mov eax, dword [ebp - 8]
call fcn.00405ec4
mov eax, dword [ebp - 0xc]
call fcn.00405ec4
mov eax, dword [ebp + 0x18]
call fcn.00405ec4
mov eax, dword [ebp + 0x14]
call fcn.00405ec4
mov eax, dword [ebp + 0x10]
call fcn.00405ec4
xor eax, eax
push ebp
push 0x58c957
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x58c79d
mov eax, dword [0x5d510c]
cmp dword [eax], 2
jne 0x58c79d
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
movzx eax, byte [ebp + 0xc]
push eax
push esi
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0058c400
mov ebx, eax
jmp 0x58c92f
lea eax, [ebp - 0x10]
call fcn.00405a44
jmp 0x58c824
mov edx, dword [ebp + 0x10]
mov eax, 0x58c970
call fcn.00410338
mov ebx, eax
test ebx, ebx
jne 0x58c7c7
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00405adc
jmp 0x58c7db
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp + 0x10]
call fcn.00405f3c
test ebx, ebx
je 0x58c7f1
lea ecx, [ebx + 1]
lea eax, [ebp + 0x10]
mov edx, 1
call fcn.00405f7c
jmp 0x58c7f9
lea eax, [ebp + 0x10]
call fcn.00405a44
cmp dword [ebp - 0x10], 0
jne 0x58c80c
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00405adc
jmp 0x58c824
push dword [ebp - 0x10]
push 0x58c97c
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405dd8
mov eax, dword [ebp + 0x10]
call fcn.00405d04
test eax, eax
jne 0x58c7a7
cmp dword [ebp - 0x10], 0
je 0x58c853
lea eax, [ebp - 0x10]
mov edx, 0x58c988
call fcn.00405d10
mov eax, dword [ebp - 0x10]
call fcn.00405ed4
mov ebx, eax
jmp 0x58c855
xor ebx, ebx
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403d20
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 1
cmp esi, 4
ja case.default.0x58c877
jmp dword [esi*4 + 0x58c87e]
mov word [ebp - 0x2c], 5
jmp case.default.0x58c877
mov word [ebp - 0x2c], 0
jmp case.default.0x58c877
mov word [ebp - 0x2c], 3
jmp case.default.0x58c877
mov word [ebp - 0x2c], 2
jmp case.default.0x58c877
mov word [ebp - 0x2c], 7
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push ebx
push 0x10
push 0
push 0
push 0
mov eax, dword [ebp + 0x18]
call fcn.00405ed4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x58c8e6
mov ebx, 0xfffffff5
jmp 0x58c91d
cmp byte [ebp + 0xc], 0
je 0x58c90d
mov eax, dword [0x5d4d74]
mov eax, dword [eax]
call fcn.00485f0c
push 0x3e8
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x58c8ec
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58c95e
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00405a68
lea eax, [ebp + 0x10]
mov edx, 3
call fcn.00405a68
ret