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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x8a4]
xor ebx, ebx
push edi
mov dword [0x5c7410], ebx
cmp dword [ecx + 0x174], ebx
jne 0x40f572
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004052d0
movq xmm0, qword [esi + 0xa1c]
movq qword [0x5c7bec], xmm0
mov eax, dword [esi + 0xa24]
mov dword [0x5c7bf4], eax
mov eax, dword [0x6b09f8]
movss xmm0, dword [esi + 0x8ac]
subss xmm0, dword [eax + 0x78]
movss xmm1, dword [esi + 0x8b0]
subss xmm1, dword [eax + 0x7c]
movss xmm2, dword [esi + 0x8a8]
subss xmm2, dword [eax + 0x74]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x64]
movss dword [esp + 0x14], xmm2
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x1c], xmm1
call fcn.0043cf20
push esi
push ebx
lea ecx, [esp + 0x78]
push ecx
call fcn.004641d9
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x68]
push eax
mov ecx, eax
push ecx
call fcn.0046355a
mov eax, dword [esi + 0x8a4]
mov edx, dword [esi + 0x8c8]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], ebx
mov ecx, dword [eax + 0x1b4]
mov eax, dword [ecx + edx*4]
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
lea ecx, [esp + 0x3c]
push ecx
push 0x10
push eax
call edx
mov ecx, dword [esi + 0x8a4]
mov edx, dword [ecx + 0x1b4]
mov eax, dword [esi + 0x8c8]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push 0x10
push eax
mov eax, dword [ecx + 0x44]
call eax
mov edx, dword [esi + 0x8a4]
mov ecx, dword [esi + 0x8c8]
mov eax, dword [edx + 0x1b4]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push eax
call edx
xor ecx, ecx
mov dword [esp + 0x38], ecx
cmp eax, ebx
jbe 0x40f88e
xor edi, edi
mov dword [esp + 0x54], eax
lea esp, [esp]
mov eax, dword [esp + 0x50]
movzx ebx, word [edi + eax]
movzx ebp, word [edi + eax + 2]
movzx eax, word [edi + eax + 4]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
movzx eax, bx
lea ecx, [eax + eax*2]
movq xmm0, qword [edx + ecx*8]
lea eax, [edx + ecx*8]
push esi
lea ecx, [esp + 0x18]
movq qword [esp + 0x18], xmm0
mov eax, dword [eax + 8]
push ecx
mov edx, ecx
push edx
mov dword [esp + 0x28], eax
call fcn.00463530
mov ecx, dword [esp + 0x3c]
movzx eax, bp
lea eax, [eax + eax*2]
movq xmm0, qword [ecx + eax*8]
lea eax, [ecx + eax*8]
movq qword [esp + 0x2c], xmm0
mov edx, dword [eax + 8]
push esi
lea eax, [esp + 0x30]
push eax
mov ecx, eax
push ecx
mov dword [esp + 0x40], edx
call fcn.00463530
movzx eax, word [esp + 0x4c]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x3c]
movq xmm0, qword [eax + edx*8]
lea eax, [eax + edx*8]
push esi
lea edx, [esp + 0x24]
movq qword [esp + 0x24], xmm0
mov ecx, dword [eax + 8]
push edx
mov eax, edx
push eax
mov dword [esp + 0x34], ecx
call fcn.00463530
movss xmm2, dword [esp + 0x18]
addss xmm2, dword [esp + 0x30]
movss xmm1, dword [esp + 0x24]
movss xmm3, dword [esp + 0x1c]
addss xmm3, dword [esp + 0x34]
movss xmm0, dword [esp + 0x2c]
addss xmm0, dword [esp + 0x14]
mov eax, dword [0x6b09f8]
addss xmm0, dword [esp + 0x20]
addss xmm1, xmm2
movss xmm2, dword [esp + 0x28]
addss xmm2, xmm3
movss xmm3, dword [0x565d20]
mulss xmm0, xmm3
subss xmm0, dword [eax + 0x74]
mulss xmm1, xmm3
subss xmm1, dword [eax + 0x78]
mulss xmm2, xmm3
subss xmm2, dword [eax + 0x7c]
lea edx, [esp + 0x58]
lea ecx, [esp + 0x40]
movss dword [esp + 0x58], xmm0
movss dword [esp + 0x5c], xmm1
movss dword [esp + 0x60], xmm2
call fcn.0043cf20
movss xmm3, dword [esp + 0x20]
movss xmm5, dword [esp + 0x2c]
movss xmm1, dword [esp + 0x24]
movss xmm2, dword [esp + 0x30]
movss xmm0, dword [esp + 0x28]
movss xmm4, dword [esp + 0x34]
subss xmm3, xmm5
subss xmm1, xmm2
subss xmm0, xmm4
subss xmm5, dword [esp + 0x14]
subss xmm2, dword [esp + 0x18]
subss xmm4, dword [esp + 0x1c]
movaps xmm6, xmm5
movaps xmm5, xmm4
mulss xmm5, xmm1
mulss xmm1, xmm6
movaps xmm7, xmm2
mulss xmm7, xmm0
mulss xmm0, xmm6
mulss xmm2, xmm3
subss xmm2, xmm1
movss xmm1, dword [esp + 0x44]
mulss xmm4, xmm3
subss xmm0, xmm4
mulss xmm1, xmm0
movss xmm0, dword [esp + 0x48]
mulss xmm0, xmm2
addss xmm1, xmm0
movss xmm0, dword [esp + 0x40]
subss xmm5, xmm7
mulss xmm0, xmm5
addss xmm1, xmm0
comiss xmm1, dword [0x565320]
jb 0x40f87a
push ebp
push ebx
lea edx, [esp + 0x40]
mov ecx, 0x5c7418
call fcn.0043d7f0
mov ecx, dword [esp + 0x4c]
push ecx
push ebp
lea edx, [esp + 0x40]
mov ecx, 0x5c7418
call fcn.0043d7f0
mov edx, dword [esp + 0x4c]
push ebx
push edx
lea edx, [esp + 0x40]
mov ecx, 0x5c7418
call fcn.0043d7f0
add edi, 6
sub dword [esp + 0x54], 1
jne 0x40f680
mov ecx, dword [esp + 0x38]
xor ebx, ebx
xor edi, edi
cmp ecx, ebx
jbe 0x40f9fd
jmp 0x40f8a0
movzx eax, word [edi*4 + 0x5c7418]
mov ecx, dword [esp + 0x3c]
lea eax, [eax + eax*2]
movq xmm0, qword [ecx + eax*8]
lea eax, [ecx + eax*8]
movq qword [esp + 0x20], xmm0
mov edx, dword [eax + 8]
movzx eax, word [edi*4 + 0x5c741a]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
mov dword [esp + 0x28], edx
movq xmm0, qword [eax]
push esi
lea edx, [esp + 0x24]
movq qword [esp + 0x30], xmm0
mov ecx, dword [eax + 8]
push edx
mov eax, edx
push eax
mov dword [esp + 0x40], ecx
call fcn.00463530
push esi
lea ecx, [esp + 0x30]
push ecx
mov edx, ecx
push edx
call fcn.00463530
movss xmm3, dword [0x565314]
movss xmm0, dword [esp + 0x2c]
addss xmm0, dword [esp + 0x20]
movss xmm1, dword [esp + 0x24]
addss xmm1, dword [esp + 0x30]
movss xmm2, dword [esp + 0x28]
addss xmm2, dword [esp + 0x34]
mov eax, dword [0x6b09f8]
mulss xmm0, xmm3
movss dword [esp + 0x14], xmm0
mulss xmm1, xmm3
movss dword [esp + 0x18], xmm1
mulss xmm2, xmm3
movss dword [esp + 0x1c], xmm2
subss xmm1, dword [eax + 0x78]
subss xmm2, dword [eax + 0x7c]
subss xmm0, dword [eax + 0x74]
lea edx, [esp + 0x40]
lea ecx, [esp + 0x58]
movss dword [esp + 0x40], xmm0
movss dword [esp + 0x44], xmm1
movss dword [esp + 0x48], xmm2
call fcn.0043cf20
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
movss xmm2, dword [eax + 8]
mov ecx, dword [0x5c7410]
movss xmm3, dword [0x565d1c]
mov eax, ecx
inc ecx
mov dword [0x5c7410], ecx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
shl eax, 4
lea ecx, [esp + 0x28]
add eax, 0x5c7bf8
push ecx
mulss xmm0, xmm3
addss xmm0, dword [esp + 0x20]
mulss xmm1, xmm3
addss xmm1, dword [esp + 0x24]
mulss xmm2, xmm3
addss xmm2, dword [esp + 0x28]
push eax
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x28], xmm1
movss dword [esp + 0x2c], xmm2
call fcn.004658f8
mov ecx, dword [esp + 0x38]
inc edi
cmp edi, ecx
jb 0x40f8a0
cmp ecx, ebx
je 0x40fa8c
mov eax, dword [0x6b09f8]
mov edx, dword [esi + 0xa24]
movq xmm0, qword [esi + 0xa1c]
movq qword [esp + 0x14], xmm0
movss xmm2, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
movss xmm0, dword [eax + 0x78]
movss xmm1, dword [esp + 0x1c]
movss dword [esp + 0x18], xmm0
subss xmm0, dword [eax + 0x78]
subss xmm1, dword [eax + 0x7c]
subss xmm2, dword [eax + 0x74]
lea edx, [esp + 0x40]
lea ecx, [esp + 0x58]
movss dword [esp + 0x40], xmm2
movss dword [esp + 0x44], xmm0
movss dword [esp + 0x48], xmm1
call fcn.0043cf20
mov ecx, dword [0x5c7410]
mov eax, ecx
inc ecx
mov dword [0x5c7410], ecx
lea ecx, [esp + 0x58]
push ecx
shl eax, 4
lea edx, [esp + 0x18]
add eax, 0x5c7bf8
push edx
push eax
call fcn.004658ad
mov ecx, dword [esi + 0x8a4]
mov edx, dword [ecx + 0x1b4]
mov eax, dword [esi + 0x8c8]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
push eax
call edx
mov ecx, dword [esi + 0x8a4]
mov edx, dword [ecx + 0x1b4]
mov eax, dword [esi + 0x8c8]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push eax
call edx
xor eax, eax
cmp dword [0x5c7410], ebx
pop edi
setne al
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret