Function at 0x40f820
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8c52
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.0049ac40
add esp, 0xc
test edi, edi
je 0x40fab3
push 1
xor eax, eax
mov dword [ebp - 0x818], 7
push 0x4ededc
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.00411380
push 0x4ededc
push eax
lea eax, [ebp - 0x874]
mov byte [ebp - 4], 1
push eax
call fcn.00411150
add esp, 0x10
cmp dword [ebp - 0x878], 8
jb 0x40f8f3
push dword [ebp - 0x88c]
call fcn.00473980
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 0x40f92b
push dword [ebp - 0x82c]
call fcn.00473980
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 0x40f968
xor ecx, ecx
jmp 0x40f97f
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f970
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 0x4edee0
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.004111f0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x874]
mov byte [ebp - 4], 7
call fcn.0040ca30
cmp dword [ebp - 0x890], 8
jb 0x40fa09
push dword [ebp - 0x8a4]
call fcn.00473980
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 0x40fa3d
push dword [ebp - 0x844]
call fcn.00473980
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 0x40fa71
push dword [ebp - 0x85c]
call fcn.00473980
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.00498b48
add esp, 0xc
cmp dword [ebp - 0x860], 8
jb 0x40fad0
push dword [ebp - 0x874]
call fcn.00473980
add esp, 4
jmp 0x40fad0
cmp dword [esi + 0x14], 8
jb 0x40fabb
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x814]
push 0x3ff
push eax
call fcn.00498b48
add esp, 0xc
push 0x40
lea eax, [ebp - 0x900]
xorps xmm0, xmm0
push 0
push eax
movdqu xmmword [ebp - 0x8b8], xmm0
call fcn.0049ac40
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 0x40fb5f
or eax, 0xffffffff
jmp 0x40fb85
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.004921c3
mov esp, ebp
pop ebp
ret