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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x138
mov eax, dword [0x1005f010]
xor eax, esp
mov dword [esp + 0x134], eax
movss xmm0, dword [0x102f011c]
push esi
push edi
mov edi, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], edi
test dword [ecx + 0x24], 0x20000
je 0x100419f1
mov dword [esp + 0x4c], 0x24326604
lea ecx, [edi + 0x29c]
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], 8
mov eax, dword [edi + 0x2b4]
shr eax, 1
and eax, 1
fld dword [0x100540e0]
movss dword [0x10111d58], xmm0
lea eax, [eax + eax*2]
lea esi, [eax*8 + 0x243fb894]
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0x2b4]
shr eax, 1
and eax, 1
mov dword [esp + 0x14], ecx
lea eax, [eax + eax*2]
lea edx, [eax*8 + 0x243fb8a0]
mov dword [esp + 0x18], edx
lea eax, [edi + 0xe0]
mov dword [esp + 0x20], eax
fld dword [eax]
fstp dword [esp + 0xc]
fld dword [eax + 4]
movss xmm1, dword [esp + 0xc]
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, xmm0
mov eax, dword [0x1010e874]
mulss xmm1, xmm1
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push edx
push esi
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
movss dword [esp + 0x14], xmm0
fld dword [esp + 0x14]
fpatan
fstp dword [esp + 0x14]
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x100540f8]
mov dword [esp + 0x14], 0
minss xmm0, dword [0x10054120]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [edi + 0xf60]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0xd0]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x12c]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [ecx]
movss dword [esp + 0x12c], xmm0
movss xmm0, dword [ecx + 4]
movss dword [esp + 0x130], xmm0
movss xmm0, dword [ecx + 8]
subss xmm0, dword [0x100541a0]
push eax
push ecx
mov eax, 0x24012bf0
lea ecx, [esp + 0xa4]
movss dword [esp + 0x13c], xmm0
call eax
push dword [esp + 0x48]
mov eax, 0x200a9ac0
mov ecx, 0x20368e60
push dword [esp + 0x48]
push 0x201400b
push dword [esp + 0x44]
call eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x58]
lea eax, [esp + 0x2c]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x130]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x70], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x94]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0xc8]
mov dword [esp + 0x90], eax
call fcn.10041b90
cmp al, 1
jne 0x1004195d
nop
movss xmm1, dword [esp + 0xc]
movss xmm0, dword [0x10054120]
comiss xmm0, xmm1
jb 0x1004195d
mov eax, 0x5a
lea ecx, [esp + 0x58]
cdq
idiv dword [0x1010e870]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movss dword [esp + 0xc], xmm0
call fcn.10041b90
cmp al, 1
je 0x10041920
mov eax, dword [0x10111a78]
lea edx, [esp + 0x130]
mov ecx, dword [0x243bea74]
push ecx
movss xmm0, dword [eax + 0x10]
mov eax, dword [ecx]
addss xmm0, xmm0
mov eax, dword [eax + 4]
movss dword [esp], xmm0
push 0x40
push 0
push 0
push 0xff
push 0x102ff440
push dword [esp + 0x30]
push dword [esp + 0x38]
push edx
call eax
movss xmm0, dword [0x102ff3ec]
sub esp, 8
subss xmm0, dword [esp + 0x10]
mov dword [esp + 4], 0x43b40000
subss xmm0, dword [esp + 0x14]
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_remainderf]
mov eax, dword [esp + 0x18]
add esp, 8
fstp dword [0x102ff3ec]
movss xmm0, dword [0x102ff3ec]
mov dword [eax + 0x1c], 0x43c80000
movss dword [0x102f011c], xmm0
jmp 0x10041b68
subss xmm0, dword [0x10111d58]
sub esp, 8
mov dword [esp + 4], 0x43b40000
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_remainderf]
mov eax, dword [esp + 0x30]
add esp, 8
fstp dword [esp + 8]
movss xmm4, dword [esp + 8]
fld dword [0x100540e0]
movaps xmm2, xmm4
movss xmm0, dword [eax + 0xe4]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [eax + 0xe0]
movss dword [esp + 0x24], xmm0
fld dword [esp + 0x24]
fst dword [esp + 8]
movss xmm1, dword [esp + 8]
fld dword [esp + 0x20]
fst dword [esp + 8]
movss xmm0, dword [esp + 8]
mulss xmm0, xmm0
mulss xmm1, xmm1
andps xmm2, xmmword [0x100543f0]
movss xmm3, dword [0x102f011c]
addss xmm1, xmm0
movss dword [0x10111d58], xmm3
xorps xmm0, xmm0
sqrtss xmm0, xmm1
movss xmm1, dword [0x100540f8]
movss dword [esp + 8], xmm0
fld dword [esp + 8]
fxch st(1)
fxch st(3)
fxch st(1)
fpatan
fstp dword [esp + 8]
movss xmm0, dword [esp + 8]
mulss xmm0, xmm1
comiss xmm0, xmm2
jbe 0x10041b2d
fpatan
sub esp, 8
mov dword [esp + 4], 0x43b40000
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
mulss xmm0, xmm1
subss xmm3, xmm0
movss dword [esp], xmm3
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_remainderf]
add esp, 4
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdsign]
add esp, 4
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x10041b0e
mov dword [eax + 0x1c], 0xc3c80000
jmp 0x10041b15
mov dword [eax + 0x1c], 0x43c80000
movss xmm0, dword [0x102f011c]
subss xmm0, dword [esp + 0x14]
movss dword [0x102f011c], xmm0
jmp 0x10041b58
push ecx
fstp st(1)
movss dword [esp], xmm4
fstp st(0)
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdsign]
add esp, 4
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x10041b51
mov dword [eax + 0x1c], 0xc3c80000
jmp 0x10041b58
mov dword [eax + 0x1c], 0x43c80000
movss xmm0, dword [0x102f011c]
movss dword [0x102ff3ec], xmm0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
xor ecx, esp
mov dword [eax + 0x18], 0
call fcn.1004305e
mov esp, ebp
pop ebp
ret