Function at 0x40f1a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444967
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x45e554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x220], ebx
lea edi, [ebx + 0x238]
push edi
lea ecx, [ebp - 0x228]
call fcn.00402a80
mov dword [ebp - 4], 0
call fcn.004144f5
mov ecx, eax
test ecx, ecx
jne 0x40f204
push 0x80004005
call fcn.00402370
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
mov byte [ebp - 4], 1
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jle 0x40f2d9
push 0x5c
push eax
call fcn.0042de77
mov edi, eax
add esp, 8
test edi, edi
je 0x40f2d9
sub edi, dword [ebx + 0x238]
lea ecx, [ebx + 0x238]
sar edi, 1
js 0x40f2d9
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040e1c0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 2
call fcn.00403280
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x21c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f28f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebx + 0x238]
call fcn.0040e150
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.00403280
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f2d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.004144f5
mov ecx, eax
test ecx, ecx
jne 0x40f302
push 0x80004005
call fcn.00402370
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 1
push 0x4541bc
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.00402940
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f330
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402940
push 9
push 0x4541c0
lea ecx, [ebp - 0x21c]
call fcn.00402940
xor edi, edi
cmp dword [ebx + 0x25c], edi
jle 0x40f3c9
nop
push 2
push 0x4541d4
lea ecx, [ebp - 0x21c]
call fcn.00402940
test edi, edi
js 0x40f43c
cmp edi, dword [ebx + 0x25c]
jge 0x40f43c
mov eax, dword [ebx + 0x258]
lea ecx, [ebp - 0x21c]
mov eax, dword [eax + edi*4]
push dword [eax - 0xc]
push eax
call fcn.00402940
push 1
push 0x4541bc
lea ecx, [ebp - 0x21c]
call fcn.00402940
inc edi
cmp edi, dword [ebx + 0x25c]
jl 0x40f370
push 0x40
lea eax, [ebp - 0x280]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x240], xmm0
call fcn.0042e550
mov ebx, dword [ebp - 0x21c]
lea eax, [ebp - 0x240]
add esp, 0xc
mov edi, dword [ebp - 0x228]
mov dword [ebp - 0x284], 0x44
push eax
lea eax, [ebp - 0x284]
push eax
mov eax, dword [ebp - 0x220]
push 0
push 0
push 0x400
push ebx
push 0
push 1
push dword [eax + 0x23c]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x40f441
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.0040f0e0
call fcn.00414798
push 0xffffffffffffffff
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x230]
lea edx, [ebx - 0x10]
or ebx, 0xffffffff
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 1
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f4a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40f4bf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40f4db
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b520
mov esp, ebp
pop ebp
ret