Function at 0x523170
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x8f
push 0
push 0
dec ecx
jne 0x523178
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c0c
xor eax, eax
push ebp
push 0x523724
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x414f90]
call fcn.0040394c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5236da
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [0x523730]
push eax
lea eax, [ebp - 0x424]
push eax
mov ecx, 0x52373c
mov edx, 0x523748
mov eax, dword [ebp - 4]
call fcn.0040dcc0
mov edx, dword [ebp - 0x424]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5236c4
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x428]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x428]
lea edx, [ebp - 0x14]
call fcn.00408ea0
cmp dword [ebp - 0x14], 0
je 0x5236b8
mov edx, dword [ebp - 0x14]
mov eax, 0x523754
call fcn.00404d60
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x523269
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x309
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.00404c7c
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404c7c
jmp 0x523271
lea eax, [ebp - 0x18]
call fcn.0040476c
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x64]
mov eax, dword [eax - 0x68]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 4]
sub eax, dword [ecx + 0x330]
sbb edx, dword [ecx + 0x334]
test edx, edx
jge 0x523297
neg eax
adc edx, 0
neg edx
cmp edx, 0
jne 0x5232a3
cmp eax, 0xa
jae 0x5232fb
jmp 0x5232a5
jge 0x5232fb
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x42c]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 0x438], 0xb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x434], eax
mov byte [ebp - 0x430], 0xb
lea edx, [ebp - 0x43c]
mov ecx, 1
mov eax, 0x523760
call fcn.00409fbc
mov eax, dword [ebp - 0x42c]
mov edx, 0x523794
call fcn.005212ac
pop ecx
jmp 0x5236b8
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x440]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 0x438], 0xb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x434], eax
mov byte [ebp - 0x430], 0xb
lea edx, [ebp - 0x43c]
mov ecx, 1
mov eax, 0x5237a4
call fcn.00409fbc
mov eax, dword [ebp - 0x440]
mov edx, 0x523794
call fcn.005212ac
pop ecx
mov eax, dword [ebp + 8]
add eax, 0xffffffe8
xor ecx, ecx
mov edx, 0x10
call fcn.00403230
mov eax, dword [ebp + 8]
add eax, 0xffffffa4
xor ecx, ecx
mov edx, 0x44
call fcn.00403230
mov eax, dword [ebp + 8]
mov dword [eax - 0x5c], 0x44
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 0x14]
call fcn.00409730
mov eax, dword [ebp - 0x444]
mov edx, 0x5237c8
call fcn.00408d6c
test al, al
je 0x5234c4
push 0x5237d8
mov eax, dword [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x448]
push eax
lea edx, [ebp - 0x448]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x318]
or ecx, 0xffffffff
call fcn.00482eb4
push dword [ebp - 0x448]
push 0x5237e8
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404ae4
push 0x5237fc
push 0
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x450]
call fcn.00483728
mov eax, dword [ebp - 0x450]
lea edx, [ebp - 0x448]
or ecx, 0xffffffff
call fcn.00482eb4
mov edx, dword [ebp - 0x44c]
lea eax, [ebp - 0x14]
call fcn.00404804
lea eax, [ebp - 0x41d]
mov ecx, 0x3ff
mov edx, dword [ebp - 0x18]
call fcn.004098dc
mov eax, dword [ebp + 8]
add eax, 0xffffffe8
push eax
mov eax, dword [ebp + 8]
add eax, 0xffffffa4
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x41d]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404c1c
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x5236aa
push 0x523810
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x52382c
call sub.kernel32.dll_GetLastError_1
test eax, eax
jns 0x523487
call fcn.004038bc
lea edx, [ebp - 0x458]
call fcn.0040c148
push dword [ebp - 0x458]
lea eax, [ebp - 0x454]
mov edx, 5
call fcn.00404ae4
mov ecx, dword [ebp - 0x454]
mov dl, 1
mov eax, dword [0x407f84]
call fcn.0040c93c
call fcn.00404148
jmp 0x5236aa
lea edx, [ebp - 0x45c]
mov eax, dword [ebp - 0x14]
call fcn.00409730
mov eax, dword [ebp - 0x45c]
mov edx, 0x523840
call fcn.00408d6c
test al, al
je 0x52360e
push 0x523850
mov eax, dword [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x460]
push eax
lea edx, [ebp - 0x448]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x318]
or ecx, 0xffffffff
call fcn.00482eb4
push dword [ebp - 0x460]
push 0x523868
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404ae4
push 0x523874
push 0
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x468]
call fcn.00483728
mov eax, dword [ebp - 0x468]
lea edx, [ebp - 0x448]
or ecx, 0xffffffff
call fcn.00482eb4
mov edx, dword [ebp - 0x464]
lea eax, [ebp - 0x14]
call fcn.00404804
lea eax, [ebp - 0x41d]
mov ecx, 0x3ff
mov edx, dword [ebp - 0x18]
call fcn.004098dc
mov eax, dword [ebp + 8]
add eax, 0xffffffe8
push eax
mov eax, dword [ebp + 8]
add eax, 0xffffffa4
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x41d]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404c1c
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x5236aa
push 0x523810
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x52382c
call sub.kernel32.dll_GetLastError_1
test eax, eax
jns 0x5235d1
call fcn.004038bc
lea edx, [ebp - 0x470]
call fcn.0040c148
push dword [ebp - 0x470]
lea eax, [ebp - 0x46c]
mov edx, 5
call fcn.00404ae4
mov ecx, dword [ebp - 0x46c]
mov dl, 1
mov eax, dword [0x407f84]
call fcn.0040c93c
call fcn.00404148
jmp 0x5236aa
lea eax, [ebp - 0x41d]
mov ecx, 0x3ff
mov edx, dword [ebp - 0x18]
call fcn.004098dc
mov eax, dword [ebp + 8]
add eax, 0xffffffe8
push eax
mov eax, dword [ebp + 8]
add eax, 0xffffffa4
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x41d]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404c1c
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x5236aa
push 0x523810
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x52382c
call sub.kernel32.dll_GetLastError_1
test eax, eax
jns 0x523672
call fcn.004038bc
lea edx, [ebp - 0x478]
call fcn.0040c148
push dword [ebp - 0x478]
lea eax, [ebp - 0x474]
mov edx, 5
call fcn.00404ae4
mov ecx, dword [ebp - 0x474]
mov dl, 1
mov eax, dword [0x407f84]
call fcn.0040c93c
call fcn.00404148
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
push eax
call sub.kernel32.dll_WaitForSingleObject
inc dword [ebp - 0xc]
dec dword [ebp - 0x1c]
jne 0x5231ff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5236e1
mov eax, dword [ebp - 8]
call fcn.0040397c
ret