Function at 0x523f40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x38
push 0
push 0
dec ecx
jne 0x523f48
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c0c
lea eax, [ebp - 0x174]
mov edx, dword [0x407f74]
call fcn.00405194
xor eax, eax
push ebp
push 0x524464
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 0x524406
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp byte [eax + 0x320], 0
je 0x523fb5
lea eax, [ebp - 0x18]
mov edx, 0x524478
call fcn.00404804
jmp 0x523fc2
lea eax, [ebp - 0x18]
mov edx, 0x524484
call fcn.00404804
mov al, byte [0x52448c]
push eax
lea eax, [ebp - 0x178]
push eax
mov ecx, 0x524498
mov edx, 0x5244a4
mov eax, dword [ebp - 4]
call fcn.0040dce4
mov edx, dword [ebp - 0x178]
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 0x5243f0
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x17c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x17c]
lea edx, [ebp - 0x10]
call fcn.00408eb0
cmp dword [ebp - 0x10], 0
je 0x5243e4
mov eax, dword [ebp - 0x10]
call fcn.00409328
test al, al
je 0x524242
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x180]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x188], eax
mov byte [ebp - 0x184], 0xb
lea edx, [ebp - 0x188]
xor ecx, ecx
mov eax, 0x5244b0
call fcn.00409fcc
mov eax, dword [ebp - 0x180]
mov edx, 0x5244d0
call fcn.005226b0
pop ecx
lea edx, [ebp - 0x18c]
mov eax, dword [ebp - 0x10]
call fcn.0040d4c8
mov edx, dword [ebp - 0x18c]
lea eax, [ebp - 0x10]
call fcn.00404804
lea eax, [ebp - 0x190]
mov ecx, 0x5244e0
mov edx, dword [ebp - 0x10]
call fcn.00404a70
mov eax, dword [ebp - 0x190]
lea ecx, [ebp - 0x174]
mov edx, 0x3f
call fcn.00409518
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x524232
mov eax, dword [ebp - 0x16c]
and eax, 0x10
cmp eax, 0x10
je 0x52421a
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 - 0x30], 1
mov eax, dword [ebp + 8]
mov word [eax - 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [eax - 0x5c], 0x44
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
push 0x524478
push dword [ebp - 0x18]
push 0x5244ec
push dword [ebp - 0x10]
push dword [ebp - 0x168]
push 0x5244ec
lea eax, [ebp - 0x194]
mov edx, 6
call fcn.00404ae4
mov eax, dword [ebp - 0x194]
call fcn.00404c1c
push eax
lea eax, [ebp - 0x19c]
call fcn.00483b20
mov eax, dword [ebp - 0x19c]
lea edx, [ebp - 0x198]
call fcn.0040d4c8
lea eax, [ebp - 0x198]
mov edx, 0x5244f8
call fcn.00404a2c
mov eax, dword [ebp - 0x198]
call fcn.00404c1c
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x52420c
push 0x524518
push dword [ebp - 0x10]
push 0x524530
call sub.kernel32.dll_GetLastError_1
test eax, eax
jns 0x5241d4
call fcn.004038bc
lea edx, [ebp - 0x1a4]
call fcn.0040c16c
push dword [ebp - 0x1a4]
lea eax, [ebp - 0x1a0]
mov edx, 4
call fcn.00404ae4
mov ecx, dword [ebp - 0x1a0]
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
lea eax, [ebp - 0x174]
call fcn.00409568
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5240d4
lea eax, [ebp - 0x174]
call fcn.0040958c
jmp 0x5243e4
mov eax, dword [ebp - 0x10]
call fcn.00409318
test al, al
jne 0x524278
lea eax, [ebp - 0x1a8]
mov ecx, dword [ebp - 0x10]
mov edx, 0x524544
call fcn.00404a70
mov ecx, dword [ebp - 0x1a8]
mov dl, 1
mov eax, dword [0x407f94]
call fcn.0040c960
call fcn.00404148
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x1ac]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x188], eax
mov byte [ebp - 0x184], 0xb
lea edx, [ebp - 0x188]
xor ecx, ecx
mov eax, 0x524560
call fcn.00409fcc
mov eax, dword [ebp - 0x1ac]
mov edx, 0x5244d0
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 - 0x30], 1
mov eax, dword [ebp + 8]
mov word [eax - 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [eax - 0x5c], 0x44
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
push 0x524478
push dword [ebp - 0x18]
push 0x5244ec
push dword [ebp - 0x10]
push 0x5244ec
lea eax, [ebp - 0x1b0]
mov edx, 5
call fcn.00404ae4
mov eax, dword [ebp - 0x1b0]
call fcn.00404c1c
push eax
lea eax, [ebp - 0x1b8]
call fcn.00483b20
mov eax, dword [ebp - 0x1b8]
lea edx, [ebp - 0x1b4]
call fcn.0040d4c8
lea eax, [ebp - 0x1b4]
mov edx, 0x5244f8
call fcn.00404a2c
mov eax, dword [ebp - 0x1b4]
call fcn.00404c1c
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x5243d6
push 0x524518
push dword [ebp - 0x10]
push 0x524530
call sub.kernel32.dll_GetLastError_1
test eax, eax
jns 0x52439e
call fcn.004038bc
lea edx, [ebp - 0x1c0]
call fcn.0040c16c
push dword [ebp - 0x1c0]
lea eax, [ebp - 0x1bc]
mov edx, 4
call fcn.00404ae4
mov ecx, dword [ebp - 0x1bc]
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 0x52400b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52440d
mov eax, dword [ebp - 8]
call fcn.0040397c
ret