Function at 0x40f5d0
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 0x42e855
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x442018]
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 0x40f646
lea ecx, [edi + 0x2c]
push ecx
mov ecx, eax
call fcn.0040eaa0
mov eax, dword [ebp - 0x38]
jmp 0x40f7a1
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
cmp eax, edx
jge 0x40f65a
test byte [edi + 0x44], 2
jne 0x40f7c1
xor eax, eax
mov dword [ebp - 0x2c], 0
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 0x40f6a7
mov edi, dword [ebp - 0x34]
mov ecx, dword [esi + 0x14]
add ecx, edx
cmp dword [esi], 0xfffffffe
jne 0x40f697
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 0x40f686
mov edi, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040a0c0
cmp dword [edi + 0x40], 8
lea eax, [edi + 0x2c]
mov ecx, dword [eax + 0x10]
jb 0x40f6be
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406bc0
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 0x40f775
xor ecx, ecx
mov dword [ebp - 0x30], ecx
nop dword [eax]
lea eax, [ecx + 4]
mov ecx, dword [eax + esi + 0x10]
add eax, esi
cmp dword [eax + 0x14], 8
jb 0x40f701
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406bc0
mov eax, dword [ebp - 0x30]
cmp dword [esi + eax], 0xfffffffe
jne 0x40f733
mov ecx, dword [esi + eax + 0x38]
mov edx, dword [ebp - 0x1c]
cmp ecx, edx
jbe 0x40f733
movzx eax, word [esi + eax + 0x48]
sub ecx, edx
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040af40
mov eax, dword [ebp - 0x30]
add eax, 0x1c
add eax, esi
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x40f743
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406bc0
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 0x40f6f0
mov eax, dword [ebp - 0x38]
movups xmm0, xmmword [ebp - 0x2c]
mov byte [edi + 0x28], 1
mov dword [eax], 0
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.004143eb
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push edx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ee50
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040ebd0
int3