Function at 0x4c5990
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x4c5998
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405b5c
xor eax, eax
push ebp
push 0x4c5c73
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
call fcn.0040af30
test al, al
jne 0x4c5a0d
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.0040b324
mov eax, dword [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
call fcn.0040b454
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x70]
pop edx
call fcn.004bdcb8
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 4]
call fcn.00405774
mov eax, dword [ebp - 4]
call fcn.0040af30
test al, al
jne 0x4c5a0d
mov dword [ebp - 0x18], 0x20000003
cmp dword [ebp - 0x18], 0
jne 0x4c5c48
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
call fcn.0040b1e4
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 8]
mov edx, 0x4c5c8c
call fcn.004bdcb8
mov eax, dword [ebp - 8]
call fcn.0040af30
test al, al
jne 0x4c5a69
lea eax, [ebp - 0x80]
call fcn.0040b454
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 8]
mov edx, 0x4c5c8c
call fcn.004bdcb8
mov eax, dword [ebp - 8]
call fcn.0040af30
test al, al
jne 0x4c5a69
mov dword [ebp - 0x18], 0x20000004
cmp dword [ebp - 0x18], 0
jne 0x4c5c48
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 4]
call fcn.0040b218
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0xc]
mov edx, 0x4c5ca0
call fcn.004bdcb8
mov eax, dword [ebp - 0xc]
call fcn.0040af30
test al, al
jne 0x4c5b02
call fcn.004bd7fc
sub al, 5
je 0x4c5ab1
sub al, 2
je 0x4c5ab1
sub al, 2
jne 0x4c5ad1
lea eax, [ebp - 0x88]
call fcn.0040b454
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0xc]
mov edx, 0x4c5cb4
call fcn.004bdcb8
jmp 0x4c5aef
lea eax, [ebp - 0x8c]
call fcn.0040b454
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0xc]
mov edx, 0x4c5ccc
call fcn.004bdcb8
mov eax, dword [ebp - 0xc]
call fcn.0040af30
test al, al
jne 0x4c5b02
mov dword [ebp - 0x18], 0x20000001
cmp dword [ebp - 0x18], 0
jne 0x4c5c48
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004c0e00
cmp dword [ebp - 0x10], 0
je 0x4c5b3c
mov eax, dword [ebp - 0x10]
call fcn.0040af30
test al, al
je 0x4c5b3c
mov eax, dword [ebp - 0x10]
call fcn.004c5930
test al, al
je 0x4c5b3c
mov dword [ebp - 0x18], 0x20000005
cmp dword [ebp - 0x18], 0
jne 0x4c5c48
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403b3c
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 0xa
test bl, bl
je 0x4c5b7c
lea eax, [ebp - 0x14]
mov edx, 0x4c5ce4
call fcn.00405774
jmp 0x4c5b89
lea eax, [ebp - 0x14]
mov edx, 0x4c5d04
call fcn.00405774
mov eax, dword [ebp - 8]
call fcn.0040af30
test al, al
je 0x4c5c48
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0x8000020
push 0
push 0
push 0
push dword [ebp - 8]
push 0x4c5d24
push 0x4c5d30
push dword [ebp - 0x14]
push 0x4c5d3c
push dword [ebp - 4]
push 0x4c5d30
lea eax, [ebp - 0x90]
mov edx, 7
call fcn.00405a70
mov eax, dword [ebp - 0x90]
call fcn.00405b6c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4c5c48
xor eax, eax
push ebp
push 0x4c5c41
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5c48
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5c7a
lea eax, [ebp - 0x90]
mov edx, 9
call fcn.00405700
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00405700
ret