Function at 0x409cf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42855c
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x434284]
xor eax, esp
mov dword [esp + 0x2e8], eax
push ebx
push esi
push edi
mov eax, dword [0x434284]
xor eax, esp
push eax
lea eax, [esp + 0x300]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
push edi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xf0]
push eax
push 0x104
push edi
push esi
push edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x409fad
push 0x40
lea ecx, [esp + 0x8c]
push edi
push ecx
call fcn.0041b5e0
mov dx, word [ebp + 0x10]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov ebx, 1
mov eax, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x84], 0x44
mov dword [esp + 0xb0], ebx
mov word [esp + 0xb4], dx
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], edi
mov word [esp + 0xd4], di
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x409dd0
sub eax, ecx
sar eax, 1
push eax
push esi
lea esi, [esp + 0xd8]
call fcn.00404580
mov eax, esi
mov dword [esp + 0x308], edi
push eax
mov edx, 0x42d6bc
lea edi, [esp + 0x6c]
call fcn.00409c40
add esp, 4
mov byte [esp + 0x308], bl
push eax
mov ebx, 0x42d6b4
lea esi, [esp + 0x50]
call fcn.00404a50
add esp, 4
mov ebx, dword [esp + 0x18]
push eax
lea esi, [esp + 0x34]
mov byte [esp + 0x30c], 2
call fcn.00404a50
add esp, 4
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [esp + 0xd8]
mov byte [esp + 0x310], 3
call fcn.004040a0
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x409e6b
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00416abb
add esp, 4
cmp dword [esp + 0x64], esi
mov edi, 7
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
jb 0x409e90
mov edx, dword [esp + 0x50]
push edx
call fcn.00416abb
add esp, 4
mov byte [esp + 0x308], bl
cmp dword [esp + 0x80], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
jb 0x409eba
mov eax, dword [esp + 0x6c]
push eax
call fcn.00416abb
add esp, 4
cmp dword [esp + 0xe8], esi
mov eax, dword [esp + 0xd4]
jae 0x409ed1
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x88]
push edx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x409f37
cmp dword [ebp + 0x14], ebx
je 0x409f17
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x409f17
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0xe8], esi
jb 0x409f30
mov edx, dword [esp + 0xd4]
push edx
call fcn.00416abb
add esp, 4
mov eax, 1
jmp 0x409fb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x1c]
cmp edi, ebx
mov esi, eax
je 0x409f93
call fcn.00415ad0
push eax
push str.___s__
push 0x104
push 0x104
push 0x436b88
call fcn.00416b5f
mov eax, dword [esp + 0xe8]
add esp, 0x14
cmp dword [esp + 0xe8], 8
jae 0x409f81
lea eax, [esp + 0xd4]
push eax
push esi
push edi
push 0x42d6c0
push 2
call fcn.00415b20
add esp, 0x14
cmp dword [esp + 0xe8], 8
jb 0x409fad
mov eax, dword [esp + 0xd4]
push eax
call fcn.00416abb
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x300]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004170e8
mov esp, ebp
pop ebp
ret