Function at 0x4023da
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 main
mov edx, eax
mov eax, dword [ebp + 0x18]
xor edi, edi
mov dword [ebp - 0x10], edx
test eax, eax
je 0x40240f
cmp word [eax], di
je 0x40240f
push eax
call main
mov edx, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 8], eax
jmp 0x402414
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 0x40242c
mov dword [ebp - 0x1c], ecx
cmp word [esi], di
jne 0x40242f
mov dword [ebp - 0x1c], edi
mov ebx, 0x7d00
mov dword [ebp - 0xc], edi
cmp edx, ebx
ja 0x402682
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
ja 0x402682
cmp eax, ebx
ja 0x402682
add eax, 4
add eax, edx
add eax, ecx
mov dword [ebp - 0x14], eax
cmp eax, 0x3fffffff
jae 0x402682
lea eax, [eax*2 + 2]
push eax
push edi
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x402682
push 0x44
lea eax, [ebp - 0x70]
push eax
call main
xor eax, eax
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]
mov dword [ebp - 0x70], 0x44
push ebx
call main
push 0x401558
push ebx
call main
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4024eb
push 0x401564
push ebx
call main
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4024eb
mov eax, dword [ebp - 0x10]
push 0x20
lea eax, [ebx + eax*2]
pop ecx
mov dword [ebp + 0xc], eax
cmp word [eax - 2], cx
je 0x402500
mov word [eax], cx
add eax, 2
mov dword [ebp + 0xc], eax
jmp 0x402500
push 0x22
xor ecx, ecx
pop edx
cmp word [eax], dx
sete cl
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 8], edi
je 0x40257e
mov eax, dword [ebp + 0x14]
add eax, 8
push eax
push dword [ebp + 0x18]
call main
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x40257e
mov ecx, dword [ebp + 0x18]
push 0x22
pop eax
cmp word [ecx], ax
mov eax, dword [ebp - 8]
jne 0x40253f
push 0x22
pop esi
cmp word [ecx + eax*2 - 6], si
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0xc], 1
je 0x402542
mov dword [ebp - 0xc], edi
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x40257a
lea esi, [ecx + 4]
add esi, eax
push esi
push 0x40156c
push edx
call main
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call main
push esi
push 0x401574
push dword [ebp - 4]
call main
mov esi, dword [ebp + 0x1c]
mov edx, dword [ebp - 4]
mov eax, edx
jmp 0x402581
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 main
test eax, eax
je 0x40266f
push ebx
call main
push 0x20
lea eax, [ebx + eax*2]
pop edx
cmp eax, ebx
jbe 0x4025be
add eax, 0xfffffffe
cmp word [eax], dx
jne 0x4025be
xor ecx, ecx
mov word [eax], cx
jmp 0x4025ab
cmp dword [ebp - 0x1c], edi
je 0x40262f
mov dword [ebp + 0x14], esi
jmp 0x40262b
cmp word [esi], di
je 0x40262f
push edx
push esi
call main
sub eax, esi
sar eax, 1
mov dword [ebp + 0x10], eax
test eax, eax
jle 0x40262f
push edi
push edi
push eax
push esi
push ebx
call main
push eax
push dword [ebp - 0x14]
push ebx
call main
push eax
push ebx
call main
test eax, eax
je 0x40266f
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x1c], 1
mov dword [ebp + 0x18], edi
call main
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
push eax
call main
mov esi, dword [ebp + 0x14]
push 0x20
pop edx
test esi, esi
jne 0x4025c8
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp dword [ebp + 8], edi
je 0x40266f
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 0x40266f
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 main
mov eax, dword [ebp - 4]
test eax, eax
je 0x402682
push eax
call main
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18