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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x564328
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push esi
push edi
mov eax, dword [0x5c5bf0]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x41c], 0
jne 0x408ac2
mov eax, dword [esi + 0x180]
mov edi, dword [esi + 0x184]
mov edx, dword [esi + 0x188]
mov dword [esp + 0x1c], eax
add eax, edi
add eax, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
je 0x408ac2
mov eax, dword [ebp + 8]
movss xmm0, dword [0x565314]
test eax, eax
je 0x407f32
movq xmm0, qword [eax]
movq qword [esi + 0x420], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 0x428], eax
jmp 0x4086a5
cmp dword [esi + 0x3ac], 0
je 0x407f5b
mov eax, dword [esi + 0x3ec]
movq xmm0, qword [eax]
movq qword [esi + 0x420], xmm0
mov ecx, dword [eax + 8]
mov dword [esi + 0x428], ecx
jmp 0x4086a5
xor ebx, ebx
cmp edx, 4
jl 0x408128
add edx, 0xfffffffc
shr edx, 2
xor eax, eax
inc edx
lea ebx, [edx*4]
jmp 0x407f80
mov ecx, dword [esi + 0x294]
movss xmm1, dword [ecx + eax + 0xc]
addss xmm1, dword [ecx + eax]
movss xmm2, dword [ecx + eax + 0x10]
addss xmm2, dword [ecx + eax + 4]
movss xmm3, dword [ecx + eax + 0x14]
addss xmm3, dword [ecx + eax + 8]
add ecx, eax
mulss xmm1, xmm0
addss xmm1, dword [esi + 0x420]
movss dword [esi + 0x420], xmm1
mulss xmm2, xmm0
addss xmm2, dword [esi + 0x424]
movss dword [esi + 0x424], xmm2
mulss xmm3, xmm0
addss xmm3, dword [esi + 0x428]
movss dword [esi + 0x428], xmm3
mov ecx, dword [esi + 0x294]
movss xmm1, dword [ecx + eax + 0x24]
addss xmm1, dword [ecx + eax + 0x18]
movss xmm2, dword [ecx + eax + 0x28]
addss xmm2, dword [ecx + eax + 0x1c]
movss xmm3, dword [ecx + eax + 0x2c]
addss xmm3, dword [ecx + eax + 0x20]
add ecx, eax
mulss xmm1, xmm0
addss xmm1, dword [esi + 0x420]
movss dword [esi + 0x420], xmm1
mulss xmm2, xmm0
addss xmm2, dword [esi + 0x424]
movss dword [esi + 0x424], xmm2
mulss xmm3, xmm0
addss xmm3, dword [esi + 0x428]
movss dword [esi + 0x428], xmm3
mov ecx, dword [esi + 0x294]
movss xmm1, dword [ecx + eax + 0x3c]
addss xmm1, dword [ecx + eax + 0x30]
movss xmm2, dword [ecx + eax + 0x40]
addss xmm2, dword [ecx + eax + 0x34]
movss xmm3, dword [ecx + eax + 0x44]
addss xmm3, dword [ecx + eax + 0x38]
mulss xmm1, xmm0
addss xmm1, dword [esi + 0x420]
mulss xmm2, xmm0
addss xmm2, dword [esi + 0x424]
mulss xmm3, xmm0
addss xmm3, dword [esi + 0x428]
movaps xmm4, xmm1
movss dword [esi + 0x420], xmm4
movaps xmm5, xmm2
movss dword [esi + 0x424], xmm5
movaps xmm6, xmm3
movss dword [esi + 0x428], xmm6
mov ecx, dword [esi + 0x294]
movss xmm1, dword [ecx + eax + 0x54]
movss xmm2, dword [ecx + eax + 0x58]
movss xmm3, dword [ecx + eax + 0x5c]
addss xmm1, dword [ecx + eax + 0x48]
addss xmm2, dword [ecx + eax + 0x4c]
addss xmm3, dword [ecx + eax + 0x50]
mulss xmm1, xmm0
mulss xmm2, xmm0
mulss xmm3, xmm0
add eax, 0x60
sub edx, 1
addss xmm4, xmm1
addss xmm5, xmm2
addss xmm6, xmm3
movss dword [esi + 0x420], xmm4
movss dword [esi + 0x424], xmm5
movss dword [esi + 0x428], xmm6
jne 0x407f80
mov edx, dword [esp + 0x14]
cmp ebx, edx
jge 0x4081af
mov edx, dword [esp + 0x14]
lea ecx, [ebx + ebx*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
sub edx, ebx
nop
mov eax, dword [esi + 0x294]
movss xmm1, dword [eax + ecx + 0xc]
addss xmm1, dword [eax + ecx]
movss xmm2, dword [eax + ecx + 0x10]
addss xmm2, dword [eax + ecx + 4]
movss xmm3, dword [eax + ecx + 0x14]
addss xmm3, dword [eax + ecx + 8]
add eax, ecx
mulss xmm1, xmm0
addss xmm1, dword [esi + 0x420]
mulss xmm2, xmm0
addss xmm2, dword [esi + 0x424]
mulss xmm3, xmm0
addss xmm3, dword [esi + 0x428]
add ecx, 0x18
sub edx, 1
movss dword [esi + 0x420], xmm1
movss dword [esi + 0x424], xmm2
movss dword [esi + 0x428], xmm3
jne 0x408140
xor ebx, ebx
cmp edi, 4
jl 0x408378
lea edx, [edi - 4]
shr edx, 2
xor eax, eax
inc edx
lea ebx, [edx*4]
lea ebx, [ebx]
mov ecx, dword [esi + 0x290]
movss xmm1, dword [ecx + eax]
addss xmm1, dword [ecx + eax + 0xc]
movss xmm2, dword [ecx + eax + 4]
addss xmm2, dword [ecx + eax + 0x10]
movss xmm3, dword [ecx + eax + 8]
addss xmm3, dword [ecx + eax + 0x14]
movss xmm4, dword [esi + 0x420]
add ecx, eax
mulss xmm2, xmm0
addss xmm2, dword [esi + 0x424]
movss dword [esi + 0x424], xmm2
mulss xmm3, xmm0
addss xmm3, dword [esi + 0x428]
movss dword [esi + 0x428], xmm3
mulss xmm1, xmm0
addss xmm4, xmm1
movss dword [esi + 0x420], xmm4
mov ecx, dword [esi + 0x290]
movss xmm1, dword [ecx + eax + 0x18]
addss xmm1, dword [ecx + eax + 0x24]
movss xmm2, dword [ecx + eax + 0x1c]
addss xmm2, dword [ecx + eax + 0x28]
movss xmm3, dword [ecx + eax + 0x20]
addss xmm3, dword [ecx + eax + 0x2c]
add ecx, eax
mulss xmm2, xmm0
addss xmm2, dword [esi + 0x424]
movss dword [esi + 0x424], xmm2
mulss xmm3, xmm0
addss xmm3, dword [esi + 0x428]
movss dword [esi + 0x428], xmm3
mulss xmm1, xmm0
addss xmm4, xmm1
movss dword [esi + 0x420], xmm4
mov ecx, dword [esi + 0x290]
movss xmm1, dword [eax + ecx + 0x30]
addss xmm1, dword [ecx + eax + 0x3c]
movss xmm2, dword [eax + ecx + 0x34]
addss xmm2, dword [ecx + eax + 0x40]
movss xmm3, dword [eax + ecx + 0x38]
addss xmm3, dword [ecx + eax + 0x44]
mulss xmm1, xmm0
movaps xmm4, xmm1
movss xmm1, dword [esi + 0x420]
mulss xmm2, xmm0
addss xmm2, dword [esi + 0x424]
mulss xmm3, xmm0
addss xmm3, dword [esi + 0x428]
addss xmm1, xmm4
movss dword [esi + 0x420], xmm1
movaps xmm5, xmm2
movss dword [esi + 0x424], xmm5
movaps xmm6, xmm3
movss dword [esi + 0x428], xmm6
mov ecx, dword [esi + 0x290]
movss xmm2, dword [eax + ecx + 0x48]
movss xmm3, dword [eax + ecx + 0x4c]
movss xmm4, dword [eax + ecx + 0x50]
addss xmm2, dword [ecx + eax + 0x54]
addss xmm3, dword [ecx + eax + 0x58]
addss xmm4, dword [ecx + eax + 0x5c]
mulss xmm2, xmm0
mulss xmm3, xmm0
mulss xmm4, xmm0
add eax, 0x60
sub edx, 1
addss xmm1, xmm2
addss xmm5, xmm3
addss xmm6, xmm4
movss dword [esi + 0x420], xmm1
movss dword [esi + 0x424], xmm5
movss dword [esi + 0x428], xmm6
jne 0x4081d0
cmp ebx, edi
jge 0x408403
lea ecx, [ebx + ebx*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
sub edi, ebx
mov edx, edi
lea ecx, [ecx]
mov eax, dword [esi + 0x290]
movss xmm1, dword [eax + ecx]
movss xmm2, dword [eax + ecx + 4]
addss xmm2, dword [eax + ecx + 0x10]
movss xmm3, dword [eax + ecx + 8]
addss xmm3, dword [eax + ecx + 0x14]
addss xmm1, dword [eax + ecx + 0xc]
movss xmm4, dword [esi + 0x420]
add eax, ecx
mulss xmm1, xmm0
mulss xmm2, xmm0
addss xmm2, dword [esi + 0x424]
mulss xmm3, xmm0
addss xmm3, dword [esi + 0x428]
add ecx, 0x18
sub edx, 1
addss xmm4, xmm1
movss dword [esi + 0x420], xmm4
movss dword [esi + 0x424], xmm2
movss dword [esi + 0x428], xmm3
jne 0x408390
mov edx, dword [esp + 0x1c]
xor ebx, ebx
cmp edx, 4
jl 0x4085c6
add edx, 0xfffffffc
shr edx, 2
xor eax, eax
inc edx
lea ebx, [edx*4]
mov ecx, dword [esi + 0x28c]
movss xmm1, dword [ecx + eax]
addss xmm1, dword [ecx + eax + 0xc]
movss xmm2, dword [ecx + eax + 4]
addss xmm2, dword [ecx + eax + 0x10]
movss xmm3, dword [ecx + eax + 8]
addss xmm3, dword [ecx + eax + 0x14]
add ecx, eax
mulss xmm1, xmm0
addss xmm1, dword [esi + 0x420]
movss dword [esi + 0x420], xmm1
mulss xmm2, xmm0
addss xmm2, dword [esi + 0x424]
movss dword [esi + 0x424], xmm2
mulss xmm3, xmm0
addss xmm3, dword [esi + 0x428]
movss dword [esi + 0x428], xmm3
mov ecx, dword [esi + 0x28c]
movss xmm1, dword [ecx + eax + 0x18]
addss xmm1, dword [ecx + eax + 0x24]
movss xmm2, dword [ecx + eax + 0x1c]
addss xmm2, dword [ecx + eax + 0x28]
movss xmm3, dword [ecx + eax + 0x20]
addss xmm3, dword [ecx + eax + 0x2c]
add ecx, eax
mulss xmm1, xmm0
addss xmm1, dword [esi + 0x420]
movss dword [esi + 0x420], xmm1
mulss xmm2, xmm0
addss xmm2, dword [esi + 0x424]
movss dword [esi + 0x424], xmm2
mulss xmm3, xmm0
addss xmm3, dword [esi + 0x428]
movss dword [esi + 0x428], xmm3
mov ecx, dword [esi + 0x28c]
movss xmm1, dword [eax + ecx + 0x30]
addss xmm1, dword [eax + ecx + 0x3c]
movss xmm2, dword [eax + ecx + 0x34]
addss xmm2, dword [eax + ecx + 0x40]
movss xmm3, dword [eax + ecx + 0x38]
addss xmm3, dword [eax + ecx + 0x44]
mulss xmm1, xmm0
addss xmm1, dword [esi + 0x420]
mulss xmm2, xmm0
addss xmm2, dword [esi + 0x424]
mulss xmm3, xmm0
addss xmm3, dword [esi + 0x428]
movaps xmm4, xmm1
movss dword [esi + 0x420], xmm4
movaps xmm5, xmm2
movss dword [esi + 0x424], xmm5
movaps xmm6, xmm3
movss dword [esi + 0x428], xmm6
mov ecx, dword [esi + 0x28c]
movss xmm1, dword [eax + ecx + 0x48]
movss xmm2, dword [eax + ecx + 0x4c]
movss xmm3, dword [eax + ecx + 0x50]
addss xmm1, dword [eax + ecx + 0x54]
addss xmm2, dword [eax + ecx + 0x58]
addss xmm3, dword [eax + ecx + 0x5c]
mulss xmm1, xmm0
mulss xmm2, xmm0
mulss xmm3, xmm0
add eax, 0x60
sub edx, 1
addss xmm4, xmm1
addss xmm5, xmm2
addss xmm6, xmm3
movss dword [esi + 0x420], xmm4
movss dword [esi + 0x424], xmm5
movss dword [esi + 0x428], xmm6
jne 0x408422
cmp ebx, dword [esp + 0x1c]
jge 0x408657
mov edx, dword [esp + 0x1c]
lea ecx, [ebx + ebx*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
sub edx, ebx
nop
mov eax, dword [esi + 0x28c]
movss xmm1, dword [eax + ecx]
addss xmm1, dword [eax + ecx + 0xc]
movss xmm2, dword [eax + ecx + 4]
movss xmm3, dword [eax + ecx + 8]
addss xmm2, dword [eax + ecx + 0x10]
addss xmm3, dword [eax + ecx + 0x14]
add eax, ecx
mulss xmm1, xmm0
addss xmm1, dword [esi + 0x420]
movss dword [esi + 0x420], xmm1
movss xmm1, dword [esi + 0x424]
mulss xmm2, xmm0
addss xmm1, xmm2
movss dword [esi + 0x424], xmm1
movss xmm1, dword [esi + 0x428]
mulss xmm3, xmm0
add ecx, 0x18
sub edx, 1
addss xmm1, xmm3
movss dword [esi + 0x428], xmm1
jne 0x4085e0
cvtsi2ss xmm1, dword [esp + 0x18]
movss xmm0, dword [0x5652d0]
divss xmm0, xmm1
movss xmm1, dword [esi + 0x420]
mulss xmm1, xmm0
movss dword [esi + 0x420], xmm1
movss xmm1, dword [esi + 0x424]
mulss xmm1, xmm0
movss dword [esi + 0x424], xmm1
movss xmm1, dword [esi + 0x428]
mulss xmm1, xmm0
movss dword [esi + 0x428], xmm1
push 0x10
push 0x60
call fcn.005475c0
add esp, 8
mov dword [esp + 0x20], eax
xor ebx, ebx
mov dword [esp + 0xf0], ebx
cmp eax, ebx
je 0x4086cd
push 1
mov ecx, eax
call fcn.005074e0
jmp 0x4086cf
xor eax, eax
xorps xmm0, xmm0
mov dword [esi + 0x41c], eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0xf0], 0xffffffff
jle 0x4088f0
movss dword [esp + 0x50], xmm0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
movss xmm3, dword [0x565314]
mov eax, dword [esi + 0x2d4]
movss xmm0, dword [eax + ebx]
mov ecx, dword [esi + 0x294]
mov edx, dword [esp + 0x14]
movss xmm1, dword [ecx + edx + 0x10]
addss xmm1, dword [ecx + edx + 4]
movss xmm2, dword [ecx + edx + 0x14]
addss xmm2, dword [ecx + edx + 8]
mulss xmm0, xmm3
add eax, ebx
movss dword [esp + 0x20], xmm0
movss xmm0, dword [eax + 4]
mulss xmm0, xmm3
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [eax + 8]
lea eax, [ecx + edx]
mulss xmm0, xmm3
movss dword [esp + 0x60], xmm0
movss xmm0, dword [eax + 0xc]
addss xmm0, dword [eax]
mulss xmm0, xmm3
subss xmm0, dword [esi + 0x420]
mulss xmm1, xmm3
subss xmm1, dword [esi + 0x424]
mulss xmm2, xmm3
subss xmm2, dword [esi + 0x428]
push 0x10
push 0x70
movss dword [esp + 0x4c], xmm0
movss dword [esp + 0x50], xmm1
movss dword [esp + 0x54], xmm2
call fcn.005475c0
mov edi, eax
add esp, 8
mov dword [esp + 0x40], edi
mov dword [esp + 0xf0], 1
test edi, edi
je 0x408845
mov ecx, edi
call fcn.00505f10
movss xmm0, dword [edi + 0x30]
movaps xmm4, xmm0
movaps xmm5, xmm0
movaps xmm3, xmm0
mov dword [edi], vtable.btBoxShape.0
mov dword [edi + 4], 0
movss xmm1, dword [edi + 0x14]
movss xmm0, dword [edi + 0x18]
movss xmm2, dword [edi + 0x10]
mulss xmm1, dword [esp + 0x5c]
mulss xmm0, dword [esp + 0x60]
mulss xmm2, dword [esp + 0x20]
subss xmm1, xmm4
subss xmm0, xmm3
subss xmm2, xmm5
movss dword [esp + 0x28], xmm1
movss dword [esp + 0x2c], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x24], xmm2
movq xmm1, qword [esp + 0x24]
movq qword [edi + 0x20], xmm1
movss dword [esp + 0x30], xmm0
movq xmm1, qword [esp + 0x2c]
movq qword [edi + 0x28], xmm1
jmp 0x40884a
xorps xmm0, xmm0
xor edi, edi
movss xmm1, dword [0x5652d0]
mov ecx, dword [esi + 0x41c]
push edi
lea eax, [esp + 0x68]
movss dword [esp + 0x6c], xmm0
movss dword [esp + 0x70], xmm0
movss dword [esp + 0x74], xmm0
movss dword [esp + 0x78], xmm0
movss dword [esp + 0x80], xmm0
movss dword [esp + 0x84], xmm0
movss dword [esp + 0x88], xmm0
movss dword [esp + 0x8c], xmm0
movss dword [esp + 0x94], xmm0
movdqa xmm0, xmmword [esp + 0x48]
push eax
mov dword [esp + 0xf8], 0xffffffff
movss dword [esp + 0x6c], xmm1
movss dword [esp + 0x80], xmm1
movss dword [esp + 0x94], xmm1
movdqa xmmword [esp + 0x9c], xmm0
call fcn.00507660
add dword [esp + 0x14], 0x18
add ebx, 0xc
sub dword [esp + 0x18], 1
jne 0x4086fd
xorps xmm0, xmm0
cmp dword [esp + 0x1c], 0
jle 0x408ac2
mov ecx, dword [esp + 0x1c]
xor edi, edi
movss dword [esp + 0x50], xmm0
xor ebx, ebx
mov dword [esp + 0x18], ecx
jmp 0x408913
xorps xmm0, xmm0
mov eax, dword [esi + 0x2cc]
movss xmm5, dword [eax + ebx]
movss xmm6, dword [eax + ebx + 4]
movss xmm7, dword [eax + ebx + 8]
movss xmm4, dword [0x565314]
mov edx, dword [esi + 0x28c]
movss xmm1, dword [edi + edx + 0xc]
addss xmm1, dword [edi + edx]
movss xmm2, dword [edi + edx + 0x10]
addss xmm2, dword [edi + edx + 4]
movss xmm3, dword [edi + edx + 0x14]
addss xmm3, dword [edi + edx + 8]
add eax, ebx
lea eax, [edi + edx]
mulss xmm1, xmm4
subss xmm1, dword [esi + 0x420]
mulss xmm2, xmm4
subss xmm2, dword [esi + 0x424]
mulss xmm3, xmm4
subss xmm3, dword [esi + 0x428]
movss dword [esp + 0x44], xmm1
movss xmm1, dword [0x5652d0]
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x48], xmm2
movss dword [esp + 0x4c], xmm3
movss dword [esp + 0xa8], xmm0
movss dword [esp + 0xac], xmm0
movss dword [esp + 0xb0], xmm0
movss dword [esp + 0xb4], xmm0
movss dword [esp + 0xbc], xmm0
movss dword [esp + 0xc0], xmm0
movss dword [esp + 0xc4], xmm0
movss dword [esp + 0xc8], xmm0
movss dword [esp + 0xd0], xmm0
movdqa xmm0, xmmword [esp + 0x44]
push 0x10
mulss xmm5, xmm4
mulss xmm6, xmm4
mulss xmm7, xmm4
push 0x80
movss dword [esp + 0x2c], xmm5
movss dword [esp + 0x30], xmm6
movss dword [esp + 0x34], xmm7
movss dword [esp + 0xac], xmm1
movss dword [esp + 0xc0], xmm1
movss dword [esp + 0xd4], xmm1
movdqa xmmword [esp + 0xdc], xmm0
call fcn.005475c0
add esp, 8
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x40], eax
je 0x408a73
mov dword [esp + 0xf0], 2
test eax, eax
je 0x408a90
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.00506de0
jmp 0x408a92
mov dword [esp + 0xf0], 3
test eax, eax
je 0x408a90
lea edx, [esp + 0x24]
push edx
mov ecx, eax
call fcn.00506be0
jmp 0x408a92
xor eax, eax
mov ecx, dword [esi + 0x41c]
push eax
lea eax, [esp + 0xa8]
push eax
mov dword [esp + 0xf8], 0xffffffff
call fcn.00507660
add ebx, 0xc
add edi, 0x18
sub dword [esp + 0x18], 1
jne 0x408910
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8