Function at 0x40edc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8ec2
mov eax, dword fs:[0]
push eax
sub esp, 0x8f8
mov eax, dword [0x4f54d8]
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.0048bcb0
add esp, 0xc
test edi, edi
je 0x40f053
push 1
xor eax, eax
mov dword [ebp - 0x818], 7
push 0x4d8d8c
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x82c], ax
call fcn.00406a70
push esi
lea edx, [ebp - 0x82c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x88c]
call fcn.00410b70
push 0x4d8d8c
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x874]
call fcn.004112a0
add esp, 8
cmp dword [ebp - 0x878], 8
jb 0x40ee93
push dword [ebp - 0x88c]
call fcn.00464c00
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 0x40eecb
push dword [ebp - 0x82c]
call fcn.00464c00
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 0x40ef08
xor ecx, ecx
jmp 0x40ef1f
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ef10
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x85c]
call fcn.00406a70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x844]
push 1
xor eax, eax
mov dword [ebp - 0x830], 7
push 0x4d8d88
mov dword [ebp - 0x834], 0
mov word [ebp - 0x844], ax
call fcn.00406a70
lea eax, [ebp - 0x85c]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x844]
lea ecx, [ebp - 0x8a4]
call fcn.00410a20
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x874]
mov byte [ebp - 4], 7
call fcn.0040ca10
cmp dword [ebp - 0x890], 8
jb 0x40efa9
push dword [ebp - 0x8a4]
call fcn.00464c00
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 0x40efdd
push dword [ebp - 0x844]
call fcn.00464c00
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 0x40f011
push dword [ebp - 0x85c]
call fcn.00464c00
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.004899d5
add esp, 0xc
cmp dword [ebp - 0x860], 8
jb 0x40f070
push dword [ebp - 0x874]
call fcn.00464c00
add esp, 4
jmp 0x40f070
cmp dword [esi + 0x14], 8
jb 0x40f05b
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x814]
push 0x3ff
push eax
call fcn.004899d5
add esp, 0xc
push 0x40
lea eax, [ebp - 0x900]
xorps xmm0, xmm0
push 0
push eax
movdqu xmmword [ebp - 0x8b8], xmm0
call fcn.0048bcb0
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 0x40f0ff
or eax, 0xffffffff
jmp 0x40f125
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.00482fe3
mov esp, ebp
pop ebp
ret