Function at 0x40a16b
Capabilities:
Create process on windows

Disassembly:
push 0x1ac
mov eax, 0x481e62
call fcn.00435fcc
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ecx + 0x10], esi
je 0x40a463
jmp 0x40a1ce
mov edi, 0x487e6c
mov dword [ebp - 0x15c], esi
mov edx, edi
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x2c], edi
lea eax, [edx + 2]
mov dword [ebp - 0x140], eax
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x40a1ed
sub edx, dword [ebp - 0x140]
lea eax, [ebp - 0x74]
sar edx, 1
push eax
mov dword [ebp - 0x28], edx
call fcn.00408dae
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 3
jb 0x40a21b
mov eax, dword [eax]
mov dword [ebp - 0x20], ecx
lea ecx, [edi + 2]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], edi
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x40a227
push dword [ebp - 0x140]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14c], esi
sub edi, ecx
mov dword [ebp - 0x148], esi
push eax
lea eax, [ebp - 0x2c]
sar edi, 1
push eax
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x144], esi
call fcn.00401c1d
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00417251
add esp, 0xc
mov ecx, dword [ebp - 0x14c]
test ecx, ecx
je 0x40a2b2
mov eax, dword [ebp - 0x144]
sub eax, ecx
and eax, 0xfffffff8
push eax
push ecx
call fcn.004019c6
pop ecx
pop ecx
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x144], esi
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 7
call fcn.004060b1
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea ecx, [ebp + 8]
cmovae eax, dword [ebp - 0x44]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x154]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x140]
push eax
call fcn.0040963d
mov ecx, 0x487e68
mov dword [ebp - 0x154], ecx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40a2ff
lea eax, [ebp - 0x154]
sub ecx, edx
push eax
lea eax, [ebp + 8]
sar ecx, 1
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x150], ecx
push eax
call fcn.00417251
add esp, 0xc
xor eax, eax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x48], 8
lea edi, [ebp - 0x174]
mov dword [ebp - 0x188], eax
lea ecx, [ebp - 0x174]
push ecx
stosd dword es:[edi], eax
lea ecx, [ebp - 0x1b8]
push ecx
push esi
push esi
stosd dword es:[edi], eax
xorps xmm0, xmm0
push esi
push esi
push esi
stosd dword es:[edi], eax
push esi
mov dword [ebp - 0x1b8], 0x44
mov dword [ebp - 0x1b4], esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
push esi
mov dword [ebp - 0x1b0], esi
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1a4], esi
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 0x19c], esi
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x194], esi
mov dword [ebp - 0x190], esi
mov dword [ebp - 0x18c], esi
movups xmmword [ebp - 0x184], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40a42d
push 0x6b
push 0x487ef8
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 4
lea ecx, [ebp - 0x13c]
call fcn.00402987
push 0x49b444
lea eax, [ebp - 0x13c]
jmp 0x40a486
push dword [ebp - 0x174]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x170]
call esi
lea ecx, [ebp - 0x5c]
call fcn.004060b1
lea ecx, [ebp - 0x44]
call fcn.004060b1
lea ecx, [ebp + 8]
call fcn.00406065
call fcn.00435f1e
ret 0xc
push 0x55
push 0x487ef8
push 5
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 1
call fcn.00402964
push 0x49b444
lea eax, [ebp - 0xd8]
push eax
call fcn.004381d1
int3