Function at 0x4023a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x78
push ebx
push ebp
mov ebp, dword [esp + 0x84]
xor edx, edx
cmp ebp, edx
push esi
push edi
je 0x40260b
mov esi, dword [esp + 0x90]
cmp esi, edx
je 0x40260b
cmp dword [esp + 0x98], edx
jne 0x4023dd
cmp dword [esp + 0x94], edx
je 0x4025c2
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], 0x44
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402407
sub eax, edx
mov edx, eax
mov eax, esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402417
sub eax, esi
lea ecx, [eax + edx + 5]
push ecx
call fcn.0040392d
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x40260b
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402440
sub eax, edx
mov dword [esp + 0x14], eax
mov edx, ebx
je 0x4024a8
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402455
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402462
mov dx, word [0x40a34c]
mov eax, dword [esp + 0x90]
mov word [edi], dx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402480
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402490
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4024bb
mov eax, dword [esp + 0x90]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4024b1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x48]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4025ac
mov edx, dword [esp + 0x18]
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40256e
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea esp, [esp]
xor eax, eax
push 1
push eax
push eax
mov dword [esp + 0x34], 0
mov ecx, 6
lea edi, [esp + 0x38]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push eax
call esi
test eax, eax
je 0x402556
lea ecx, [esp + 0x28]
push ecx
call ebp
lea edx, [esp + 0x28]
push edx
call ebx
push 1
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
call esi
test eax, eax
jne 0x402535
mov ecx, dword [esp + 0x18]
push 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x402510
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x98]
test eax, eax
je 0x402585
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
push ebx
call fcn.00403928
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x78
ret
push ebx
call fcn.00403928
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, 0xe
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x48], 0x3c
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x4025a2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x78
ret