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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 0
push ecx
push edi
call dword [eax + 0x378]
test eax, eax
mov dword [esp + 0x5c], eax
je 0x10004a2a
mov eax, dword [ebp + 0x28]
mov edx, dword [edi]
push 0
push eax
push edi
call dword [edx + 0x378]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x54], ebx
je 0x10004a2a
mov edx, dword [ebp + 0x4c]
mov ecx, dword [edi]
push 0
push edx
push edi
call dword [ecx + 0x378]
mov esi, eax
test esi, esi
mov dword [esp + 0x58], esi
je 0x10004a2a
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
movss xmm7, dword [ebp + 0x30]
movss xmm3, dword [ebp + 0x34]
movss xmm1, dword [ebp + 0x38]
movss xmm4, dword [ebp + 0x58]
movss xmm2, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x18]
subss xmm3, dword [ebp + 0x2c]
subss xmm4, dword [ebp + 0x50]
subss xmm2, dword [ebp + 0x54]
movss xmm6, dword [0x1000c044]
cvtsi2ss xmm5, eax
cvtsi2ss xmm0, edx
divss xmm3, xmm0
divss xmm4, xmm0
divss xmm2, xmm5
subss xmm1, xmm7
divss xmm1, xmm5
movaps xmm0, xmm1
movaps xmm5, xmm2
add eax, ecx
cmp ecx, eax
mulss xmm0, xmm6
mulss xmm5, xmm6
addss xmm5, dword [ebp + 0x54]
addss xmm0, xmm7
movss dword [esp + 0x64], xmm3
movss dword [esp + 0x78], xmm1
movss dword [esp + 0x68], xmm4
movss dword [esp + 0x74], xmm2
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x1c], xmm5
jge 0x100049f6
mov esi, dword [ebp + 0x14]
add edx, esi
mov dword [esp + 0x48], edx
mov edx, dword [ebp + 0x24]
lea ebx, [edx*4]
mov dword [esp + 0x7c], ebx
mov ebx, ecx
imul ebx, edx
mov edx, dword [esp + 0x5c]
add ebx, esi
lea edx, [edx + ebx*4]
mov ebx, dword [esp + 0x48]
mulss xmm3, xmm6
addss xmm3, dword [ebp + 0x2c]
mulss xmm4, xmm6
addss xmm4, dword [ebp + 0x50]
sub eax, ecx
movss dword [esp + 0x6c], xmm3
movss dword [esp + 0x70], xmm4
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
jmp 0x100045e0
movss xmm5, dword [esp + 0x1c]
movss xmm0, dword [esp + 0x18]
lea ecx, [ecx]
cmp esi, ebx
movaps xmm6, xmm3
movss dword [esp + 0x2c], xmm6
movss dword [esp + 0x30], xmm4
jge 0x100049bd
mov dword [esp + 0x44], edx
sub ebx, esi
jmp 0x10004610
movss xmm4, dword [esp + 0x30]
movss xmm6, dword [esp + 0x2c]
jmp 0x10004610
xorps xmm3, xmm3
comiss xmm6, xmm3
jb 0x10004652
comiss xmm0, xmm3
jb 0x10004652
mov edx, dword [ebp + 0x3c]
mov esi, dword [ebp + 0x40]
cvtsi2ss xmm1, edx
mulss xmm1, xmm6
cvttss2si ecx, xmm1
cmp ecx, edx
cvtsi2ss xmm1, esi
mulss xmm1, xmm0
cvttss2si eax, xmm1
jge 0x10004652
cmp eax, esi
jge 0x10004652
imul eax, dword [ebp + 0x44]
add eax, ecx
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx + eax*4]
jmp 0x10004654
xor eax, eax
movss xmm1, dword [0x1000c040]
mov edx, eax
sar edx, 0x10
and edx, 0xff
mov ecx, eax
cvtsi2ss xmm0, edx
mulss xmm0, xmm1
sar ecx, 8
movss dword [esp + 0x34], xmm0
mov edx, eax
and ecx, 0xff
sar eax, 0x18
cvtsi2ss xmm0, ecx
mulss xmm0, xmm1
and edx, 0xff
and eax, 0xff
comiss xmm4, xmm3
movss dword [esp + 0x38], xmm0
cvtsi2ss xmm0, edx
cvtsi2ss xmm2, eax
mulss xmm0, xmm1
mulss xmm2, xmm1
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0xc], xmm2
jb 0x100046f9
comiss xmm5, xmm3
jb 0x100046f9
mov edx, dword [ebp + 0x60]
mov esi, dword [ebp + 0x64]
cvtsi2ss xmm0, edx
mulss xmm0, xmm4
cvttss2si ecx, xmm0
cmp ecx, edx
cvtsi2ss xmm0, esi
mulss xmm0, xmm5
cvttss2si eax, xmm0
jge 0x100046f9
cmp eax, esi
jge 0x100046f9
imul eax, dword [ebp + 0x68]
add eax, ecx
mov ecx, dword [esp + 0x58]
mov esi, dword [ecx + eax*4]
jmp 0x100046fb
xor esi, esi
fld dword [esp + 0xc]
mov edx, esi
fmul dword [0x1000c044]
sar edx, 0x18
and edx, 0xff
cvtsi2ss xmm0, edx
fstp dword [esp + 0x20]
mulss xmm0, xmm1
mulss xmm0, dword [ebp + 0x48]
fld dword [esp + 0x34]
fsub dword [esp + 0x20]
movaps xmm1, xmm0
movss dword [esp + 0x10], xmm0
addss xmm1, xmm2
mulss xmm0, xmm2
sub esp, 8
subss xmm1, xmm0
fstp qword [esp]
movss dword [esp + 0x1c], xmm1
call dword [sym.imp.MSVCR71.dll_ceil]
fstp dword [esp + 0x2c]
fld dword [esp + 0x40]
fsub dword [esp + 0x28]
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_ceil]
fstp dword [esp + 0x30]
fld dword [esp + 0x44]
fsub dword [esp + 0x28]
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_ceil]
fld dword [esp + 0x2c]
fmul dword [esp + 0x14]
mov eax, esi
sar eax, 0x10
fsubr dword [esp + 0x3c]
add esp, 8
and eax, 0xff
mov dword [esp + 0x60], eax
fabs
fld dword [esp + 0x28]
fmul dword [esp + 0xc]
fsubr dword [esp + 0x38]
fabs
fld st(2)
fmul dword [esp + 0xc]
fsubr dword [esp + 0x3c]
fabs
fstp dword [esp + 0x40]
fld dword [0x1000c03c]
fsub dword [esp + 0x10]
fstp dword [esp + 0x20]
fild dword [esp + 0x60]
fmul dword [0x1000c040]
fmul dword [ebp + 0x48]
fld dword [esp + 0x24]
fmul dword [esp + 0x10]
fsubp st(1)
fabs
fld st(2)
fadd st(0), st(0)
mov ecx, esi
sar ecx, 8
fadd dword [0x1000c03c]
and ecx, 0xff
mov dword [esp + 0x60], ecx
and esi, 0xff
fsub dword [esp + 0xc]
fmulp st(1)
fld dword [esp + 0x20]
fmul st(3)
faddp st(1)
fld dword [esp + 0x24]
fmul dword [esp + 0x14]
fsubp st(1)
fabs
fstp dword [esp + 0x24]
fild dword [esp + 0x60]
mov dword [esp + 0x60], esi
fmul dword [0x1000c040]
fmul dword [ebp + 0x48]
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
fsubp st(1)
fabs
fld st(1)
fadd st(0), st(0)
fadd dword [0x1000c03c]
fsub dword [esp + 0xc]
fmulp st(1)
fld dword [esp + 0x20]
fmul st(2)
faddp st(1)
fld dword [esp + 0x28]
fmul dword [esp + 0x14]
fsubp st(1)
fabs
fstp st(2)
fstp st(0)
fstp dword [esp + 0x28]
fild dword [esp + 0x60]
fmul dword [0x1000c040]
fmul dword [ebp + 0x48]
fld st(1)
fmul dword [esp + 0x10]
fsubp st(1)
fabs
fld dword [esp + 0x40]
fadd st(0), st(0)
fadd dword [0x1000c03c]
fsub dword [esp + 0xc]
fmulp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x40]
movss xmm0, dword [esp + 0x14]
movss xmm4, dword [0x1000c03c]
xorps xmm5, xmm5
faddp st(1)
fxch st(1)
fmul dword [esp + 0x14]
fsubp st(1)
fabs
fstp dword [esp + 0x60]
fld dword [esp + 0x24]
fld dword [0x1000c048]
fcompi st(1)
fstp st(0)
jbe 0x100048cb
movaps xmm3, xmm5
jmp 0x100048d9
movss xmm3, dword [esp + 0x24]
comiss xmm3, xmm4
jbe 0x100048d9
movaps xmm3, xmm4
movss xmm2, dword [esp + 0x28]
comiss xmm5, xmm2
jbe 0x100048e9
movaps xmm2, xmm5
jmp 0x100048f1
comiss xmm2, xmm4
jbe 0x100048f1
movaps xmm2, xmm4
movss xmm1, dword [esp + 0x60]
comiss xmm5, xmm1
jbe 0x10004901
movaps xmm1, xmm5
jmp 0x10004909
comiss xmm1, xmm4
jbe 0x10004909
movaps xmm1, xmm4
comiss xmm5, xmm0
jbe 0x10004913
movaps xmm0, xmm5
jmp 0x1000491b
comiss xmm0, xmm4
jbe 0x1000491b
movaps xmm0, xmm4
movss xmm4, dword [0x1000c038]
movss xmm5, dword [esp + 0x1c]
mulss xmm0, xmm4
addss xmm0, dword [0x1000c044]
cvttss2si edx, xmm0
movss xmm0, dword [esp + 0x2c]
addss xmm0, dword [esp + 0x64]
shl edx, 8
mulss xmm3, xmm4
cvttss2si eax, xmm3
or edx, eax
shl edx, 8
mulss xmm2, xmm4
cvttss2si ecx, xmm2
or edx, ecx
shl edx, 8
mulss xmm1, xmm4
cvttss2si eax, xmm1
or edx, eax
mov eax, dword [esp + 0x44]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0x30]
addss xmm0, dword [esp + 0x68]
mov dword [eax], edx
add eax, 4
dec ebx
movss dword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0x18]
mov dword [esp + 0x44], eax
jne 0x100045ff
movss xmm3, dword [esp + 0x6c]
movss xmm4, dword [esp + 0x70]
movss xmm2, dword [esp + 0x74]
movss xmm1, dword [esp + 0x78]
mov ebx, dword [esp + 0x48]
mov esi, dword [ebp + 0x14]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x50]
add edx, ecx
dec eax
addss xmm0, xmm1
addss xmm5, xmm2
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x1c], xmm5
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
jne 0x100045d1
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi]
push 2
push edx
push eax
push edi
call dword [ecx + 0x37c]
mov edx, dword [ebp + 0x28]
mov ecx, dword [edi]
push 2
push ebx
push edx
push edi
call dword [ecx + 0x37c]
mov ecx, dword [ebp + 0x4c]
mov eax, dword [edi]
push 2
push esi
push ecx
push edi
call dword [eax + 0x37c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x64