Function at 0x40a260
Capabilities:
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43e6eb
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x45060c]
xor eax, esp
mov dword [esp + 0x26c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45060c]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x294]
mov esi, dword [esp + 0x298]
mov ebx, dword [esp + 0x29c]
call fcn.0041a118
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40a2cc
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
push 4
mov dword [esp + 0x290], edi
call fcn.004192dc
push 0x44
lea ecx, [esp + 0x50]
push edi
push ecx
mov dword [esp + 0x24], eax
mov dword [eax], edi
call fcn.00429490
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2b4]
xor edx, edx
add esp, 0x10
sub eax, edi
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x4c], edi
mov dword [esp + 0x7c], edi
mov word [esp + 0x7a], dx
mov dword [esp + 0x50], edi
mov dword [esp + 0x74], 1
je 0x40a362
sub eax, 1
je 0x40a356
sub eax, 1
jne 0x40a36c
mov eax, 3
mov word [esp + 0x78], ax
jmp 0x40a36c
mov ecx, 6
mov word [esp + 0x78], cx
jmp 0x40a36c
mov edx, 5
mov word [esp + 0x78], dx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jne 0x40a38a
push ebp
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40a3a2
push esi
push ebp
lea ecx, [esp + 0x94]
push str.__s___s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push ebx
call edi
lea edx, [esp + 0x18]
test eax, eax
push edx
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x90]
push eax
jne 0x40a3be
push 0
jmp 0x40a3bf
push ebx
push 0
push 0x20
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40a3e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40a4b0
cmp dword [esp + 0x2a0], 0
je 0x40a491
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0x4ff
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x24]
push edx
push 1
call edi
cmp eax, 1
jne 0x40a491
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
call esi
test eax, eax
jle 0x40a47a
lea ebx, [ebx]
mov eax, dword [esp + 0x30]
cmp eax, 0x200
je 0x40a467
cmp eax, 0x201
je 0x40a467
cmp eax, 0x202
je 0x40a467
lea ecx, [esp + 0x2c]
push ecx
call ebx
lea edx, [esp + 0x2c]
push edx
call ebp
push 1
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
call esi
test eax, eax
jg 0x40a440
push 0x4ff
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x24]
push ecx
push 1
call edi
cmp eax, 1
je 0x40a427
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x18]
mov esi, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a4b4
mov edi, dword [esp + 0x14]
push edi
call fcn.0041930b
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x28c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.00429433
add esp, 0x27c
ret