Function at 0x409ef0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5425f8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x593dc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00415eb7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409f32
push 0x80004005
call fcn.00402460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x409f6c
push 0x105
lea ecx, [ebp - 0x10]
call fcn.004023c0
mov esi, dword [ebp - 0x10]
push 0x105
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0051e211
add esp, 8
test eax, eax
js 0x40a10e
cmp eax, dword [esi - 8]
jg 0x40a10e
xor ecx, ecx
push 0x5c
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call fcn.0051e80f
add esp, 8
test eax, eax
jne 0x409fb5
or eax, 0xffffffff
jmp 0x409fb9
sub eax, esi
sar eax, 1
inc eax
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040b780
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00407b20
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ff7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10]
lea edi, [ebp - 0x18]
call fcn.0040a120
mov ebx, 2
mov byte [ebp - 4], bl
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004048e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a03c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x44
lea ecx, [ebp - 0x70]
push 0
push ecx
mov dword [ebp - 0x14], ebx
call fcn.0051fa60
mov esi, dword [ebp - 0x10]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [esi - 4], 1
jle 0x40a07c
mov edx, dword [esi - 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.004022f0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a0d0
mov edx, dword [ebp - 0x28]
push 0x493e0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40a0be
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [ebp - 0x24]
push eax
call edi
cmp dword [ebp - 0x14], 0
lea eax, [esi - 0x10]
sete bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a0fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402460
int3