Function at 0x58c78c
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.00405f18
mov eax, dword [ebp - 8]
call fcn.00405f18
mov eax, dword [ebp - 0xc]
call fcn.00405f18
mov eax, dword [ebp + 0x18]
call fcn.00405f18
mov eax, dword [ebp + 0x14]
call fcn.00405f18
mov eax, dword [ebp + 0x10]
call fcn.00405f18
xor eax, eax
push ebp
push 0x58c9d7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x58c81d
mov eax, dword [0x5d6114]
cmp dword [eax], 2
jne 0x58c81d
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.0058c480
mov ebx, eax
jmp 0x58c9af
lea eax, [ebp - 0x10]
call fcn.00405a98
jmp 0x58c8a4
mov edx, dword [ebp + 0x10]
mov eax, 0x58c9f0
call fcn.0041038c
mov ebx, eax
test ebx, ebx
jne 0x58c847
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00405b30
jmp 0x58c85b
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp + 0x10]
call fcn.00405f90
test ebx, ebx
je 0x58c871
lea ecx, [ebx + 1]
lea eax, [ebp + 0x10]
mov edx, 1
call fcn.00405fd0
jmp 0x58c879
lea eax, [ebp + 0x10]
call fcn.00405a98
cmp dword [ebp - 0x10], 0
jne 0x58c88c
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00405b30
jmp 0x58c8a4
push dword [ebp - 0x10]
push 0x58c9fc
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405e2c
mov eax, dword [ebp + 0x10]
call fcn.00405d58
test eax, eax
jne 0x58c827
cmp dword [ebp - 0x10], 0
je 0x58c8d3
lea eax, [ebp - 0x10]
mov edx, 0x58ca08
call fcn.00405d64
mov eax, dword [ebp - 0x10]
call fcn.00405f28
mov ebx, eax
jmp 0x58c8d5
xor ebx, ebx
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403d74
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 1
cmp esi, 4
ja case.default.0x58c8f7
jmp dword [esi*4 + 0x58c8fe]
mov word [ebp - 0x2c], 5
jmp case.default.0x58c8f7
mov word [ebp - 0x2c], 0
jmp case.default.0x58c8f7
mov word [ebp - 0x2c], 3
jmp case.default.0x58c8f7
mov word [ebp - 0x2c], 2
jmp case.default.0x58c8f7
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.00405f28
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x58c966
mov ebx, 0xfffffff5
jmp 0x58c99d
cmp byte [ebp + 0xc], 0
je 0x58c98d
mov eax, dword [0x5d5d78]
mov eax, dword [eax]
call fcn.00485f60
push 0x3e8
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x58c96c
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 0x58c9de
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00405abc
lea eax, [ebp + 0x10]
mov edx, 3
call fcn.00405abc
ret