Function at 0x51898c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x518994
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x518d5f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.0040571c
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00403490
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x22
je 0x5189dc
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x518d78
call fcn.004059c0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5189e8
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
cmp byte [edx + eax - 1], 0x22
je 0x5189ff
lea eax, [ebp - 0xc]
mov edx, 0x518d78
call fcn.0040597c
lea eax, [ebp - 0x10]
call fcn.00405684
call fcn.004d9cdc
mov eax, dword [eax + 0x380]
xor edx, edx
call fcn.004061e8
je 0x518a6f
push 0x518d80
call fcn.004d9cdc
push dword [eax + 0x380]
push 0x518d98
push 0x518da0
lea edx, [ebp - 0x74]
mov eax, 1
call fcn.0040c1d4
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
call fcn.004060a4
push dword [ebp - 0x70]
push 0x518d98
push 0
lea eax, [ebp - 0x6c]
mov edx, 7
call fcn.004061a0
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x10]
call fcn.00405938
test bl, bl
je 0x518ad3
lea eax, [ebp - 0x80]
mov ecx, 0x518dbc
mov edx, dword [ebp - 0x10]
call fcn.004059c0
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
call fcn.004060a4
push dword [ebp - 0x7c]
call fcn.004d9cdc
push dword [eax + 0x88]
push 0x518d98
push 0x518dcc
call fcn.004d9cdc
push dword [eax + 0x90]
push 0x518d98
push 0x518de4
lea eax, [ebp - 0x78]
mov edx, 7
call fcn.004061a0
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x10]
call fcn.00405938
xor edx, edx
push ebp
push 0x518d0b
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.00403430
mov ebx, eax
test ebx, ebx
jle 0x518b52
mov esi, 1
lea edx, [ebp - 8]
mov eax, esi
call fcn.00403490
mov eax, dword [ebp - 8]
cmp byte [eax], 0x22
je 0x518b13
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, 0x518d78
call fcn.004059c0
mov eax, dword [ebp - 8]
test eax, eax
je 0x518b1f
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x22
je 0x518b36
lea eax, [ebp - 8]
mov edx, 0x518d78
call fcn.0040597c
push dword [ebp - 0xc]
push 0x518e18
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405a34
inc esi
dec ebx
jne 0x518af1
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00405cb8
test eax, eax
jle 0x518b69
lea eax, [ebp - 0x14]
call fcn.00405684
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00405cb8
test eax, eax
jle 0x518b80
lea eax, [ebp - 0x10]
call fcn.00405684
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.0040597c
cmp dword [ebp - 0x14], 0
je 0x518bef
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.0040bc58
mov eax, dword [ebp - 8]
cmp byte [eax], 0x22
je 0x518bb4
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, 0x518d78
call fcn.004059c0
mov eax, dword [ebp - 8]
test eax, eax
je 0x518bc0
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x22
je 0x518bd7
lea eax, [ebp - 8]
mov edx, 0x518d78
call fcn.0040597c
push dword [ebp - 0xc]
push 0x518e18
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405a34
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x44
call fcn.00403cb4
mov dword [ebp - 0x68], 0x44
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00405b74
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0049701c
test bl, bl
jne 0x518c9f
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0040fe88
lea eax, [ebp - 0x84]
mov ecx, dword [ebp - 8]
mov edx, 0x518e24
call fcn.004059c0
mov ecx, dword [ebp - 0x84]
xor edx, edx
mov al, 4
call fcn.0051d8c0
lea eax, [ebp - 0x88]
mov ecx, dword [ebp - 0xc]
mov edx, 0x518e44
call fcn.004059c0
mov ecx, dword [ebp - 0x88]
xor edx, edx
mov al, 4
call fcn.0051d8c0
mov edx, 0x10
mov eax, dword [ebp - 8]
call fcn.005138dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518d12
xor edx, edx
push ebp
push 0x518cd1
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x518cc7
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x518cdb
xor edx, edx
push ebp
push 0x518d00
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x518cf6
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x518d0a
ret