Function at 0x40fad0
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4458a7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x290
mov eax, dword [0x460554]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x234], eax
add eax, 0x23c
mov dword [ebp - 0x224], eax
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00401d40
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x238], edi
mov dword [ebp - 4], 0
call fcn.004153de
mov ecx, eax
test ecx, ecx
je 0x40ffc7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x23c], esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x224]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jle 0x40fd58
push 0x5c
push eax
call fcn.0042de79
add esp, 8
test eax, eax
je 0x40fd58
mov edx, dword [ebp - 0x224]
sub eax, dword [edx]
sar eax, 1
mov dword [ebp - 0x230], eax
js 0x40fd58
lea ecx, [eax + 1]
mov eax, dword [edx]
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x240]
mov ecx, edx
push eax
call fcn.0040b2d0
mov byte [ebp - 4], 2
lea ecx, [edi - 0x10]
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x22c], ecx
lea edx, [eax - 0x10]
mov dword [ebp - 0x228], edx
cmp edx, ecx
je 0x40fc3e
cmp dword [ecx + 0xc], 0
jl 0x40fc23
mov edi, dword [ebp - 0x22c]
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x40fc23
push edx
call fcn.00401d40
add esp, 4
mov dword [ebp - 0x22c], eax
or ecx, 0xffffffff
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fc18
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x22c]
lea edi, [eax + 0x10]
mov dword [ebp - 0x238], edi
jmp 0x40fc38
push dword [eax - 0xc]
lea ecx, [ebp - 0x238]
push eax
call fcn.00402420
mov edi, dword [ebp - 0x238]
mov edx, dword [ebp - 0x228]
mov byte [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fc57
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x230]
mov ecx, dword [ecx]
cmp eax, dword [ecx - 0xc]
jl 0x40fc81
lea eax, [ecx - 0x10]
push eax
call fcn.00401d40
add esp, 4
add eax, 0x10
mov dword [ebp - 0x230], eax
jmp 0x40fcc1
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x40fc93
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test eax, eax
jne 0x40fca1
call fcn.004153de
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
push eax
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x230]
push dword [ebp - 0x230]
push dword [eax]
call fcn.0040b410
mov eax, dword [ebp - 0x230]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 3
lea ecx, [esi - 0x10]
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ecx
cmp edx, ecx
je 0x40fd3f
cmp dword [ecx + 0xc], 0
jl 0x40fd24
mov esi, dword [ebp - 0x22c]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x40fd24
push edx
call fcn.00401d40
add esp, 4
mov dword [ebp - 0x22c], eax
or ecx, 0xffffffff
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fd19
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x22c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x23c], esi
jmp 0x40fd39
push dword [eax - 0xc]
lea ecx, [ebp - 0x23c]
push eax
call fcn.00402420
mov esi, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x228]
mov byte [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fd58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.004153de
mov ecx, eax
test ecx, ecx
je 0x40ffd1
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
push 1
push 0x4578bc
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 4
call fcn.00402b00
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fdb0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.00402b00
push 9
push 0x4578c0
lea ecx, [ebp - 0x224]
call fcn.00402b00
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x228], 0
cmp dword [ecx + 0x260], 0
jle 0x40fe77
nop dword [eax]
push 2
push 0x4578d4
lea ecx, [ebp - 0x224]
call fcn.00402b00
mov ecx, dword [ebp - 0x228]
test ecx, ecx
js 0x40ffe7
mov eax, dword [ebp - 0x234]
cmp ecx, dword [eax + 0x260]
jge 0x40ffe7
mov eax, dword [eax + 0x25c]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x224]
push dword [eax - 0xc]
push eax
call fcn.00402b00
push 1
push 0x4578bc
lea ecx, [ebp - 0x224]
call fcn.00402b00
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x228], eax
cmp eax, dword [ecx + 0x260]
jl 0x40fe00
lea eax, [ebp - 0x254]
mov dword [ebp - 0x2a0], 0x44
push eax
lea eax, [ebp - 0x2a0]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x400
push dword [ebp - 0x224]
movups xmmword [ebp - 0x254], xmm0
push 0
push 1
push dword [ecx + 0x240]
movlpd qword [ebp - 0x29c], xmm0
push esi
push edi
movlpd qword [ebp - 0x294], xmm0
movlpd qword [ebp - 0x28c], xmm0
movlpd qword [ebp - 0x284], xmm0
movlpd qword [ebp - 0x27c], xmm0
movlpd qword [ebp - 0x274], xmm0
movlpd qword [ebp - 0x26c], xmm0
movlpd qword [ebp - 0x264], xmm0
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x40ffdb
push 0xffffffffffffffff
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x22c], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ff69
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ff87
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x40ffa3
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042c635
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.004025f0
push 0x80004005
call fcn.004025f0
push ecx
mov ecx, dword [ebp - 0x234]
call fcn.0040fa30
call fcn.0041567f
int3