Function at 0x40f250
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444307
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x45d554]
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.00401db0
mov dword [ebp - 4], 0
call fcn.00414495
mov ecx, eax
test ecx, ecx
jne 0x40f2b4
push 0x80004005
call fcn.004026b0
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 0x40f389
push 0x5c
push eax
call fcn.0042de77
mov edi, eax
add esp, 8
test edi, edi
je 0x40f389
sub edi, dword [ebx + 0x238]
lea ecx, [ebx + 0x238]
sar edi, 1
js 0x40f389
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040e220
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 2
call fcn.004034f0
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 0x40f33f
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.0040e1b0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.004034f0
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 0x40f383
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.00414495
mov ecx, eax
test ecx, ecx
jne 0x40f3b2
push 0x80004005
call fcn.004026b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 1
push 0x455264
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.00402ca0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f3e0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402ca0
push 9
push 0x455268
lea ecx, [ebp - 0x21c]
call fcn.00402ca0
xor edi, edi
cmp dword [ebx + 0x25c], edi
jle 0x40f479
nop
push 2
push 0x45527c
lea ecx, [ebp - 0x21c]
call fcn.00402ca0
test edi, edi
js 0x40f4ec
cmp edi, dword [ebx + 0x25c]
jge 0x40f4ec
mov eax, dword [ebx + 0x258]
lea ecx, [ebp - 0x21c]
mov eax, dword [eax + edi*4]
push dword [eax - 0xc]
push eax
call fcn.00402ca0
push 1
push 0x455264
lea ecx, [ebp - 0x21c]
call fcn.00402ca0
inc edi
cmp edi, dword [ebx + 0x25c]
jl 0x40f420
push 0x40
lea eax, [ebp - 0x284]
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 - 0x288], 0x44
push eax
lea eax, [ebp - 0x288]
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 0x40f4f1
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.0040f140
call fcn.00414728
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 0x40f554
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 0x40f56f
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 0x40f58b
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.0042b6e6
mov esp, ebp
pop ebp
ret