Function at 0x401c09
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.004026e8
mov edx, eax
xor edi, edi
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], edx
test eax, eax
je 0x401c3e
cmp word [eax], di
je 0x401c3e
push eax
call fcn.004026e8
mov edx, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 8], eax
jmp 0x401c43
mov eax, edi
mov dword [ebp - 8], edi
mov esi, dword [ebp + 0x1c]
xor ecx, ecx
inc ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
test esi, esi
je 0x401c5b
mov dword [ebp - 0x1c], ecx
cmp word [esi], di
jne 0x401c5e
mov dword [ebp - 0x1c], edi
mov ebx, 0x7d00
mov dword [ebp - 0xc], edi
cmp edx, ebx
ja 0x401eae
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
ja 0x401eae
cmp eax, ebx
ja 0x401eae
add eax, 4
add eax, edx
add eax, ecx
mov dword [ebp - 0x14], eax
cmp eax, 0x3fffffff
jae 0x401eae
lea eax, [eax*2 + 2]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x401eae
push 0x44
lea eax, [ebp - 0x70]
push eax
call fcn.00402b01
xor eax, eax
mov dword [ebp - 0x70], 0x44
inc eax
mov dword [ebp - 0x44], eax
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
inc eax
push eax
push dword [ebp + 0xc]
push ebx
call fcn.00402925
push str.__1_
push ebx
call fcn.00402a2b
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x401d1a
push 0x4085a8
push ebx
call fcn.00402a2b
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x401d1a
mov eax, dword [ebp - 0x10]
push 0x20
pop ecx
lea eax, [ebx + eax*2]
mov dword [ebp + 0xc], eax
cmp word [eax - 2], cx
je 0x401d2c
mov word [eax], cx
add eax, 2
mov dword [ebp + 0xc], eax
jmp 0x401d2c
push 2
pop ecx
push 0x22
pop edx
cmp word [eax], dx
push 4
pop edx
cmove ecx, edx
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 8], edi
je 0x401daa
mov eax, dword [ebp + 0x14]
add eax, 8
push eax
push dword [ebp + 0x18]
call fcn.00402975
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x401daa
mov ecx, dword [ebp + 0x18]
push 0x22
pop eax
cmp word [ecx], ax
mov eax, dword [ebp - 8]
jne 0x401d6b
push 0x22
pop esi
cmp word [ecx + eax*2 - 6], si
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0xc], 1
je 0x401d6e
mov dword [ebp - 0xc], edi
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x401da6
lea esi, [ecx + 4]
add esi, eax
push esi
push 0x4085b0
push edx
call fcn.004028e7
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.004028e7
push esi
push 0x4085b8
push dword [ebp - 4]
call fcn.004028e7
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp - 4]
mov eax, edx
jmp 0x401dad
mov eax, dword [ebp + 0x10]
push dword [ebp - 0xc]
push eax
push dword [ebp - 0x18]
push dword [ebp + 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push ebx
call fcn.00401b1b
test eax, eax
je 0x401e9b
push ebx
call fcn.004026e8
push 0x20
pop edx
lea eax, [ebx + eax*2]
cmp eax, ebx
jbe 0x401dea
add eax, 0xfffffffe
cmp word [eax], dx
jne 0x401dea
xor ecx, ecx
mov word [eax], cx
jmp 0x401dd7
cmp dword [ebp - 0x1c], edi
je 0x401e5b
mov dword [ebp + 0x14], esi
jmp 0x401e57
cmp word [esi], di
je 0x401e5b
push edx
push esi
call fcn.004029bf
sub eax, esi
sar eax, 1
mov dword [ebp + 0x10], eax
test eax, eax
jle 0x401e5b
push edi
push edi
push eax
push esi
push ebx
call fcn.00402a2b
push eax
push dword [ebp - 0x14]
push ebx
call fcn.004026e8
push eax
push ebx
call fcn.00401b1b
test eax, eax
je 0x401e9b
lea eax, [ebp + 0x18]
mov dword [ebp + 0x1c], 1
push eax
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x18], edi
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.0040105a
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
push eax
call fcn.00401000
mov esi, dword [ebp + 0x14]
push 0x20
pop edx
test esi, esi
jne 0x401df4
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp dword [ebp + 8], edi
je 0x401e9b
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
push edi
push 0x400
push edi
push edi
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401e9b
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x28]
call esi
xor edi, edi
inc edi
push ebx
call fcn.00402f02
mov eax, dword [ebp - 4]
test eax, eax
je 0x401eae
push eax
call fcn.00402f02
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18