Function at 0x40fa70
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 0x42f225
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x442014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
sub ecx, edx
mov eax, dword [ebx + 8]
sar ecx, 3
imul edi, ecx, 0xeeeeeeef
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
test edi, edi
jne 0x40fae0
lea ecx, [esi + 0x2c]
push ecx
mov ecx, eax
call fcn.0040e360
mov eax, dword [ebp - 0x38]
jmp 0x40fc34
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
cmp eax, ecx
jge 0x40faf4
test byte [esi + 0x44], 2
jne 0x40fc54
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x3c]
test edi, edi
je 0x40fb3e
nop dword [eax]
mov ecx, dword [edx + 0x14]
add ecx, eax
cmp dword [edx], 0xfffffffe
jne 0x40fb31
cmp ecx, dword [edx + 0x38]
cmovb ecx, dword [edx + 0x38]
mov eax, dword [edx + 0x2c]
add edx, 0x78
add eax, ecx
sub edi, 1
jne 0x40fb20
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409df0
cmp dword [esi + 0x40], 8
lea eax, [esi + 0x2c]
mov ecx, dword [eax + 0x10]
jb 0x40fb55
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406d50
mov eax, dword [esi + 4]
mov edi, dword [esi]
sub eax, edi
sar eax, 3
imul eax, eax, 0xeeeeeeef
mov dword [ebp - 0x34], 0
test eax, eax
je 0x40fc08
xor ecx, ecx
mov dword [ebp - 0x30], ecx
lea eax, [ecx + 4]
mov ecx, dword [eax + edi + 0x10]
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x40fb94
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406d50
mov eax, dword [ebp - 0x30]
cmp dword [edi + eax], 0xfffffffe
jne 0x40fbc6
mov ecx, dword [edi + eax + 0x38]
mov edx, dword [ebp - 0x1c]
cmp ecx, edx
jbe 0x40fbc6
movzx eax, word [edi + eax + 0x48]
sub ecx, edx
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00406cd0
mov eax, dword [ebp - 0x30]
add eax, 0x1c
add eax, edi
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x40fbd6
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406d50
mov eax, dword [esi + 4]
mov edi, dword [esi]
sub eax, edi
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 0x40fb83
mov eax, dword [ebp - 0x38]
xorps xmm0, xmm0
mov byte [esi + 0x28], 1
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
movups xmm0, xmmword [ebp - 0x2c]
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.004144c6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push ecx
push eax
lea ecx, [ebp - 0x50]
call fcn.0040f2b0
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040f030
int3