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

Disassembly:
sub esp, 0xc4
mov eax, dword [0x10065010]
xor eax, esp
mov dword [esp + 0xbc], eax
movss xmm0, dword [0x10295138]
push ebx
push ebp
push esi
push edi
mov edi, ecx
movss dword [0x10285f24], xmm0
mov eax, dword [edi]
mov ecx, dword [edi + 0xc]
mov ebp, dword [edi + 4]
mov dword [esp + 0x20], ecx
mov ebx, dword [eax]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
test ebx, ebx
je 0x10041b67
lea eax, [esp + 0x78]
movsd xmm5, qword [0x10059708]
mov dword [esp + 0x2c], eax
mov esi, 0x20374c20
lea eax, [esp + 0x7c]
fld dword [0x10059770]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x84]
movss xmm3, dword [0x1005978c]
movss xmm2, dword [0x100597b0]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x90]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x94]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x98]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x60], eax
lea eax, [esp + 0xa4]
mov dword [esp + 0x64], eax
movsd qword [esp + 0x70], xmm5
mov eax, dword [edi + 0x14]
dec ebx
mov eax, dword [eax]
mov dword [eax + 0x18], 0
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov dword [eax + 0x1c], 0x43c80000
mov eax, dword [edi + 0x18]
mov eax, dword [eax]
fld dword [eax]
fstp dword [esp + 0x10]
movss xmm1, dword [esp + 0x10]
fld dword [eax + 4]
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm1, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm1
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
fpatan
fstp dword [esp + 0x10]
movss xmm1, dword [esp + 0x10]
mulss xmm1, xmm3
comiss xmm2, xmm1
ja 0x100416d1
movaps xmm1, xmm2
movss xmm0, dword [0x10285f24]
sub esp, 8
mov eax, dword [edi + 0x1c]
subss xmm0, xmm1
mov dword [esp + 4], 0x43b40000
subss xmm0, dword [eax]
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_remainderf]
movss xmm7, dword [0x100595f0]
add esp, 8
fstp dword [0x10285f24]
movss xmm0, dword [0x10285f24]
mulss xmm0, xmm7
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
fsincos
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [0x10285f20]
mulss xmm0, xmm7
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
fsincos
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [0x10285f28]
mulss xmm0, xmm7
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
fsincos
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
fstp dword [edx]
fstp dword [eax]
movss xmm5, dword [esp + 0x48]
movss xmm2, dword [esp + 0x44]
movaps xmm1, xmm5
mulss xmm1, xmm5
movaps xmm0, xmm2
mov eax, dword [edi + 0x14]
mulss xmm0, xmm2
movss xmm6, dword [esp + 0x4c]
mov ecx, dword [eax]
addss xmm1, xmm0
movss xmm4, dword [ecx + 0x1c]
movaps xmm3, xmm4
addss xmm1, dword [0x100595cc]
cvtps2pd xmm0, xmm1
movsd xmm1, qword [esp + 0x70]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movaps xmm1, xmm6
mulss xmm5, xmm0
mulss xmm2, xmm0
movss xmm0, dword [esp + 0x14]
mulss xmm0, xmm0
mulss xmm1, xmm6
movss dword [esp + 0x44], xmm2
movss dword [esp + 0x48], xmm5
addss xmm1, xmm0
addss xmm1, dword [0x100595cc]
cvtps2pd xmm0, xmm1
movsd xmm1, qword [esp + 0x70]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
movaps xmm0, xmm1
mulss xmm6, xmm1
mulss xmm0, dword [esp + 0x14]
movss xmm1, dword [ecx + 0x18]
mulss xmm4, xmm6
mulss xmm3, xmm0
movss dword [esp + 0x14], xmm0
movaps xmm0, xmm1
mulss xmm0, xmm2
mulss xmm1, xmm5
addss xmm3, xmm0
movss dword [esp + 0x4c], xmm6
movss xmm0, dword [ecx + 0x10]
mulss xmm0, xmm7
addss xmm4, xmm1
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
fsincos
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [ecx + 0xc]
mulss xmm0, xmm7
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
fsincos
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
fstp dword [edx]
fstp dword [eax]
movss xmm0, dword [ecx + 0x14]
mulss xmm0, xmm7
movss dword [esp + 0x10], xmm0
fld dword [esp + 0x10]
fsincos
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
fstp dword [edx]
fstp dword [eax]
movss xmm7, dword [esp + 0x18]
movss xmm6, dword [esp + 0x28]
movaps xmm1, xmm7
mulss xmm1, xmm7
movaps xmm0, xmm6
push 0x24394eec
mulss xmm0, xmm6
movss xmm2, dword [0x100596a8]
addss xmm1, xmm0
addss xmm1, dword [0x100595cc]
cvtps2pd xmm0, xmm1
movsd xmm1, qword [esp + 0x74]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
movaps xmm0, xmm1
mulss xmm1, xmm7
movss xmm7, dword [esp + 0x70]
mulss xmm0, xmm6
movss xmm6, dword [esp + 0x6c]
movss dword [esp + 0x1c], xmm1
movaps xmm1, xmm7
movss dword [esp + 0x2c], xmm0
movaps xmm0, xmm6
mulss xmm1, xmm7
mulss xmm0, xmm6
addss xmm1, xmm0
addss xmm1, dword [0x100595cc]
cvtps2pd xmm0, xmm1
movsd xmm1, qword [esp + 0x74]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm1, xmm1
movaps xmm5, xmm1
mulss xmm1, xmm7
mulss xmm5, xmm6
movaps xmm6, xmm1
mulss xmm1, dword [esp + 0x2c]
movaps xmm0, xmm5
movss dword [esp + 0x6c], xmm5
mulss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x70], xmm6
subss xmm1, xmm0
movaps xmm0, xmm4
mulss xmm4, dword [esp + 0x2c]
mulss xmm0, xmm5
divss xmm2, xmm1
movaps xmm1, xmm3
mulss xmm3, dword [esp + 0x1c]
mulss xmm1, xmm6
subss xmm4, xmm3
subss xmm1, xmm0
mulss xmm4, xmm2
mulss xmm1, xmm2
cvttss2si eax, xmm1
cwde
movd xmm0, eax
mov eax, dword [edi + 0x14]
cvtdq2ps xmm0, xmm0
mov eax, dword [eax]
movss dword [eax + 0x18], xmm0
cvttss2si eax, xmm4
cwde
movd xmm0, eax
mov eax, dword [edi + 0x14]
cvtdq2ps xmm0, xmm0
mov eax, dword [eax]
movss dword [eax + 0x1c], xmm0
mov eax, dword [edi + 0x14]
mov ecx, dword [esi]
push dword [eax]
mov eax, dword [edi + 0xc]
push dword [eax]
mov eax, 0x2412bc30
call eax
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
or dword [eax + 0x130], 0x1000
mov esi, dword [edi + 0x20]
mov ecx, dword [esi]
mov eax, dword [ecx]
movss xmm0, dword [eax]
movss dword [esp + 0xa8], xmm0
mov eax, dword [ecx]
movss xmm0, dword [eax + 4]
movss dword [esp + 0xac], xmm0
mov eax, dword [ecx]
movss xmm0, dword [eax + 8]
subss xmm0, dword [0x10059820]
mov eax, dword [esi + 0xc]
movss dword [esp + 0xb0], xmm0
push dword [eax]
mov eax, dword [esi + 8]
push dword [eax]
lea eax, [esp + 0xb0]
push eax
push dword [ecx]
mov ecx, dword [esi + 4]
mov eax, 0x24012bf0
call eax
push dword [esi + 0x14]
mov ecx, 0x20368e60
mov eax, 0x200a9ac0
push dword [esi + 0x10]
push 0x201400b
push dword [esi + 4]
call eax
mov eax, dword [esi + 0x14]
mov ecx, dword [edi + 0x24]
mov eax, dword [eax + 0x3c]
cmp eax, dword [ecx]
jne 0x10041bca
mov ecx, dword [edi + 0x28]
movss xmm1, dword [0x100596cc]
mov eax, dword [ecx]
movss xmm0, dword [eax]
mulss xmm0, xmm1
movss dword [esp + 0xc0], xmm0
mov eax, dword [ecx]
mov ecx, dword [edi + 0x2c]
movss xmm0, dword [eax + 4]
mulss xmm0, xmm1
mov dword [esp + 0xc8], 0
movss dword [esp + 0xc4], xmm0
mov eax, dword [ecx]
movss xmm0, dword [eax]
mulss xmm0, xmm1
movss dword [esp + 0xb4], xmm0
mov eax, dword [ecx]
movss xmm0, dword [eax + 4]
mulss xmm0, xmm1
movss dword [esp + 0xb8], xmm0
mov eax, dword [ecx]
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [esp + 0xc4]
push ecx
movss xmm0, dword [eax + 8]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x30]
mulss xmm0, xmm1
movss dword [esp + 0xc4], xmm0
mov eax, dword [eax]
push eax
push eax
mov eax, 0x24012bf0
call eax
push dword [edi + 0x38]
mov ecx, 0x20368e60
mov eax, 0x200a9ac0
push dword [edi + 0x34]
push 0x201400b
push dword [edi + 0x30]
call eax
mov eax, dword [edi + 0x38]
movss xmm0, dword [eax + 0x2c]
ucomiss xmm0, dword [0x100596a8]
lahf
test ah, 0x44
jp 0x10041bca
movss xmm2, dword [0x100597b0]
mov esi, 0x20374c20
fld dword [0x10059770]
movss xmm3, dword [0x1005978c]
test ebx, ebx
jne 0x10041665
mov eax, dword [esp + 0x1c]
fstp st(0)
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [ebp], eax
mov eax, dword [ecx + 4]
mov dword [ebp + 4], eax
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x20]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov dword [ecx + 0xf60], eax
mov eax, dword [0x2039539c]
add eax, dword [0x203953a0]
mov ecx, dword [0x20374c20]
push eax
push dword [0x24394eec]
mov eax, 0x2412c470
push 1
push 1
call eax
xor al, al
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10042c4e
add esp, 0xc4
ret
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
mov eax, dword [ecx]
mov dword [ebp], eax
mov eax, dword [ecx + 4]
mov dword [ebp + 4], eax
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x20]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov dword [ecx + 0xf60], eax
mov eax, dword [0x2039539c]
add eax, dword [0x203953a0]
mov ecx, dword [0x20374c20]
push eax
push dword [0x24394eec]
mov eax, 0x2412c470
push 1
push 1
call eax
mov al, 1
jmp 0x10041bb1