Function at 0x40a070
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x432040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xb8], 0xffffffff
xor edx, edx
mov dword [ebp - 0xa8], ebx
push esi
push edi
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xa0], edx
cmp dword [ebx + 0x80], edx
jbe 0x40a339
lea eax, [ebx + 0x38]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xb0], 0
mov ecx, dword [eax + edx*4]
mov edx, dword [eax + edx*4 + 4]
sub edx, ecx
cmp edx, 0x104
jae 0x40a32f
mov edi, dword [ebx + 0x6f0]
add edi, 0x6a
lea edi, [ebx + edi*2]
test edi, edi
je 0x40a120
mov eax, dword [ebx + 0xb8]
lea esi, [eax + ecx*2]
test edx, edx
je 0x40a120
mov ecx, edi
sub esi, edi
mov ax, word [ecx + esi]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x40a110
lea eax, [ebx + 0xcc]
push eax
lea eax, [ebx + 0xc4]
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0xa0]
lea edx, [ebx + 0x10]
lea ecx, [ebx + 0x38]
call fcn.004039e0
add esp, 0x20
mov dword [ebx + 0xc0], eax
test eax, eax
jne 0x40a339
movzx ecx, word [edi]
xor ebx, ebx
mov esi, ecx
test cx, cx
je 0x40a1a0
mov edx, edi
inc eax
cmp si, 0x2f
jne 0x40a192
mov ecx, 0x5c
mov ebx, eax
mov word [edx], cx
movzx ecx, word [edi + eax*2]
lea edx, [edi + eax*2]
mov esi, ecx
test cx, cx
jne 0x40a181
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + ebx*2]
push edi
call esi
push edi
mov dword [ebp - 0xa4], eax
call esi
mov edx, dword [ebp + 8]
mov ecx, edi
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40a1e6
test ax, ax
je 0x40a1e2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x40a1e6
add ecx, 4
add edx, 4
test ax, ax
jne 0x40a1c0
xor eax, eax
jmp 0x40a1eb
sbb eax, eax
or eax, 1
mov ebx, dword [ebp - 0xa8]
test eax, eax
je 0x40a216
mov edx, dword [ebp - 0xa0]
lea eax, [ebx + 0x38]
inc edx
mov dword [ebp - 0xa0], edx
cmp edx, dword [ebx + 0x80]
jb 0x40a0c3
jmp 0x40a339
mov eax, dword [ebp - 0xa4]
lea esi, [ebx + 0xd4]
add eax, 0xfffffffc
push str..exe
lea eax, [edi + eax*2]
push eax
call fcn.00417050
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
xorps xmm0, xmm0
test eax, eax
jne 0x40a2aa
lea eax, [ebp - 0x9c]
movlpd qword [ebp - 0x4c], xmm0
push eax
lea eax, [ebp - 0x50]
movlpd qword [ebp - 0x44], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a339
push dword [ebp - 0x98]
call edi
mov esi, dword [ebp - 0x9c]
jmp 0x40a317
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x84], 0
push eax
mov dword [ebp - 0x74], 0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x8c], 0x3c
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], str.open
mov dword [ebp - 0x78], 0x42eab8
mov dword [ebp - 0x88], 0x140
mov dword [ebp - 0x70], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40a339
cmp dword [ebp - 0x6c], 0x20
jbe 0x40a339
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x40a339
cmp byte [ebp + 0xc], 0
je 0x40a32a
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
jmp 0x40a339
mov dword [ebx + 0xc0], 0xb
push dword [ebp - 0xac]
lea eax, [ebx + 0xc4]
push eax
mov eax, dword [ebx + 0xc8]
call eax
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040cc8c
mov esp, ebp
pop ebp
ret 8