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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x138
mov eax, dword [0x1005c040]
xor eax, esp
mov dword [esp + 0x134], eax
movss xmm0, dword [0x11da6424]
push esi
push edi
mov edi, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], edi
test dword [ecx + 0x24], 0x20000
je 0x1002faf5
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 [0x100582b4]
movss dword [0x1008421c], xmm0
mov dword [esp + 0x2c], 8
lea eax, [eax + eax*2]
lea esi, [eax*8 + 0x243fb894]
mov dword [esp + 0x24], esi
mov eax, dword [edi + 0x2b4]
shr eax, 1
and eax, 1
mov dword [esp + 0x20], ecx
lea eax, [eax + eax*2]
lea edx, [eax*8 + 0x243fb8a0]
mov dword [esp + 0x14], edx
lea eax, [edi + 0xe0]
mov dword [esp + 0x18], eax
fld dword [eax]
fstp dword [esp + 0xc]
fld dword [eax + 4]
lea eax, [esp + 0x20]
movss xmm1, dword [esp + 0xc]
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
mulss xmm0, xmm0
push edx
mulss xmm1, xmm1
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 [0x100582cc]
mov dword [esp + 0x14], 0
minss xmm0, dword [0x100582f0]
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 + 0x2c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x1c]
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 [0x10058350]
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 + 0x1c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x58]
lea eax, [esp + 0x130]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x20]
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 + 0x18]
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 + 0x1c]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x14]
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.1002fc90
cmp al, 1
jne 0x1002fa9e
nop
movss xmm1, dword [esp + 0xc]
movss xmm0, dword [0x100582f0]
comiss xmm0, xmm1
jb 0x1002faa4
addss xmm1, dword [0x10058298]
lea ecx, [esp + 0x58]
movss dword [esp + 0xc], xmm1
call fcn.1002fc90
cmp al, 1
je 0x1002fa70
movss xmm1, dword [esp + 0xc]
movss xmm0, dword [0x11e198dc]
sub esp, 8
subss xmm0, dword [esp + 0x10]
mov dword [esp + 4], 0x43b40000
subss xmm0, xmm1
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 [0x11e198dc]
movss xmm0, dword [0x11e198dc]
mov dword [eax + 0x1c], 0x43c80000
movss dword [0x11da6424], xmm0
jmp 0x1002fc6c
subss xmm0, dword [0x1008421c]
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 [0x100582b4]
movaps xmm2, xmm4
movss xmm0, dword [eax + 0xe4]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [eax + 0xe0]
movss dword [esp + 0x1c], xmm0
fld dword [esp + 0x1c]
fst dword [esp + 8]
movss xmm1, dword [esp + 8]
fld dword [esp + 0x18]
fst dword [esp + 8]
movss xmm0, dword [esp + 8]
mulss xmm0, xmm0
mulss xmm1, xmm1
andps xmm2, xmmword [0x10058470]
movss xmm3, dword [0x11da6424]
addss xmm1, xmm0
movss dword [0x1008421c], xmm3
xorps xmm0, xmm0
sqrtss xmm0, xmm1
movss xmm1, dword [0x100582cc]
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 0x1002fc31
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 0x1002fc12
mov dword [eax + 0x1c], 0xc3c80000
jmp 0x1002fc19
mov dword [eax + 0x1c], 0x43c80000
movss xmm0, dword [0x11da6424]
subss xmm0, dword [esp + 0x14]
movss dword [0x11da6424], xmm0
jmp 0x1002fc5c
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 0x1002fc55
mov dword [eax + 0x1c], 0xc3c80000
jmp 0x1002fc5c
mov dword [eax + 0x1c], 0x43c80000
movss xmm0, dword [0x11da6424]
movss dword [0x11e198dc], 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.10031b5e
mov esp, ebp
pop ebp
ret