Function at 0x524574
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x8f
push 0
push 0
dec ecx
jne 0x52457c
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c0c
xor eax, eax
push ebp
push 0x524b28
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x414fc4]
call fcn.0040394c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x524ade
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [0x524b34]
push eax
lea eax, [ebp - 0x424]
push eax
mov ecx, 0x524b40
mov edx, 0x524b4c
mov eax, dword [ebp - 4]
call fcn.0040dce4
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 0x524ac8
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.00408eb0
cmp dword [ebp - 0x14], 0
je 0x524abc
mov edx, dword [ebp - 0x14]
mov eax, 0x524b58
call fcn.00404d60
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x52466d
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 0x524675
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 + 0x338]
sbb edx, dword [ecx + 0x33c]
test edx, edx
jge 0x52469b
neg eax
adc edx, 0
neg edx
cmp edx, 0
jne 0x5246a7
cmp eax, 0xa
jae 0x5246ff
jmp 0x5246a9
jge 0x5246ff
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, 0x524b64
call fcn.00409fcc
mov eax, dword [ebp - 0x42c]
mov edx, 0x524b98
call fcn.005226b0
pop ecx
jmp 0x524abc
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, 0x524ba8
call fcn.00409fcc
mov eax, dword [ebp - 0x440]
mov edx, 0x524b98
call fcn.005226b0
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.00409740
mov eax, dword [ebp - 0x444]
mov edx, 0x524bcc
call fcn.00408d7c
test al, al
je 0x5248c8
push 0x524bdc
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.004832e0
push dword [ebp - 0x448]
push 0x524bec
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404ae4
push 0x524c00
push 0
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x450]
call fcn.00483ba4
mov eax, dword [ebp - 0x450]
lea edx, [ebp - 0x448]
or ecx, 0xffffffff
call fcn.004832e0
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.004098ec
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 0x524aae
push 0x524c14
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x524c30
call sub.kernel32.dll_GetLastError_1
test eax, eax
jns 0x52488b
call fcn.004038bc
lea edx, [ebp - 0x458]
call fcn.0040c16c
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 [0x407f94]
call fcn.0040c960
call fcn.00404148
jmp 0x524aae
lea edx, [ebp - 0x45c]
mov eax, dword [ebp - 0x14]
call fcn.00409740
mov eax, dword [ebp - 0x45c]
mov edx, 0x524c44
call fcn.00408d7c
test al, al
je 0x524a12
push 0x524c54
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.004832e0
push dword [ebp - 0x460]
push 0x524c6c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404ae4
push 0x524c78
push 0
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x468]
call fcn.00483ba4
mov eax, dword [ebp - 0x468]
lea edx, [ebp - 0x448]
or ecx, 0xffffffff
call fcn.004832e0
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.004098ec
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 0x524aae
push 0x524c14
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x524c30
call sub.kernel32.dll_GetLastError_1
test eax, eax
jns 0x5249d5
call fcn.004038bc
lea edx, [ebp - 0x470]
call fcn.0040c16c
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 [0x407f94]
call fcn.0040c960
call fcn.00404148
jmp 0x524aae
lea eax, [ebp - 0x41d]
mov ecx, 0x3ff
mov edx, dword [ebp - 0x18]
call fcn.004098ec
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 0x524aae
push 0x524c14
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x524c30
call sub.kernel32.dll_GetLastError_1
test eax, eax
jns 0x524a76
call fcn.004038bc
lea edx, [ebp - 0x478]
call fcn.0040c16c
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 [0x407f94]
call fcn.0040c960
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 0x524603
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524ae5
mov eax, dword [ebp - 8]
call fcn.0040397c
ret