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

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
push edi
push 0
push ecx
push esi
call dword [eax + 0x378]
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
je 0x100052f1
mov eax, dword [esp + 0x44]
mov edx, dword [esi]
push ebp
push 0
push eax
push esi
call dword [edx + 0x378]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0xc], ebp
je 0x100052f0
mov edx, dword [esp + 0x6c]
mov ecx, dword [esi]
push ebx
push 0
push edx
push esi
call dword [ecx + 0x378]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x100052ef
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
movss xmm7, dword [esp + 0x54]
movss xmm5, dword [esp + 0x7c]
movss xmm2, dword [esp + 0x80]
movss xmm3, dword [esp + 0x58]
movss xmm1, dword [esp + 0x5c]
mov ecx, dword [esp + 0x3c]
subss xmm3, dword [esp + 0x50]
subss xmm5, dword [esp + 0x74]
subss xmm2, dword [esp + 0x78]
movss xmm6, dword [0x1000c044]
cvtsi2ss xmm4, eax
cvtsi2ss xmm0, edx
divss xmm3, xmm0
divss xmm5, xmm0
divss xmm2, xmm4
subss xmm1, xmm7
divss xmm1, xmm4
movaps xmm0, xmm1
movaps xmm4, xmm2
add eax, ecx
cmp ecx, eax
mulss xmm0, xmm6
mulss xmm4, xmm6
addss xmm4, dword [esp + 0x78]
addss xmm0, xmm7
movss dword [esp + 0x18], xmm3
movss dword [esp + 0x1c], xmm1
movss dword [esp + 0x7c], xmm5
movss dword [esp + 0x80], xmm2
movss dword [esp + 0x2c], xmm0
movss dword [esp + 0x40], xmm4
jge 0x100052bc
mov ebp, dword [esp + 0x38]
add edx, ebp
mulss xmm5, xmm6
addss xmm5, dword [esp + 0x74]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x48]
lea ebx, [edx*4]
mov dword [esp + 0x48], ebx
mov ebx, ecx
imul ebx, edx
add ebx, ebp
movaps xmm7, xmm3
mulss xmm7, xmm6
addss xmm7, dword [esp + 0x50]
movss xmm6, dword [0x1000c040]
lea edx, [edi + ebx*4]
mov ebx, dword [esp + 0x84]
sub eax, ecx
movss dword [esp + 0x20], xmm7
movss dword [esp + 0x3c], xmm5
mov dword [esp + 0x58], edx
mov dword [esp + 0x44], eax
jmp 0x10004fe0
movss xmm0, dword [esp + 0x2c]
movss xmm4, dword [esp + 0x40]
mov edi, edi
mov eax, dword [esp + 0x74]
cmp ebp, eax
movaps xmm3, xmm5
movss dword [esp + 0x78], xmm7
movss dword [esp + 0x50], xmm3
jge 0x10005283
mov edi, edx
mov edx, eax
sub edx, ebp
jmp 0x10005009
movss xmm3, dword [esp + 0x50]
movss xmm2, dword [esp + 0x78]
xorps xmm1, xmm1
comiss xmm2, xmm1
jb 0x10005054
comiss xmm0, xmm1
jb 0x10005054
mov ebp, dword [esp + 0x60]
cvtsi2ss xmm5, ebp
mulss xmm5, xmm2
cvtsi2ss xmm2, dword [esp + 0x64]
cvttss2si ecx, xmm5
cmp ecx, ebp
mulss xmm2, xmm0
cvttss2si eax, xmm2
jge 0x10005054
cmp eax, dword [esp + 0x64]
jge 0x10005054
imul eax, dword [esp + 0x68]
add eax, ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + eax*4]
jmp 0x10005056
xor eax, eax
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
cvtsi2ss xmm5, ecx
mov ecx, eax
sar ecx, 8
and ecx, 0xff
cvtsi2ss xmm7, ecx
mov ecx, eax
and ecx, 0xff
sar eax, 0x18
cvtsi2ss xmm0, ecx
mulss xmm0, xmm6
and eax, 0xff
comiss xmm3, xmm1
movss dword [esp + 0x5c], xmm0
cvtsi2ss xmm0, eax
mulss xmm0, xmm6
mulss xmm5, xmm6
mulss xmm7, xmm6
movss dword [esp + 0x54], xmm0
jb 0x100050ec
comiss xmm4, xmm1
jb 0x100050ec
mov ebp, dword [esp + 0x88]
cvtsi2ss xmm0, ebx
mulss xmm0, xmm3
cvttss2si ecx, xmm0
cmp ecx, ebx
cvtsi2ss xmm0, ebp
mulss xmm0, xmm4
cvttss2si eax, xmm0
jge 0x100050ec
cmp eax, ebp
jge 0x100050ec
imul eax, dword [esp + 0x8c]
add eax, ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
jmp 0x100050ee
xor eax, eax
movss xmm4, dword [esp + 0x6c]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
cvtsi2ss xmm0, ecx
mov ecx, eax
sar ecx, 8
and ecx, 0xff
cvtsi2ss xmm1, ecx
mov ecx, eax
sar eax, 0x18
mulss xmm0, xmm6
mulss xmm0, xmm4
mulss xmm1, xmm6
mulss xmm1, xmm4
and ecx, 0xff
and eax, 0xff
cvtsi2ss xmm2, ecx
mulss xmm2, xmm6
mulss xmm2, xmm4
cvtsi2ss xmm3, eax
mulss xmm3, xmm6
mulss xmm3, xmm4
movaps xmm4, xmm0
mulss xmm0, xmm5
addss xmm4, xmm5
movaps xmm5, xmm1
subss xmm4, xmm0
movss xmm0, dword [esp + 0x5c]
mulss xmm1, xmm7
addss xmm5, xmm7
subss xmm5, xmm1
movaps xmm1, xmm2
mulss xmm2, xmm0
addss xmm1, xmm0
subss xmm1, xmm2
movss xmm2, dword [esp + 0x54]
movaps xmm0, xmm3
mulss xmm3, xmm2
addss xmm0, xmm2
xorps xmm2, xmm2
comiss xmm2, xmm4
subss xmm0, xmm3
movss xmm3, dword [0x1000c03c]
jbe 0x100051a7
movaps xmm4, xmm2
jmp 0x100051af
comiss xmm4, xmm3
jbe 0x100051af
movaps xmm4, xmm3
comiss xmm2, xmm5
jbe 0x100051b9
movaps xmm5, xmm2
jmp 0x100051c1
comiss xmm5, xmm3
jbe 0x100051c1
movaps xmm5, xmm3
comiss xmm2, xmm1
jbe 0x100051cb
movaps xmm1, xmm2
jmp 0x100051d3
comiss xmm1, xmm3
jbe 0x100051d3
movaps xmm1, xmm3
comiss xmm2, xmm0
jbe 0x100051dd
movaps xmm0, xmm2
jmp 0x100051e5
comiss xmm0, xmm3
jbe 0x100051e5
movaps xmm0, xmm3
movss xmm2, dword [0x1000c038]
mulss xmm0, xmm2
addss xmm0, dword [0x1000c044]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x78]
addss xmm0, dword [esp + 0x18]
shl eax, 8
mulss xmm4, xmm2
cvttss2si ecx, xmm4
movss xmm4, dword [esp + 0x40]
or eax, ecx
shl eax, 8
mulss xmm5, xmm2
cvttss2si ecx, xmm5
or eax, ecx
shl eax, 8
mulss xmm1, xmm2
cvttss2si ecx, xmm1
or eax, ecx
movss dword [esp + 0x78], xmm0
movss xmm0, dword [esp + 0x50]
addss xmm0, dword [esp + 0x7c]
mov dword [edi], eax
add edi, 4
dec edx
movss dword [esp + 0x50], xmm0
movss xmm0, dword [esp + 0x2c]
jne 0x10005003
movss xmm1, dword [esp + 0x1c]
movss xmm2, dword [esp + 0x80]
movss xmm5, dword [esp + 0x3c]
movss xmm7, dword [esp + 0x20]
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
add edx, ecx
dec eax
addss xmm0, xmm1
addss xmm4, xmm2
movss dword [esp + 0x2c], xmm0
movss dword [esp + 0x40], xmm4
mov dword [esp + 0x58], edx
mov dword [esp + 0x44], eax
jne 0x10004fd2
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
mov edx, dword [esi]
push 2
push edi
push eax
push esi
call dword [edx + 0x37c]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esi]
push 2
push ebp
push edx
push esi
call dword [ecx + 0x37c]
mov ecx, dword [esp + 0x70]
mov eax, dword [esi]
push 2
push ebx
push ecx
push esi
call dword [eax + 0x37c]
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x18
ret 0x64