Function at 0x40f810
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8712
mov eax, dword fs:[0]
push eax
sub esp, 0x8f8
mov eax, dword [0x50c4d8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 8]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
call fcn.0049a790
add esp, 0xc
test edi, edi
je 0x40faa3
push 1
xor eax, eax
mov dword [ebp - 0x818], 7
push 0x4ed78c
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x82c], ax
call fcn.00407100
push esi
lea edx, [ebp - 0x82c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x88c]
call fcn.00411370
push 0x4ed78c
push eax
lea eax, [ebp - 0x874]
mov byte [ebp - 4], 1
push eax
call fcn.00411140
add esp, 0x10
cmp dword [ebp - 0x878], 8
jb 0x40f8e3
push dword [ebp - 0x88c]
call fcn.00473460
add esp, 4
xor eax, eax
mov dword [ebp - 0x878], 7
mov dword [ebp - 0x87c], 0
mov word [ebp - 0x88c], ax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x818], 8
jb 0x40f91b
push dword [ebp - 0x82c]
call fcn.00473460
add esp, 4
xor eax, eax
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x82c], ax
mov dword [ebp - 0x848], 7
mov dword [ebp - 0x84c], eax
mov word [ebp - 0x85c], ax
cmp word [edi], ax
jne 0x40f958
xor ecx, ecx
jmp 0x40f96f
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f960
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x85c]
call fcn.00407100
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x844]
push 1
xor eax, eax
mov dword [ebp - 0x830], 7
push 0x4ed790
mov dword [ebp - 0x834], 0
mov word [ebp - 0x844], ax
call fcn.00407100
lea eax, [ebp - 0x85c]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x844]
lea ecx, [ebp - 0x8a4]
call fcn.004111e0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x874]
mov byte [ebp - 4], 7
call fcn.0040ca20
cmp dword [ebp - 0x890], 8
jb 0x40f9f9
push dword [ebp - 0x8a4]
call fcn.00473460
add esp, 4
xor eax, eax
mov dword [ebp - 0x890], 7
cmp dword [ebp - 0x830], 8
mov dword [ebp - 0x894], 0
mov word [ebp - 0x8a4], ax
jb 0x40fa2d
push dword [ebp - 0x844]
call fcn.00473460
add esp, 4
xor eax, eax
mov dword [ebp - 0x830], 7
cmp dword [ebp - 0x848], 8
mov dword [ebp - 0x834], 0
mov word [ebp - 0x844], ax
jb 0x40fa61
push dword [ebp - 0x85c]
call fcn.00473460
add esp, 4
cmp dword [ebp - 0x860], 8
lea eax, [ebp - 0x874]
cmovae eax, dword [ebp - 0x874]
push eax
lea eax, [ebp - 0x814]
push 0x3ff
push eax
call fcn.00498690
add esp, 0xc
cmp dword [ebp - 0x860], 8
jb 0x40fac0
push dword [ebp - 0x874]
call fcn.00473460
add esp, 4
jmp 0x40fac0
cmp dword [esi + 0x14], 8
jb 0x40faab
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x814]
push 0x3ff
push eax
call fcn.00498690
add esp, 0xc
push 0x40
lea eax, [ebp - 0x900]
xorps xmm0, xmm0
push 0
push eax
movdqu xmmword [ebp - 0x8b8], xmm0
call fcn.0049a790
add esp, 0xc
mov dword [ebp - 0x904], 0x44
xor eax, eax
mov dword [ebp - 0x900], 0
mov dword [ebp - 0x8d4], eax
mov dword [ebp - 0x8d0], eax
lea eax, [ebp - 0x8b8]
push eax
lea eax, [ebp - 0x904]
mov dword [ebp - 0x8fc], 0
push eax
push ebx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x814]
mov dword [ebp - 0x8f8], 0
push eax
push 0
mov dword [ebp - 0x8d8], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40fb4f
or eax, 0xffffffff
jmp 0x40fb75
push dword [ebp - 0x8b8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x8a8], 0
call esi
push dword [ebp - 0x8b4]
call esi
mov eax, dword [ebp - 0x8a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00491c63
mov esp, ebp
pop ebp
ret