Function at 0x4c5d3f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov edi, edi
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x4c5d6d
cmp eax, 1
je 0x4c5d6d
jle 0x4c5d75
cmp eax, 3
jle 0x4c5d6d
cmp eax, 4
jne 0x4c5d75
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4c5dad
call fcn.004a6a5e
mov dword [eax], ebx
call fcn.004a6a4b
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.004a648d
add esp, 0x14
or eax, 0xffffffff
jmp 0x4c5f4a
inc eax
cmp byte [eax], bl
jne 0x4c5d9c
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x4c5dad
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x4c5d9c
push esi
lea eax, [ebp - 0x68]
push 0x44
pop edi
push edi
push ebx
push eax
call fcn.004a7ae0
mov dword [ebp - 0x68], edi
mov esi, dword [0x5001a4]
sub esp, 0xfffffff4
cmp esi, ebx
je 0x4c5dfb
lea eax, [esi - 1]
mov edx, eax
mov ecx, eax
sar ecx, 5
mov ecx, dword [ecx*4 + 0x5001c0]
and edx, 0x1f
shl edx, 6
cmp byte [ecx + edx + 4], bl
jne 0x4c5df3
dec esi
dec eax
cmp esi, ebx
jne 0x4c5dd3
cmp esi, ebx
jl 0x4c5f3b
cmp esi, 0x3332
jae 0x4c5f3b
mov eax, esi
imul eax, eax, 5
add eax, 4
mov word [ebp - 0x36], ax
movzx eax, ax
push 1
push eax
call fcn.004b7d03
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
je 0x4c5f3b
cmp esi, ebx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
lea edi, [eax + esi + 4]
lea ecx, [eax + 4]
mov dword [ebp - 8], ebx
jle 0x4c5e77
mov eax, dword [ebp - 8]
mov edx, eax
and eax, 0x1f
sar edx, 5
shl eax, 6
add eax, dword [edx*4 + 0x5001c0]
mov dl, byte [eax + 4]
test dl, 0x10
jne 0x4c5e63
mov byte [ecx], dl
mov eax, dword [eax]
mov dword [edi], eax
jmp 0x4c5e68
mov byte [ecx], bl
or dword [edi], 0xffffffff
inc dword [ebp - 8]
inc ecx
sub edi, 0xfffffffc
cmp dword [ebp - 8], esi
jl 0x4c5e3e
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x4c5ea8
xor edx, edx
lea ecx, [eax + 4]
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x4c5e8e
mov edi, esi
jmp 0x4c5e91
push 3
pop edi
cmp edx, edi
jge 0x4c5ea1
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
sub eax, 0xfffffffc
jmp 0x4c5e85
mov dword [ebp - 0xc], 8
call fcn.004a6a5e
mov dword [eax], ebx
lea edi, [ebp - 0x24]
push edi
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.004a7a46
pop ecx
cmp esi, ebx
jne 0x4c5eee
push edi
call fcn.004a6a71
pop ebx
jmp 0x4c5f46
cmp dword [ebp + 8], 2
jne 0x4c5efa
push ebx
call fcn.004a61be
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], ebx
jne 0x4c5f22
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
jmp 0x4c5f28
cmp dword [ebp + 8], 4
jne 0x4c5f2f
push dword [ebp - 0x24]
call edi
jmp 0x4c5f32
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call edi
mov eax, ebx
jmp 0x4c5f49
call fcn.004a6a4b
mov dword [eax], 0xc
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret