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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b4dd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
push esi
push edi
mov eax, dword [0x4d8b40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0xbc]
push esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], esi
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x44299b
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x4429a2
mov eax, dword [ebx + 8]
mov dword [ebp - 4], 0
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x30], edx
movzx eax, byte [edx + 0x1c]
shr eax, 2
mov dword [ebp - 0x34], eax
dec eax
cmp eax, 0x1a
ja 0x44297c
movzx ecx, byte [edx + 0x20]
movzx edx, byte [edx + 0x1d]
mov eax, dword [ebp - 0x30]
shl edx, 8
shr ecx, 2
movzx eax, byte [eax + 0x1e]
or edx, eax
mov eax, dword [ebp - 0x30]
shl edx, 8
movzx eax, byte [eax + 0x1f]
or edx, eax
shl edx, 6
or edx, ecx
je 0x44297c
push edx
mov ecx, edi
call fcn.00442bb0
mov ecx, eax
mov dword [ebp - 0x24], ecx
cmp ecx, 0xffffffff
jne 0x442558
mov ecx, dword [edi + 0x48]
mov eax, dword [edi + 0x94]
inc ecx
mov edx, dword [edi + 0x44]
cmp ecx, eax
mov dword [ebp - 0x24], edx
cmovge ecx, eax
mov dword [edi + 0x48], ecx
imul ecx, edx, 0xe0
add ecx, dword [edi + 0x9c]
call fcn.00441ae0
mov ecx, dword [ebp - 0x24]
imul eax, ecx, 0xe0
mov dword [ebp - 0x28], eax
cmp ecx, dword [edi + 0x40]
je 0x4425da
mov ecx, dword [edi + 0x9c]
cmp dword [ecx + eax + 4], 0xffffffff
mov edx, dword [ecx + eax + 4]
mov dword [ebp - 0x38], edx
mov edx, dword [ecx + eax]
je 0x44258c
imul eax, dword [ebp - 0x38], 0xe0
mov dword [eax + ecx], edx
mov eax, dword [ebp - 0x28]
jmp 0x44258f
mov dword [edi + 0x44], edx
mov edx, dword [edi + 0x9c]
imul ecx, dword [edx + eax], 0xe0
mov eax, dword [edx + eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, dword [edi + 0x9c]
mov edx, dword [ebp - 0x28]
mov eax, dword [edi + 0x40]
mov dword [edx + ecx + 4], eax
mov eax, dword [edi + 0x9c]
mov dword [edx + eax], 0xffffffff
imul ecx, dword [edi + 0x40], 0xe0
mov eax, dword [edi + 0x9c]
mov edx, dword [ebp - 0x24]
mov dword [ecx + eax], edx
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x40], edx
mov ecx, dword [edi + 0x9c]
mov edx, dword [ebx + 0x10]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx + 0x78]
mov ecx, dword [ecx + 0x7c]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x34], ecx
mov ecx, edi
push eax
push edx
movss xmm0, dword [eax + 0x54]
push dword [ebx + 8]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [eax + 0x58]
movss dword [ebp - 0x1c], xmm0
call fcn.00449f00
mov cl, al
xorps xmm0, xmm0
mov eax, dword [ebp - 0x18]
movss xmm2, dword [eax + 0x54]
movss xmm1, dword [eax + 0x58]
ucomiss xmm2, xmm0
lahf
test ah, 0x44
jp 0x442637
ucomiss xmm1, xmm0
jmp 0x44263e
ucomiss xmm2, dword [0x49cf38]
lahf
test ah, 0x44
jnp 0x442655
ucomiss xmm1, dword [0x49cf3c]
lahf
test ah, 0x44
jnp 0x442655
mov al, 1
jmp 0x442657
xor al, al
and cl, al
mov eax, dword [ebp - 0x34]
mov byte [ebp - 0x11], cl
cmp eax, 1
je 0x44267d
cmp eax, 2
je 0x44267d
cmp eax, 3
je 0x44267d
cmp eax, 0x12
je 0x44267d
cmp eax, 0x13
je 0x44267d
cmp eax, 9
jne 0x44268a
push dword [ebp - 0x24]
mov ecx, edi
call fcn.004429f0
mov cl, byte [ebp - 0x11]
test cl, cl
je 0x44284c
movss xmm1, dword [edi + 0x84]
sub esp, 8
movss xmm0, dword [edi + 0x80]
mov ecx, edi
movss dword [ebp - 0x28], xmm0
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
call fcn.004495c0
test al, al
je 0x44284c
mov eax, dword [ebp - 0x18]
movss xmm0, dword [0x49dce4]
movss xmm3, dword [edi + 0x84]
movss xmm2, dword [ebp - 0x28]
movss xmm1, dword [eax + 0x54]
mulss xmm1, xmm0
mulss xmm3, xmm0
movss dword [ebp - 0x2c], xmm1
movss xmm1, dword [eax + 0x58]
mulss xmm1, xmm0
mulss xmm2, xmm0
subss xmm1, xmm3
movaps xmm0, xmm2
movss dword [ebp - 0x28], xmm2
movss dword [ebp - 0x34], xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_cosf
movss dword [ebp - 0x38], xmm0
movss xmm0, dword [ebp - 0x2c]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_cosf
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0x34]
mulss xmm0, dword [0x49c1e0]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_sinf
movss dword [ebp - 0x3c], xmm0
movss xmm0, dword [ebp - 0x2c]
subss xmm0, dword [ebp - 0x28]
mulss xmm0, dword [0x49c1e0]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_sinf
movss xmm2, dword [ebp - 0x3c]
movss xmm1, dword [ebp - 0x30]
mulss xmm1, dword [ebp - 0x38]
mulss xmm2, xmm2
mulss xmm0, xmm0
mulss xmm2, xmm1
addss xmm2, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_asinf
mov edx, dword [ebp - 0x18]
movaps xmm1, xmm0
movss xmm0, dword [edi + 0xb4]
addss xmm0, xmm0
mulss xmm0, dword [edi + 0xb8]
mulss xmm1, xmm0
movss xmm0, dword [ebp - 0x34]
movss dword [ebp - 0x40], xmm1
movss dword [edx + 0x70], xmm1
movss xmm1, dword [ebp - 0x2c]
call fcn.00486020
movaps xmm2, xmm0
shufps xmm0, xmm2, 0xe
movaps xmm1, xmm2
mulss xmm0, dword [ebp - 0x38]
mulss xmm1, dword [ebp - 0x30]
movaps xmmword [ebp - 0x70], xmm0
movss xmm0, dword [ebp - 0x28]
movups xmmword [ebp - 0x60], xmm2
movss dword [ebp - 0x34], xmm1
call fcn.00485fd0
mulss xmm0, dword [ebp - 0x30]
mov ecx, 0x168
movaps xmm1, xmmword [ebp - 0x70]
fld dword [ebp - 0x34]
mulss xmm0, dword [ebp - 0x5c]
subss xmm1, xmm0
movss dword [ebp - 0x3c], xmm1
fld dword [ebp - 0x3c]
fpatan
fstp dword [ebp - 0x3c]
movss xmm0, dword [ebp - 0x3c]
mulss xmm0, dword [0x49dcf8]
addss xmm0, dword [0x49db2c]
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x40]
cdq
idiv ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x10]
mov dword [eax + 0x48], edx
movss dword [ecx + 0x1c], xmm0
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x18], eax
mov eax, dword [edx + 0x54]
mov dword [ecx + 0x20], eax
movss xmm0, dword [edx + 0x58]
jmp 0x4428ba
cmp byte [ebp - 0x11], 0
mov ecx, dword [ebx + 0x10]
mov dword [ecx + 0x1c], 0xbf800000
mov dword [ecx + 0x18], 0xffffffff
je 0x442873
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x54]
mov dword [ecx + 0x20], eax
movss xmm0, dword [edx + 0x58]
jmp 0x4428ba
movss xmm0, dword [ebp - 0x1c]
sub esp, 8
movss xmm2, dword [ebp - 0x20]
mov ecx, edi
movss dword [esp + 4], xmm0
movss dword [esp], xmm2
call fcn.004495c0
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebp - 0x18]
test al, al
je 0x4428b0
movss xmm1, dword [ebp - 0x20]
movss xmm2, dword [ebp - 0x1c]
movss dword [ecx + 0x20], xmm1
movaps xmm0, xmm2
jmp 0x4428c4
mov dword [ecx + 0x20], 0
xorps xmm0, xmm0
movss xmm2, dword [ebp - 0x1c]
movss xmm1, dword [ebp - 0x20]
cmp byte [ebp - 0x11], 0
movss dword [ecx + 0x24], xmm0
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x38], eax
mov eax, dword [edx + 0x64]
mov dword [ecx + 0x3c], eax
je 0x44294f
sub esp, 8
mov ecx, edi
movss dword [esp + 4], xmm2
movss dword [esp], xmm1
call fcn.004495c0
test al, al
je 0x44294c
mov eax, dword [ebp - 0x18]
mov edx, dword [ebx + 0x10]
movss xmm1, dword [eax + 0x58]
movss xmm0, dword [eax + 0x54]
subss xmm0, dword [ebp - 0x20]
subss xmm1, dword [ebp - 0x1c]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
cvtps2pd xmm1, xmm0
movsd xmm0, qword [0x49dcf0]
comisd xmm0, xmm1
seta al
imul ecx, dword [ebp - 0x24], 0xe0
mov byte [edx + 0x28], al
movzx eax, al
lea edx, [eax*2 - 1]
mov eax, dword [edi + 0x9c]
mov dword [ecx + eax + 0x4c], edx
jmp 0x442953
mov ecx, dword [ebx + 0x10]
mov byte [ecx + 0x28], 0
mov eax, dword [edi + 0x24]
mov edi, dword [edi + 0x20]
mov dword [ebp - 0x40], eax
cmp edi, eax
je 0x44297c
mov esi, dword [ebx + 0x10]
mov ecx, dword [edi]
push esi
push dword [ebx + 0xc]
mov eax, dword [ecx]
push dword [ebx + 8]
call dword [eax + 8]
add edi, 4
cmp edi, dword [ebp - 0x40]
jne 0x442963
mov esi, dword [ebp - 0x44]
push esi
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
push 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
dec eax
push 6
mov dword [esi + 0x2c], eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3