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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov esi, esp
mov dword [esi + 0x78], ebp
mov edx, dword [ebp + 0x14]
mov dword [esi + 0x7c], esp
mov dword [esi + 0x88], 0xffffffff
mov dword [esi + 0x84], 0x1004db90
mov eax, dword fs:[0]
mov dword [esi + 0x80], eax
lea eax, [esi + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
movss xmm3, dword [edx]
mulss xmm3, dword [eax]
movss xmm4, dword [edx + 4]
mulss xmm4, dword [eax + 4]
movss xmm2, dword [edx + 8]
mulss xmm2, dword [eax + 8]
cmp byte [0x102a26c0], 0
je 0x1004cd10
movss xmm0, dword [ebp + 0x10]
xorps xmm1, xmm1
addss xmm3, xmm1
addss xmm4, xmm3
addss xmm2, xmm4
movaps xmm3, xmm0
subss xmm3, xmm2
ucomiss xmm1, xmm3
jae 0x1004ccfa
mov dword [esi + 0x3c], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x30]
mov eax, dword [0x102a22ac]
mov ecx, dword [eax]
mov dl, 1
mov dword [esi + 0x38], edx
test bl, 4
movss dword [esi + 0x48], xmm2
movss dword [esi + 0x40], xmm3
jne 0x1004c8b8
mov edx, dword [ecx]
mov edi, dword [eax + 0x28]
test byte [edi + edx], 2
jne 0x1004c8b8
mov dword [esi + 0x38], 0
test ebx, 0x20000
jne 0x1004cbff
mov edx, dword [ecx]
mov dword [esi + 0x88], 0xffffffff
mov dword [esi + 0x44], 0
movss xmm1, dword [0x10149600]
maxss xmm1, xmm0
movss dword [esi + 0x4c], xmm1
mov ecx, dword [0x102a2384]
mov eax, dword [eax + 0x178]
mov eax, dword [eax + edx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
mov dword [esi + 0x88], 0xffffffff
mov dword [esp], eax
call edx
sub esp, 4
test eax, eax
je 0x1004cafc
mov edi, eax
mov ecx, dword [0x102a26bc]
mov eax, dword [ecx]
call dword [eax + 0x34]
test eax, eax
je 0x1004cafc
mov eax, dword [0x102a22ac]
mov ecx, dword [eax + 0x16c]
cmp dword [ecx + edi], 0
movss xmm4, dword [esi + 0x40]
movss xmm5, dword [esi + 0x4c]
jle 0x1004cb1a
mov eax, dword [eax + 0x108]
movzx eax, word [eax + edi]
mov dword [esi + 0x10], 0x7e7ee38c
mov ecx, dword [esi + 0x10]
bswap ecx
mov dword [esi + 0x10], ecx
add dword [esi + 0x10], 0x731c81ae
mov ecx, dword [esi + 0x10]
rol ecx, 0x1e
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x10]
cmp ecx, eax
je 0x1004ca38
mov dword [esi + 0x10], 0x93087a60
mov ecx, dword [esi + 0x10]
bswap ecx
mov dword [esi + 0x10], ecx
add dword [esi + 0x10], 0xa905f76d
mov ecx, dword [esi + 0x10]
rol ecx, 0xa
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x10]
cmp ecx, eax
je 0x1004ca38
mov dword [esi + 0x10], 0x61801ad2
mov ecx, dword [esi + 0x10]
bswap ecx
mov dword [esi + 0x10], ecx
add dword [esi + 0x10], 0x2de57fc3
mov ecx, dword [esi + 0x10]
rol ecx, 0x1e
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x10]
cmp ecx, eax
je 0x1004ca38
mov dword [esi + 0x10], 0xc19a7da0
mov ecx, dword [esi + 0x10]
bswap ecx
mov dword [esi + 0x10], ecx
add dword [esi + 0x10], 0x5fa2653f
mov ecx, dword [esi + 0x10]
rol ecx, 0xe
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x10]
cmp ecx, eax
je 0x1004ca38
mov dword [esi + 0x10], 0x8581c880
mov ecx, dword [esi + 0x10]
bswap ecx
mov dword [esi + 0x10], ecx
add dword [esi + 0x10], 0x806f7e7b
mov ecx, dword [esi + 0x10]
rol ecx, 0xd
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x10]
cmp ecx, eax
je 0x1004ca38
mov dword [esi + 0x10], 0xfdeeb41a
mov ecx, dword [esi + 0x10]
bswap ecx
mov dword [esi + 0x10], ecx
add dword [esi + 0x10], 0xf94b1103
mov ecx, dword [esi + 0x10]
rol ecx, 9
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x10]
cmp ecx, eax
jne 0x1004cb1a
mov ebx, dword [esi + 0x3c]
movss xmm0, dword [ebx + 4]
mov dword [esi + 0x10], 0xd95c97a
mov eax, dword [esi + 0x10]
bswap eax
mov dword [esi + 0x10], eax
add dword [esi + 0x10], 0x99366af8
mov eax, dword [esi + 0x10]
rol eax, 0xa
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x10], 0x7e8544da
mov ecx, dword [esi + 0x10]
bswap ecx
mov dword [esi + 0x10], ecx
add dword [esi + 0x10], 0xa5bb7bba
mov ecx, dword [esi + 0x10]
rol ecx, 5
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x10], 0x3a99c99e
mov edx, dword [esi + 0x10]
bswap edx
mov dword [esi + 0x10], edx
add dword [esi + 0x10], 0x99366af8
mov edx, dword [esi + 0x10]
rol edx, 0xa
mov dword [esi + 0x10], edx
mov edx, dword [esi + 0x10]
mov dword [esi + 0x10], 0x7e8544da
mov edi, dword [esi + 0x10]
bswap edi
mov dword [esi + 0x10], edi
add dword [esi + 0x10], 0xa5bb7bba
mov edi, dword [esi + 0x10]
rol edi, 5
mov dword [esi + 0x10], edi
movd xmm1, eax
movd xmm2, edx
movd xmm3, ecx
mov eax, dword [esi + 0x10]
punpckldq xmm1, xmm2
cvtdq2ps xmm1, xmm1
movd xmm2, eax
punpckldq xmm3, xmm2
cvtdq2ps xmm2, xmm3
divps xmm1, xmm2
mulss xmm0, xmm1
shufps xmm1, xmm1, 0x55
ucomiss xmm1, xmm0
seta al
mov edi, dword [ebp + 0x14]
jmp 0x1004cb22
xor eax, eax
movss xmm5, dword [esi + 0x4c]
movaps xmm1, xmm5
mov edi, dword [ebp + 0x14]
movss xmm4, dword [esi + 0x40]
mov ebx, dword [esi + 0x44]
mov ecx, dword [esi + 0x38]
test cl, cl
jne 0x1004cb5f
jmp 0x1004cb73
xor eax, eax
mov edi, dword [ebp + 0x14]
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
movss xmm1, dword [ebx + 4]
divss xmm1, dword [0x10149600]
minss xmm1, dword [0x10147700]
mulss xmm1, xmm5
test al, al
mov ebx, dword [esi + 0x44]
je 0x1004cb48
movaps xmm5, xmm1
movaps xmm0, xmm5
test bl, bl
je 0x1004cbe4
test cl, cl
je 0x1004cbef
test cl, cl
je 0x1004cb73
movss xmm0, dword [0x10148fd0]
test al, al
jne 0x1004cb6f
mulss xmm5, xmm0
mulss xmm1, xmm0
movss xmm0, dword [ebp + 0x18]
test bl, bl
je 0x1004cc11
xorps xmm2, xmm2
maxss xmm2, dword [esi + 0x48]
movss xmm3, dword [0x10148fd4]
test al, al
jne 0x1004cb98
mulss xmm5, xmm3
mulss xmm1, xmm3
movss xmm3, dword [0x10149620]
addss xmm3, xmm1
ucomiss xmm3, xmm2
jbe 0x1004cc11
unpcklps xmm2, xmm1
shufps xmm3, xmm3, 0
subps xmm2, xmm3
xorps xmm3, xmm3
maxps xmm3, xmm2
movaps xmm1, xmm3
shufps xmm1, xmm3, 0x55
divss xmm3, xmm1
movss xmm1, dword [0x10147700]
movaps xmm2, xmm1
subss xmm2, xmm3
xorps xmm3, xmm3
ucomiss xmm2, xmm3
jae 0x1004cc09
xorps xmm0, xmm0
jmp 0x1004cc11
movaps xmm0, xmm1
test cl, cl
jne 0x1004cb5b
movaps xmm5, xmm0
test cl, cl
jne 0x1004cb5f
jmp 0x1004cb73
mov cl, 1
mov dword [esi + 0x44], ecx
jmp 0x1004c8cb
minss xmm1, xmm2
mulss xmm0, xmm1
mov eax, dword [0x102a22bc]
bswap eax
mov edx, dword [0x102a22c0]
add edx, eax
mov ecx, dword [0x102a22c4]
ror edx, cl
mulss xmm0, dword [edx + 0x20]
mulss xmm0, xmm5
mov eax, dword [0x102a22ac]
mov ecx, dword [eax]
mov eax, dword [eax + 0x1cc]
mov ecx, dword [ecx]
mulss xmm0, dword [eax + ecx]
minss xmm0, xmm4
mov eax, dword [ebp + 0xc]
movss xmm1, dword [eax + 8]
mulss xmm1, xmm0
movsd xmm2, qword [eax]
shufps xmm0, xmm0, 0
mulps xmm0, xmm2
movsd xmm2, qword [edi]
addps xmm2, xmm0
movlps qword [edi], xmm2
addss xmm1, dword [edi + 8]
movss dword [edi + 8], xmm1
movaps xmm0, xmm2
mulss xmm0, xmm2
xorps xmm3, xmm3
addss xmm0, xmm3
shufps xmm2, xmm2, 0x55
mulss xmm2, xmm2
addss xmm2, xmm0
mulss xmm1, xmm1
addss xmm1, xmm2
xorps xmm0, xmm0
cvtss2sd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jb 0x1004ccac
sqrtsd xmm0, xmm0
jmp 0x1004ccc1
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
xorps xmm3, xmm3
fstp qword [esi + 0x70]
movsd xmm0, qword [esi + 0x70]
mov eax, dword [esi + 0x3c]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
ucomiss xmm1, xmm3
jne 0x1004ccd2
jnp 0x1004ccfa
movss xmm0, dword [eax + 4]
ucomiss xmm1, xmm0
jbe 0x1004ccfa
divss xmm0, xmm1
movsd xmm1, qword [edi]
movaps xmm2, xmm0
unpcklps xmm2, xmm0
mulps xmm2, xmm1
movlps qword [edi], xmm2
mulss xmm0, dword [edi + 8]
movss dword [edi + 8], xmm0
mov eax, dword [esi + 0x80]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
movss dword [esi + 0x40], xmm4
movss dword [esi + 0x38], xmm3
movss dword [esi + 0x48], xmm2
mov dword [esi + 0x3c], ecx
mov byte [0x102a26c0], 1
mov ecx, dword [0x102a23ac]
mov eax, 0x77427784
mov edx, 0xe73784b1
mov dword [esi + 0x54], edx
mov dword [esi + 0x50], eax
mov eax, 0x967b18d5
mov edx, 0x8a964216
mov dword [esi + 0x5c], edx
mov dword [esi + 0x58], eax
mov eax, 0xc43aa064
mov edx, 0x887ef13d
mov dword [esi + 0x64], edx
mov dword [esi + 0x60], eax
mov eax, 0xd4eb059d
mov edx, 0x9018eb70
mov dword [esi + 0x6c], edx
mov dword [esi + 0x68], eax
mov eax, 0x161d01f7
mov edx, 0x8b52e7d2
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], eax
mov eax, 0xe21a6ab0
mov edx, 0xf9e31d73
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], eax
mov eax, 0xa14dff01
mov edx, 0xe611815c
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], eax
mov eax, 0xb19b76c2
mov edx, 0x90188f15
mov dword [esi + 0x2c], edx
mov dword [esi + 0x28], eax
lea eax, [esi + 0x10]
xor edx, edx
movaps xmm0, xmmword [esi + 0x50]
xorps xmm0, xmmword [eax]
movaps xmmword [esi + 0x50], xmm0
movaps xmm0, xmmword [esi + 0x60]
xorps xmm0, xmmword [eax + 0x10]
movaps xmmword [esi + 0x60], xmm0
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
mov dword [esi + 0x88], 0
lea edx, [esi + 0x50]
mov dword [esp], edx
call eax
sub esp, 4
mov dword [0x102a26bc], eax
mov ecx, dword [esi + 0x3c]
movss xmm2, dword [esi + 0x48]
movss xmm3, dword [esi + 0x38]
movss xmm4, dword [esi + 0x40]
jmp 0x1004c852