Function at 0x4c5a94
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x4c5a9c
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405b5c
xor eax, eax
push ebp
push 0x4c5d77
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 0x4c5b11
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.004bdd24
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 4]
call fcn.00405774
mov eax, dword [ebp - 4]
call fcn.0040af30
test al, al
jne 0x4c5b11
mov dword [ebp - 0x18], 0x20000003
cmp dword [ebp - 0x18], 0
jne 0x4c5d4c
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
call fcn.0040b1e4
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 8]
mov edx, 0x4c5d90
call fcn.004bdd24
mov eax, dword [ebp - 8]
call fcn.0040af30
test al, al
jne 0x4c5b6d
lea eax, [ebp - 0x80]
call fcn.0040b454
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 8]
mov edx, 0x4c5d90
call fcn.004bdd24
mov eax, dword [ebp - 8]
call fcn.0040af30
test al, al
jne 0x4c5b6d
mov dword [ebp - 0x18], 0x20000004
cmp dword [ebp - 0x18], 0
jne 0x4c5d4c
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 4]
call fcn.0040b218
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0xc]
mov edx, 0x4c5da4
call fcn.004bdd24
mov eax, dword [ebp - 0xc]
call fcn.0040af30
test al, al
jne 0x4c5c06
call fcn.004bd828
sub al, 5
je 0x4c5bb5
sub al, 2
je 0x4c5bb5
sub al, 2
jne 0x4c5bd5
lea eax, [ebp - 0x88]
call fcn.0040b454
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0xc]
mov edx, 0x4c5db8
call fcn.004bdd24
jmp 0x4c5bf3
lea eax, [ebp - 0x8c]
call fcn.0040b454
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0xc]
mov edx, 0x4c5dd0
call fcn.004bdd24
mov eax, dword [ebp - 0xc]
call fcn.0040af30
test al, al
jne 0x4c5c06
mov dword [ebp - 0x18], 0x20000001
cmp dword [ebp - 0x18], 0
jne 0x4c5d4c
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004c0e6c
cmp dword [ebp - 0x10], 0
je 0x4c5c40
mov eax, dword [ebp - 0x10]
call fcn.0040af30
test al, al
je 0x4c5c40
mov eax, dword [ebp - 0x10]
call fcn.004c5a34
test al, al
je 0x4c5c40
mov dword [ebp - 0x18], 0x20000005
cmp dword [ebp - 0x18], 0
jne 0x4c5d4c
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 0x4c5c80
lea eax, [ebp - 0x14]
mov edx, 0x4c5de8
call fcn.00405774
jmp 0x4c5c8d
lea eax, [ebp - 0x14]
mov edx, 0x4c5e08
call fcn.00405774
mov eax, dword [ebp - 8]
call fcn.0040af30
test al, al
je 0x4c5d4c
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 0x4c5e28
push 0x4c5e34
push dword [ebp - 0x14]
push 0x4c5e40
push dword [ebp - 4]
push 0x4c5e34
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 0x4c5d4c
xor eax, eax
push ebp
push 0x4c5d45
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 0x4c5d4c
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 0x4c5d7e
lea eax, [ebp - 0x90]
mov edx, 9
call fcn.00405700
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00405700
ret