Function at 0x522b3c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x38
push 0
push 0
dec ecx
jne 0x522b44
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c0c
lea eax, [ebp - 0x174]
mov edx, dword [0x407f64]
call fcn.00405194
xor eax, eax
push ebp
push 0x523060
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 0x523002
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 0x522bb1
lea eax, [ebp - 0x18]
mov edx, 0x523074
call fcn.00404804
jmp 0x522bbe
lea eax, [ebp - 0x18]
mov edx, 0x523080
call fcn.00404804
mov al, byte [0x523088]
push eax
lea eax, [ebp - 0x178]
push eax
mov ecx, 0x523094
mov edx, 0x5230a0
mov eax, dword [ebp - 4]
call fcn.0040dcc0
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 0x522fec
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.00408ea0
cmp dword [ebp - 0x10], 0
je 0x522fe0
mov eax, dword [ebp - 0x10]
call fcn.00409318
test al, al
je 0x522e3e
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, 0x5230ac
call fcn.00409fbc
mov eax, dword [ebp - 0x180]
mov edx, 0x5230cc
call fcn.005212ac
pop ecx
lea edx, [ebp - 0x18c]
mov eax, dword [ebp - 0x10]
call fcn.0040d4a4
mov edx, dword [ebp - 0x18c]
lea eax, [ebp - 0x10]
call fcn.00404804
lea eax, [ebp - 0x190]
mov ecx, 0x5230dc
mov edx, dword [ebp - 0x10]
call fcn.00404a70
mov eax, dword [ebp - 0x190]
lea ecx, [ebp - 0x174]
mov edx, 0x3f
call fcn.00409508
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x522e2e
mov eax, dword [ebp - 0x16c]
and eax, 0x10
cmp eax, 0x10
je 0x522e16
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 0x523074
push dword [ebp - 0x18]
push 0x5230e8
push dword [ebp - 0x10]
push dword [ebp - 0x168]
push 0x5230e8
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.004836a4
mov eax, dword [ebp - 0x19c]
lea edx, [ebp - 0x198]
call fcn.0040d4a4
lea eax, [ebp - 0x198]
mov edx, 0x5230f4
call fcn.00404a2c
mov eax, dword [ebp - 0x198]
call fcn.00404c1c
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x522e08
push 0x523114
push dword [ebp - 0x10]
push 0x52312c
call sub.kernel32.dll_GetLastError_1
test eax, eax
jns 0x522dd0
call fcn.004038bc
lea edx, [ebp - 0x1a4]
call fcn.0040c148
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 [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
lea eax, [ebp - 0x174]
call fcn.00409558
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x522cd0
lea eax, [ebp - 0x174]
call fcn.0040957c
jmp 0x522fe0
mov eax, dword [ebp - 0x10]
call fcn.00409308
test al, al
jne 0x522e74
lea eax, [ebp - 0x1a8]
mov ecx, dword [ebp - 0x10]
mov edx, 0x523140
call fcn.00404a70
mov ecx, dword [ebp - 0x1a8]
mov dl, 1
mov eax, dword [0x407f84]
call fcn.0040c93c
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, 0x52315c
call fcn.00409fbc
mov eax, dword [ebp - 0x1ac]
mov edx, 0x5230cc
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 - 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 0x523074
push dword [ebp - 0x18]
push 0x5230e8
push dword [ebp - 0x10]
push 0x5230e8
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.004836a4
mov eax, dword [ebp - 0x1b8]
lea edx, [ebp - 0x1b4]
call fcn.0040d4a4
lea eax, [ebp - 0x1b4]
mov edx, 0x5230f4
call fcn.00404a2c
mov eax, dword [ebp - 0x1b4]
call fcn.00404c1c
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x522fd2
push 0x523114
push dword [ebp - 0x10]
push 0x52312c
call sub.kernel32.dll_GetLastError_1
test eax, eax
jns 0x522f9a
call fcn.004038bc
lea edx, [ebp - 0x1c0]
call fcn.0040c148
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 [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 0x522c07
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523009
mov eax, dword [ebp - 8]
call fcn.0040397c
ret