Function at 0x40f3e0
Capabilities:
Resolve function by parsing pe exports

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 0x42d715
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x441018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov edx, dword [edi + 4]
mov esi, dword [edi]
sub edx, esi
mov eax, dword [ebx + 8]
sar edx, 3
imul ecx, edx, 0xeeeeeeef
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
test ecx, ecx
jne 0x40f456
lea ecx, [edi + 0x2c]
push ecx
mov ecx, eax
call fcn.0040e8e0
mov eax, dword [ebp - 0x38]
jmp 0x40f5a1
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
cmp eax, edx
jge 0x40f46a
test byte [edi + 0x44], 2
jne 0x40f5c1
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 1
mov edx, dword [edi + 0x3c]
test ecx, ecx
je 0x40f4b1
mov edi, dword [ebp - 0x34]
nop
mov ecx, dword [esi + 0x14]
add ecx, edx
cmp dword [esi], 0xfffffffe
jne 0x40f4a1
cmp ecx, dword [esi + 0x38]
cmovb ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x2c]
add esi, 0x78
add edx, ecx
sub edi, 1
jne 0x40f490
mov edi, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040a020
cmp dword [edi + 0x40], 8
lea eax, [edi + 0x2c]
mov ecx, dword [eax + 0x10]
jb 0x40f4c8
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406b50
mov eax, dword [edi + 4]
mov esi, dword [edi]
sub eax, esi
sar eax, 3
imul eax, eax, 0xeeeeeeef
mov dword [ebp - 0x34], 0
test eax, eax
je 0x40f57b
xor ecx, ecx
mov dword [ebp - 0x30], ecx
lea eax, [ecx + 4]
mov ecx, dword [eax + esi + 0x10]
add eax, esi
cmp dword [eax + 0x14], 8
jb 0x40f507
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406b50
mov eax, dword [ebp - 0x30]
cmp dword [esi + eax], 0xfffffffe
jne 0x40f539
mov ecx, dword [esi + eax + 0x38]
mov edx, dword [ebp - 0x1c]
cmp ecx, edx
jbe 0x40f539
movzx eax, word [esi + eax + 0x48]
sub ecx, edx
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040ae90
mov eax, dword [ebp - 0x30]
add eax, 0x1c
add eax, esi
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x40f549
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406b50
mov eax, dword [edi + 4]
mov esi, dword [edi]
sub eax, esi
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
inc edx
sar eax, 3
add ecx, 0x78
imul eax, eax, 0xeeeeeeef
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
cmp edx, eax
jb 0x40f4f6
mov eax, dword [ebp - 0x38]
movups xmm0, xmmword [ebp - 0x2c]
mov byte [edi + 0x28], 1
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [eax + 0x10], xmm0
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.00413d18
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push edx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ec70
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040ea00
int3