Function at 0x5a5670
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405944
xor eax, eax
push ebp
push 0x5a5938
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x68]
xor eax, eax
call fcn.00403370
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x10]
call fcn.005a24fc
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x22
je 0x5a56d6
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x5a5950
call fcn.004057a0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x5a56e2
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
cmp byte [edx + eax - 1], 0x22
je 0x5a56f9
lea eax, [ebp - 0x10]
mov edx, 0x5a5950
call fcn.0040575c
xor edx, edx
push ebp
push 0x5a5901
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.00403310
mov ebx, eax
test ebx, ebx
jle 0x5a5778
mov esi, 1
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00403370
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x22
je 0x5a5739
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x5a5950
call fcn.004057a0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5a5745
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0x22
je 0x5a575c
lea eax, [ebp - 0xc]
mov edx, 0x5a5950
call fcn.0040575c
push dword [ebp - 0x10]
push 0x5a595c
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405814
inc esi
dec ebx
jne 0x5a5717
cmp dword [ebp - 4], 0
je 0x5a57dc
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00405528
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x22
je 0x5a57a1
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x5a5950
call fcn.004057a0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5a57ad
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0x22
je 0x5a57c4
lea eax, [ebp - 0xc]
mov edx, 0x5a5950
call fcn.0040575c
push dword [ebp - 0x10]
push 0x5a595c
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405814
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.00403b84
mov dword [ebp - 0x64], 0x44
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405954
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call fcn.005a1218
test bl, bl
jne 0x5a5895
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040e944
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov edx, 0x5a5968
call fcn.004057a0
mov edx, dword [ebp - 0x6c]
mov eax, dword [0x5bff58]
mov eax, dword [eax]
mov cl, 1
call fcn.004a1964
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 0x10]
mov edx, 0x5a5988
call fcn.004057a0
mov edx, dword [ebp - 0x70]
mov eax, dword [0x5bff58]
mov eax, dword [eax]
mov cl, 1
call fcn.004a1964
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 0xc]
call fcn.00405df8
mov eax, dword [ebp - 0x74]
mov edx, 0x10
call fcn.005a1ab0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a5908
xor edx, edx
push ebp
push 0x5a58c7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5a58bd
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a58d1
xor edx, edx
push ebp
push 0x5a58f6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5a58ec
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a5900
ret