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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
mov eax, dword [0x10110040]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x80], ecx
mov ecx, dword [0x1011138c]
mov dword [esp + 0x58], eax
push esi
push edi
mov eax, dword [ecx + 0x1b9c]
mov edi, edx
mov dword [esp + 0xa4], edi
mov dword [esp + 0x1c], ecx
mov byte [eax + 0x8c], 1
mov eax, dword [ecx + 0x1b9c]
mov dword [esp + 0x20], eax
cmp byte [eax + 0x8f], 0
je 0x10057c13
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.100c100d
mov esp, ebp
pop ebp
ret
test byte [ecx + 0x1c24], 1
mov edx, dword [eax + 0x254]
mov dword [esp + 0x44], edx
je 0x10057c30
movss xmm1, dword [ecx + 0x1c28]
jmp 0x10057c38
movss xmm1, dword [eax + 0x180]
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x10057c7a
cmp dword [eax + 0x168], 0
movss xmm0, dword [eax + 0x218]
jne 0x10057c5a
cmp dword [ecx + 0x1f04], 0
je 0x10057c62
movss xmm0, dword [eax + 0x1e8]
subss xmm0, dword [eax + 0xd0]
addss xmm0, xmm1
movss xmm1, dword [0x10109bb4]
maxss xmm1, xmm0
mov dword [ecx + 0x1c24], 0
mov ecx, dword [esp + 0x88]
cvttss2si esi, xmm1
call fcn.1003a340
call fcn.1003aa80
mov edx, dword [ebp + 8]
mov ecx, edx
or ecx, 0x10
test edx, 0x100
cmovne ecx, edx
mov dword [esp + 0x98], ecx
test cl, 8
jne 0x10057cc6
mov edx, ecx
mov ecx, edi
call fcn.1005b0c0
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x1c]
test ecx, 0x6000000
jne 0x10057cf2
mov eax, dword [edx + 0x2e6c]
mov ecx, 0xa900000
test eax, 0x6000000
cmovne ecx, eax
and ecx, 0x6000000
or ecx, dword [esp + 0x98]
mov dword [esp + 0xc], ecx
test ecx, 0x18000000
jne 0x10057d2c
mov eax, dword [edx + 0x2e6c]
mov edi, 0xa900000
test eax, 0x18000000
cmovne edi, eax
mov eax, edi
mov dword [esp + 0x8c], edi
mov edi, dword [esp + 0xa4]
and eax, 0x18000000
or ecx, eax
mov dword [esp + 0xc], ecx
test cl, 8
jne 0x10057d42
mov eax, dword [edx + 0x2e6c]
and eax, 0x10000
or ecx, eax
mov dword [esp + 0xc], ecx
mov eax, ecx
movss xmm2, dword [edx + 0x1568]
and eax, 2
movd xmm3, esi
mov dword [esp + 0x98], eax
and ecx, 0x10002
mov eax, dword [esp + 0x20]
cvtdq2ps xmm3, xmm3
mov dword [esp + 0xc8], ecx
movss xmm5, dword [eax + 0xd0]
movss xmm0, dword [eax + 0xd4]
mov eax, dword [0x1011138c]
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x54], xmm0
movaps xmm0, xmm2
movss dword [esp + 0x4c], xmm5
movss xmm4, dword [eax + 0x1554]
addss xmm4, xmm4
movss dword [esp + 0x50], xmm5
addss xmm4, dword [eax + 0x1930]
xor eax, eax
cmp ecx, 0x10000
sete al
inc eax
addss xmm0, xmm4
movss dword [esp + 0x58], xmm4
movd xmm1, eax
xor eax, eax
cvtdq2ps xmm1, xmm1
cmp dword [esp + 0x98], eax
sete al
mulss xmm1, xmm0
movaps xmm0, xmm4
lea eax, [eax*4 + 0xc]
push eax
lea eax, [esp + 0x128]
subss xmm3, xmm1
movaps xmm1, xmm5
push edi
push eax
maxss xmm0, xmm3
addss xmm1, xmm0
movss dword [esp + 0x24], xmm0
addss xmm1, xmm2
movaps xmm0, xmm1
movss dword [esp + 0xc0], xmm1
addss xmm0, xmm4
addss xmm0, xmm2
movss dword [esp + 0xc8], xmm0
movaps xmm0, xmm4
mulss xmm0, dword [0x10109b58]
cvttss2si esi, xmm0
mov dword [esp + 0x98], esi
call sub.VCRUNTIME140.dll_memcpy
movss xmm0, dword [esp + 0x24]
add esp, 0xc
movaps xmm4, xmm0
movaps xmm3, xmm0
mulss xmm3, dword [0x10109b48]
mulss xmm4, dword [0x10109b70]
movss dword [esp + 0x7c], xmm3
movaps xmm2, xmm4
movss dword [esp + 0x94], xmm4
subss xmm2, xmm3
movaps xmm1, xmm4
addss xmm1, dword [esp + 0x24]
movaps xmm3, xmm0
mulss xmm0, dword [0x10109b3c]
addss xmm3, dword [esp + 0x58]
movss dword [esp + 0x78], xmm2
cvttss2si eax, xmm0
mulss xmm3, dword [0x10109b70]
movss dword [esp + 0xb0], xmm1
movss dword [esp + 0xfc], xmm1
movaps xmm1, xmm2
addss xmm3, dword [esp + 0x4c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xa8], xmm3
movss dword [esp + 0xf8], xmm3
subss xmm1, xmm0
movss xmm3, dword [edi + 4]
movaps xmm0, xmm1
mulss xmm0, dword [0x10109ca8]
movaps xmm2, xmm1
mov eax, dword [esp + 0xc]
mulss xmm2, dword [0x10109cb4]
mov dword [esp + 0x3c], 0
movss dword [esp + 0x38], xmm1
movss dword [esp + 0xb8], xmm0
movss dword [esp + 0xe8], xmm0
movss dword [esp + 0x108], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x10109ba4]
movss dword [esp + 0x90], xmm2
movss dword [esp + 0xec], xmm2
movss xmm2, dword [edi + 8]
movss dword [esp + 0xac], xmm0
movss dword [esp + 0x10c], xmm0
movss xmm0, dword [edi]
movss dword [esp + 0x14], xmm0
movaps xmm1, xmm0
movss dword [esp + 0x84], xmm1
movss dword [esp + 0x74], xmm1
movaps xmm1, xmm3
movss dword [esp + 0x80], xmm1
movss dword [esp + 0x6c], xmm1
movaps xmm1, xmm2
movss dword [esp + 0x70], xmm1
movss dword [esp + 0x64], xmm1
movss xmm1, dword [0x10109c24]
movss dword [esp + 0x34], xmm3
movss dword [esp + 0x48], xmm2
movss dword [esp + 0xdc], xmm1
test eax, 0x8000000
je 0x100580b4
comiss xmm2, xmm3
xorps xmm1, xmm1
xorps xmm6, xmm6
movaps xmm5, xmm3
movaps xmm7, xmm2
jbe 0x10057fdd
movss xmm6, dword [0x10109cb8]
movaps xmm5, xmm2
movaps xmm7, xmm3
comiss xmm5, xmm0
movaps xmm4, xmm0
movss dword [esp + 0x48], xmm4
jbe 0x10058006
movaps xmm4, xmm5
movaps xmm5, xmm0
movss xmm0, dword [0x10109ca4]
subss xmm0, xmm6
movss dword [esp + 0x48], xmm4
movaps xmm6, xmm0
movaps xmm0, xmm5
mov ecx, dword [esp + 0x1c]
minss xmm0, xmm7
movaps xmm3, xmm4
movaps xmm2, xmm5
subss xmm2, xmm7
mov eax, dword [ecx + 0x2e78]
subss xmm3, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [0x10109c24]
addss xmm0, dword [0x10109b24]
divss xmm2, xmm0
movaps xmm0, xmm4
addss xmm2, xmm6
addss xmm0, dword [0x10109b24]
andps xmm2, xmmword [0x1010a190]
divss xmm3, xmm0
movss dword [esp + 0x14], xmm2
movss dword [esp + 0x34], xmm3
cmp eax, dword [edi]
jne 0x100580fd
mov eax, dword [ecx + 0x2e7c]
cmp eax, dword [edi + 4]
jne 0x100580fd
mov eax, dword [ecx + 0x2e80]
cmp eax, dword [edi + 8]
jne 0x100580fd
ucomiss xmm3, xmm1
lahf
test ah, 0x44
jp 0x1005809b
movss xmm0, dword [ecx + 0x2e70]
movss dword [esp + 0x14], xmm0
ucomiss xmm4, xmm1
lahf
test ah, 0x44
jp 0x100580fd
movss xmm0, dword [ecx + 0x2e74]
movss dword [esp + 0x34], xmm0
jmp 0x100580fd
test eax, 0x10000000
je 0x100580fd
lea eax, [esp + 0x64]
movaps xmm1, xmm3
push eax
lea edx, [esp + 0x70]
lea ecx, [esp + 0x78]
call fcn.1002f200
movss xmm0, dword [esp + 0x78]
add esp, 4
movss dword [esp + 0x84], xmm0
movss xmm0, dword [esp + 0x6c]
movss dword [esp + 0x80], xmm0
movss xmm0, dword [esp + 0x64]
movss dword [esp + 0x70], xmm0
mov ecx, dword [0x1011138c]
mov byte [esp + 9], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0xb], 0
mov eax, dword [ecx + 0x1c20]
or eax, 8
mov dword [ecx + 0x1c20], eax
add ecx, 0x1cf4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
call fcn.10040930
mov eax, dword [esp + 0xc]
test eax, 0x4000000
je 0x10058717
movss xmm1, dword [esp + 0x18]
lea edx, [esp + 0x28]
mov eax, dword [esp + 0x1c]
movaps xmm0, xmm1
push ecx
mov ecx, 0x101098dc
movss dword [esp + 0x30], xmm1
addss xmm0, dword [eax + 0x1568]
addss xmm0, dword [esp + 0x5c]
movss dword [esp + 0x2c], xmm0
call fcn.1004e1e0
mov eax, dword [0x1011138c]
add esp, 4
mov ecx, dword [eax + 0x1bd0]
test ecx, ecx
je 0x1005860b
cmp ecx, dword [eax + 0x1c38]
jne 0x1005860b
mov eax, dword [esp + 0x1c]
movss xmm0, dword [eax + 0x38c]
subss xmm0, dword [esp + 0xb0]
movss xmm1, dword [eax + 0x388]
subss xmm1, dword [esp + 0xa8]
movss xmm3, dword [eax + 0xe4]
movss xmm2, dword [eax + 0xe8]
subss xmm3, dword [esp + 0xa8]
subss xmm2, dword [esp + 0xb0]
movaps xmm4, xmm0
movss dword [esp + 0x9c], xmm0
mulss xmm4, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movss dword [esp + 0xcc], xmm1
movss xmm1, dword [0x10109bb4]
addss xmm4, xmm0
movss dword [esp + 0xd0], xmm3
movss xmm0, dword [esp + 0x78]
subss xmm0, xmm1
movss dword [esp + 0xe0], xmm2
mulss xmm0, xmm0
comiss xmm4, xmm0
jb 0x100582b0
movss xmm0, dword [esp + 0x94]
addss xmm0, xmm1
mulss xmm0, xmm0
comiss xmm0, xmm4
jb 0x100582b0
cvtps2pd xmm0, xmm2
movsd qword [esp + 0x28], xmm0
fld qword [esp + 0x28]
cvtps2pd xmm0, xmm3
movsd qword [esp + 0x28], xmm0
fld qword [esp + 0x28]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
movss xmm2, dword [0x10109c10]
xorps xmm0, xmm0
fstp qword [esp + 0x28]
movsd xmm1, qword [esp + 0x28]
cvtpd2ps xmm1, xmm1
divss xmm1, xmm2
mulss xmm1, dword [0x10109b70]
comiss xmm0, xmm1
movss dword [esp + 0x14], xmm1
jbe 0x100582a8
addss xmm1, dword [0x10109bb4]
movss dword [esp + 0x14], xmm1
mov al, 1
mov byte [esp + 9], al
jmp 0x100582c2
mov al, byte [esp + 9]
movss xmm2, dword [0x10109c10]
movss xmm1, dword [esp + 0x14]
movaps xmm0, xmm1
mov byte [esp + 0x13], al
xorps xmm0, xmmword [0x1010a1c0]
addss xmm0, xmm0
mulss xmm0, xmm2
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x28], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x5c], xmm0
movsd xmm0, qword [esp + 0x28]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm4, dword [esp + 0xcc]
xorps xmm3, xmm3
movss xmm1, dword [esp + 0x9c]
movaps xmm5, xmm4
mulss xmm5, dword [esp + 0x5c]
cvtsd2ss xmm3, xmm0
movss xmm7, dword [esp + 0xb8]
movaps xmm0, xmm1
mulss xmm1, dword [esp + 0x5c]
mulss xmm0, xmm3
mulss xmm4, xmm3
subss xmm5, xmm0
movss xmm6, dword [esp + 0x38]
movss xmm0, dword [esp + 0x90]
subss xmm6, xmm7
subss xmm0, dword [esp + 0xac]
addss xmm4, xmm1
movss dword [esp + 0x20], xmm3
movaps xmm3, xmm7
movaps xmm2, xmm5
subss xmm3, xmm7
subss xmm2, xmm7
movss dword [esp + 0xc0], xmm6
movaps xmm1, xmm0
movss dword [esp + 0x9c], xmm0
movaps xmm0, xmm4
subss xmm0, dword [esp + 0xac]
movss dword [esp + 0xcc], xmm3
mulss xmm1, xmm2
mulss xmm0, xmm3
xorps xmm3, xmm3
subss xmm1, xmm0
xorps xmm0, xmm0
subss xmm0, dword [esp + 0x90]
comiss xmm3, xmm1
movaps xmm1, xmm0
movss dword [esp + 0xd4], xmm0
movaps xmm0, xmm4
mulss xmm1, xmm2
seta cl
subss xmm0, dword [esp + 0x90]
mulss xmm0, xmm6
subss xmm1, xmm0
comiss xmm3, xmm1
seta al
cmp al, cl
jne 0x10058603
movss xmm7, dword [esp + 0xac]
subss xmm4, xmm3
movss xmm6, dword [esp + 0xb8]
subss xmm7, xmm3
subss xmm6, dword [esp + 0x38]
subss xmm5, dword [esp + 0x38]
movss dword [esp + 0x28], xmm7
mulss xmm4, xmm6
mulss xmm5, xmm7
movss dword [esp + 0x68], xmm6
subss xmm5, xmm4
comiss xmm3, xmm5
seta al
cmp cl, al
jne 0x10058603
movss xmm4, dword [esp + 0xe0]
movss xmm1, dword [esp + 0xd0]
movaps xmm0, xmm4
mulss xmm0, dword [esp + 0x20]
movaps xmm5, xmm1
mulss xmm1, dword [esp + 0x20]
mulss xmm5, dword [esp + 0x5c]
mulss xmm4, dword [esp + 0x5c]
subss xmm5, xmm0
addss xmm4, xmm1
movaps xmm1, xmm5
movss dword [esp + 0xe0], xmm5
subss xmm1, dword [esp + 0xb8]
movaps xmm0, xmm4
movss dword [esp + 0xe4], xmm4
subss xmm0, dword [esp + 0xac]
mulss xmm1, dword [esp + 0x9c]
mulss xmm0, dword [esp + 0xcc]
subss xmm1, xmm0
movaps xmm0, xmm4
subss xmm0, dword [esp + 0x90]
comiss xmm3, xmm1
mulss xmm0, dword [esp + 0xc0]
movaps xmm1, xmm5
subss xmm1, dword [esp + 0xb8]
seta cl
mulss xmm1, dword [esp + 0xd4]
subss xmm1, xmm0
comiss xmm3, xmm1
seta al
cmp al, cl
jne 0x10058515
movaps xmm1, xmm5
movaps xmm0, xmm4
subss xmm1, dword [esp + 0x38]
subss xmm0, xmm3
mulss xmm1, xmm7
mulss xmm0, xmm6
subss xmm1, xmm0
comiss xmm3, xmm1
seta al
cmp cl, al
je 0x10058558
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x10c]
push eax
lea eax, [esp + 0xf0]
push eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0xcc]
call fcn.1002e8c0
movss xmm6, dword [esp + 0x74]
add esp, 0xc
movss xmm7, dword [esp + 0x28]
xorps xmm3, xmm3
movss xmm5, dword [eax]
movss xmm4, dword [eax + 4]
movss xmm2, dword [esp + 0x90]
subss xmm4, xmm3
subss xmm5, dword [esp + 0x38]
subss xmm2, xmm3
movaps xmm1, xmm7
mulss xmm1, xmm6
mulss xmm4, xmm6
movaps xmm0, xmm2
movss xmm3, dword [0x10109bb4]
mulss xmm0, xmm6
movaps xmm6, xmm3
subss xmm1, xmm0
movaps xmm0, xmm5
mulss xmm0, xmm7
mulss xmm5, xmm2
subss xmm0, xmm4
subss xmm4, xmm5
divss xmm0, xmm1
divss xmm4, xmm1
subss xmm6, xmm0
movss xmm0, dword [0x10109b30]
movss dword [esp + 0x34], xmm0
comiss xmm0, xmm6
movaps xmm2, xmm6
subss xmm2, xmm4
jbe 0x100585d4
movaps xmm1, xmm0
movss dword [esp + 0x48], xmm0
jmp 0x100585e1
movaps xmm1, xmm3
minss xmm1, xmm6
movss dword [esp + 0x48], xmm1
divss xmm2, xmm1
comiss xmm0, xmm2
ja 0x100585f7
movaps xmm0, xmm3
minss xmm0, xmm2
movss dword [esp + 0x34], xmm0
mov byte [esp + 0xb], 1
mov byte [esp + 9], 1
jmp 0x1005860b
mov al, byte [esp + 9]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0xc]
test al, 8
jne 0x10058618
call fcn.1003bb00
movss xmm3, dword [esp + 0x18]
movss xmm2, dword [esp + 0x24]
cmp dword [esp + 0xc8], 0x10000
jne 0x1005892e
mov ecx, dword [0x1011138c]
lea edx, [esp + 0xe8]
movss xmm0, dword [esp + 0xbc]
push ecx
movss dword [esp + 0xf0], xmm3
mov eax, dword [ecx + 0x1b9c]
mov byte [eax + 0x8c], 1
mov eax, dword [ecx + 0x1b9c]
mov ecx, str.alpha
movss dword [eax + 0xd0], xmm0
movss dword [eax + 0xd4], xmm2
movss xmm1, dword [eax + 0xe8]
maxss xmm1, xmm0
movss xmm0, dword [eax + 0xec]
maxss xmm0, xmm2
movss dword [eax + 0xe8], xmm1
movss dword [eax + 0xec], xmm0
movss xmm0, dword [esp + 0x5c]
movss dword [esp + 0xec], xmm0
call fcn.1004e1e0
mov eax, dword [0x1011138c]
add esp, 4
mov ecx, dword [eax + 0x1bd0]
test ecx, ecx
je 0x1005892e
cmp ecx, dword [eax + 0x1c38]
jne 0x1005892e
mov eax, dword [esp + 0x1c]
xorps xmm2, xmm2
movss xmm0, dword [esp + 0x18]
movss xmm1, dword [0x10109bb4]
subss xmm0, xmm1
movss xmm3, dword [eax + 0xe8]
subss xmm3, dword [esp + 0x24]
divss xmm3, xmm0
comiss xmm2, xmm3
jbe 0x10058916
xorps xmm4, xmm4
jmp 0x1005891d
test eax, 0x2000000
je 0x10058618
movss xmm0, dword [esp + 0x18]
lea edx, [esp + 0xe8]
push ecx
mov ecx, 0x101098e0
movss dword [esp + 0xec], xmm0
movss dword [esp + 0xf0], xmm0
call fcn.1004e1e0
mov ecx, dword [0x1011138c]
add esp, 4
mov eax, dword [ecx + 0x1bd0]
test eax, eax
je 0x100587e8
cmp eax, dword [ecx + 0x1c38]
jne 0x100587e8
mov eax, dword [esp + 0x1c]
xorps xmm0, xmm0
movss xmm4, dword [esp + 0x18]
movss xmm1, dword [0x10109bb4]
subss xmm4, xmm1
movss xmm3, dword [eax + 0xe4]
subss xmm3, dword [esp + 0x4c]
divss xmm3, xmm4
comiss xmm0, xmm3
jbe 0x100587a3
movss dword [esp + 0x34], xmm0
jmp 0x100587b0
movaps xmm2, xmm1
minss xmm2, xmm3
movss dword [esp + 0x34], xmm2
movss xmm2, dword [eax + 0xe8]
subss xmm2, dword [esp + 0x24]
divss xmm2, xmm4
comiss xmm0, xmm2
jbe 0x100587cc
xorps xmm3, xmm3
jmp 0x100587d3
movaps xmm3, xmm1
minss xmm3, xmm2
movaps xmm0, xmm1
mov al, 1
subss xmm0, xmm3
mov byte [esp + 9], al
movss dword [esp + 0x48], xmm0
jmp 0x100587ec
mov al, byte [esp + 9]
mov byte [esp + 0xb], al
mov byte [esp + 0xa], al
mov eax, dword [esp + 0xc]
test al, 8
jne 0x10058807
call fcn.1003bb00
mov ecx, dword [0x1011138c]
mov eax, dword [ecx + 0x1b9c]
lea edx, [esp + 0xe8]
movss xmm0, dword [esp + 0xb4]
movss xmm2, dword [esp + 0x24]
push ecx
mov byte [eax + 0x8c], 1
mov eax, dword [ecx + 0x1b9c]
mov ecx, 0x101098e4
movss dword [eax + 0xd0], xmm0
movss dword [eax + 0xd4], xmm2
movss xmm1, dword [eax + 0xe8]
maxss xmm1, xmm0
movss xmm0, dword [eax + 0xec]
maxss xmm0, xmm2
movss dword [eax + 0xe8], xmm1
movss dword [eax + 0xec], xmm0
movss xmm0, dword [esp + 0x5c]
movss dword [esp + 0xec], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [esp + 0xf0], xmm0
call fcn.1004e1e0
mov eax, dword [0x1011138c]
add esp, 4
mov ecx, dword [eax + 0x1bd0]
test ecx, ecx
je 0x10058618
mov dl, byte [esp + 9]
movss xmm2, dword [esp + 0x24]
movss xmm3, dword [esp + 0x18]
mov byte [esp + 0xb], dl
cmp ecx, dword [eax + 0x1c38]
jne 0x10058624
mov eax, dword [esp + 0x1c]
movaps xmm0, xmm3
movss xmm1, dword [0x10109bb4]
subss xmm0, xmm1
movss xmm4, dword [eax + 0xe8]
subss xmm4, xmm2
divss xmm4, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm4
ja 0x100588f9
movaps xmm0, xmm1
minss xmm0, xmm4
mov al, byte [esp + 0xa]
movss dword [esp + 0x14], xmm0
mov byte [esp + 0x13], 1
mov byte [esp + 9], 1
mov byte [esp + 0xb], al
jmp 0x10058624
movaps xmm4, xmm1
minss xmm4, xmm3
movaps xmm0, xmm1
mov byte [esp + 9], 1
subss xmm0, xmm4
movss dword [edi + 0xc], xmm0
mov edx, dword [0x1011138c]
dec dword [edx + 0x1cf4]
mov eax, dword [edx + 0x1cfc]
mov ecx, dword [edx + 0x1cf4]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x1c20], eax
mov eax, dword [esp + 0xc]
test eax, 0x100
jne 0x10058978
mov eax, dword [esp + 0x1c]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x1568]
call fcn.1003a840
call fcn.1003aa80
mov eax, dword [esp + 0xc]
test al, al
js 0x100589e3
mov edx, dword [esp + 0x88]
cmp edx, 0xffffffff
jae 0x100589e3
mov cl, byte [edx]
mov byte [esp + 0xa], cl
test cl, cl
je 0x100589a2
cmp cl, 0x23
jne 0x1005899c
cmp byte [edx + 1], cl
je 0x100589a2
inc edx
cmp edx, 0xffffffff
jb 0x10058988
mov dword [esp + 0x20], edx
cmp dword [esp + 0x88], edx
je 0x100589e3
test eax, 0x100
je 0x100589ce
mov eax, dword [esp + 0x1c]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x1568]
call fcn.1003a840
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x88]
push 0
call fcn.1004cf90
mov eax, dword [esp + 0x10]
add esp, 4
test eax, 0x100
jne 0x10058bcf
mov ecx, dword [0x1011138c]
mov eax, dword [ecx + 0x1c20]
or eax, 0x10
mov dword [ecx + 0x1c20], eax
add ecx, 0x1cf4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
call fcn.10040930
mov eax, dword [esp + 0xc]
test al, 2
je 0x10058a29
movss xmm1, dword [0x10109bb4]
jmp 0x10058a2e
movss xmm1, dword [edi + 0xc]
movss xmm0, dword [edi]
movss dword [esp + 0xe8], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0xec], xmm0
movss xmm0, dword [edi + 8]
movss dword [esp + 0xf0], xmm0
movss dword [esp + 0xf4], xmm1
test al, al
jns 0x10058a75
push str.Current
call fcn.1004d680
mov eax, dword [esp + 0x10]
add esp, 4
movss xmm1, dword [esp + 0x58]
lea edx, [esp + 0xe8]
movaps xmm0, xmm1
and eax, 0x180e0040
mulss xmm0, dword [0x10109c0c]
mov ecx, str.current
mov dword [esp + 0xc0], eax
movss dword [esp + 0xd4], xmm0
movss dword [esp + 0x28], xmm0
movaps xmm0, xmm1
addss xmm0, xmm1
movss dword [esp + 0xd8], xmm0
push dword [esp + 0xd8]
movss dword [esp + 0x6c], xmm0
push dword [esp + 0xd8]
push eax
call fcn.1005a170
add esp, 0xc
cmp dword [esp + 0x60], 0
je 0x10058ba4
push str.Original
call fcn.1004d680
mov eax, dword [esp + 0x10]
add esp, 4
test al, 2
mov eax, dword [esp + 0x60]
je 0x10058b08
movss xmm1, dword [0x10109bb4]
jmp 0x10058b0d
movss xmm1, dword [eax + 0xc]
movss xmm0, dword [eax]
lea edx, [esp + 0x108]
movss dword [esp + 0x108], xmm0
mov ecx, str.original
movss xmm0, dword [eax + 4]
movss dword [esp + 0x10c], xmm0
movss xmm0, dword [eax + 8]
movss dword [esp + 0x110], xmm0
movss xmm0, dword [esp + 0x28]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x68]
movss dword [esp + 0x2c], xmm0
push dword [esp + 0x2c]
movss dword [esp + 0x118], xmm1
push dword [esp + 0x2c]
push dword [esp + 0xc8]
call fcn.1005a170
add esp, 0xc
test al, al
je 0x10058ba4
xor eax, eax
cmp dword [esp + 0x98], eax
sete al
lea eax, [eax*4 + 0xc]
push eax
push dword [esp + 0x64]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + 9], 1
mov edx, dword [0x1011138c]
dec dword [edx + 0x1cf4]
mov eax, dword [edx + 0x1cfc]
mov ecx, dword [edx + 0x1cf4]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x1c20], eax
call fcn.1003abb0
mov eax, dword [esp + 0xc]
cmp byte [esp + 0x13], 0
jne 0x10058be1
cmp byte [esp + 0xb], 0
je 0x10058ca2
test eax, 0x8000000
je 0x10058c7b
movss xmm1, dword [esp + 0x48]
lea eax, [edi + 8]
xorps xmm0, xmm0
lea edx, [edi + 4]
comiss xmm1, xmm0
jbe 0x10058c05
movaps xmm3, xmm1
jmp 0x10058c0d
movss xmm3, dword [0x10109b28]
movss xmm1, dword [esp + 0x34]
comiss xmm1, xmm0
movss xmm2, dword [0x10109b2c]
ja 0x10058c23
movaps xmm1, xmm2
movss xmm0, dword [esp + 0x14]
comiss xmm0, dword [0x10109bb4]
jb 0x10058c36
subss xmm0, xmm2
push eax
mov ecx, edi
movaps xmm2, xmm3
call fcn.1002f200
mov ecx, dword [esp + 0x20]
add esp, 4
movss xmm0, dword [esp + 0x34]
movss xmm1, dword [esp + 0x14]
movss dword [ecx + 0x2e70], xmm1
movss dword [ecx + 0x2e74], xmm0
movq xmm0, qword [edi]
movq qword [ecx + 0x2e78], xmm0
mov eax, dword [edi + 8]
mov dword [ecx + 0x2e80], eax
jmp 0x10058ca2
test eax, 0x10000000
je 0x10058ca2
movss xmm0, dword [esp + 0x34]
movss xmm1, dword [esp + 0x14]
movss dword [edi + 4], xmm0
movss xmm0, dword [esp + 0x48]
movss dword [edi], xmm1
movss dword [edi + 8], xmm0
mov eax, dword [esp + 0xc]
mov byte [esp + 0xa], 0
test al, 0x20
jne 0x10058ee3
cmp dword [esp + 0xc8], 0x10000
jne 0x10058ccb
movss xmm0, dword [esp + 0xbc]
jmp 0x10058cd4
movss xmm0, dword [esp + 0xb4]
addss xmm0, dword [esp + 0x58]
subss xmm0, dword [esp + 0x4c]
call fcn.1003a900
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 0x198e001a
mov dword [esp + 0x60], ecx
test eax, 0x100000
jne 0x10058d03
test eax, 0x700000
jne 0x10058d4a
or ecx, 0x100004
mov edx, edi
push ecx
mov ecx, str.rgb
call fcn.10056900
add esp, 4
test al, al
je 0x10058d42
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x1bd0], 0
je 0x10058d38
cmp byte [eax + 0x1bdd], 0
mov byte [esp + 0xa], 1
je 0x10058d3d
mov byte [esp + 0xa], 0
mov byte [esp + 9], 1
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0xc]
test eax, 0x200000
jne 0x10058d58
test eax, 0x700000
jne 0x10058d76
or ecx, 0x200004
mov edx, edi
push ecx
mov ecx, str.hsv
call fcn.10056900
add esp, 4
or byte [esp + 9], al
mov eax, dword [esp + 0xc]
test eax, 0x400000
jne 0x10058d84
test eax, 0x700000
jne 0x10058da1
mov eax, dword [esp + 0x60]
mov edx, edi
or eax, 0x400004
mov ecx, str.hex
push eax
call fcn.10056900
add esp, 4
or byte [esp + 9], al
cmp byte [esp + 0xa], 0
mov ecx, dword [0x1011138c]
mov eax, dword [ecx + 0x1b9c]
mov byte [eax + 0x8c], 1
mov edx, dword [ecx + 0x1b9c]
mov ecx, dword [edx + 0x188]
mov eax, dword [edx + 0x190]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x180], eax
lea eax, [ecx - 1]
mov dword [edx + 0x188], eax
mov eax, dword [esp + 0xc]
je 0x10058ee3
xorps xmm2, xmm2
test eax, 0x8000000
je 0x10058ee6
movss xmm3, dword [edi + 4]
xorps xmm6, xmm6
movss xmm5, dword [edi + 8]
comiss xmm5, xmm3
movss xmm4, dword [edi]
jbe 0x10058e1d
movss xmm6, dword [0x10109cb8]
movaps xmm0, xmm3
movaps xmm3, xmm5
movaps xmm5, xmm0
comiss xmm3, xmm4
jbe 0x10058e3a
movaps xmm0, xmm4
movaps xmm4, xmm3
movaps xmm3, xmm0
movss xmm0, dword [0x10109ca4]
subss xmm0, xmm6
movaps xmm6, xmm0
movaps xmm0, xmm3
movaps xmm1, xmm4
minss xmm0, xmm5
subss xmm3, xmm5
subss xmm1, xmm0
movaps xmm0, xmm4
addss xmm0, dword [0x10109b24]
movaps xmm7, xmm1
mulss xmm1, dword [0x10109c24]
divss xmm7, xmm0
addss xmm1, dword [0x10109b24]
divss xmm3, xmm1
addss xmm3, xmm6
andps xmm3, xmmword [0x1010a190]
comiss xmm2, xmm3
jb 0x10058ee6
movss xmm0, dword [esp + 0x14]
comiss xmm0, xmm2
jbe 0x10058ee6
comiss xmm2, xmm4
jb 0x10058eb8
movss xmm1, dword [esp + 0x48]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jnp 0x10058eb4
movaps xmm2, xmm1
movss xmm1, dword [esp + 0x34]
mulss xmm2, dword [0x10109b70]
jmp 0x10058ece
mov eax, dword [esp + 0xc]
comiss xmm2, xmm7
jb 0x10058ee6
movss xmm1, dword [esp + 0x34]
movaps xmm2, xmm4
mulss xmm1, dword [0x10109b70]
lea eax, [edi + 8]
mov ecx, edi
push eax
lea edx, [edi + 4]
call fcn.1002f200
mov eax, dword [esp + 0x10]
add esp, 4
xorps xmm2, xmm2
cmp byte [esp + 9], 0
je 0x1005907c
test eax, 0x8000000
je 0x10059016
movss xmm0, dword [edi + 4]
xorps xmm5, xmm5
movss xmm3, dword [edi + 8]
movaps xmm1, xmm0
comiss xmm3, xmm0
movss xmm7, dword [edi]
movaps xmm6, xmm3
movss dword [esp + 0x84], xmm7
movss dword [esp + 0x80], xmm0
movss dword [esp + 0x70], xmm3
jbe 0x10058f3e
movss xmm5, dword [0x10109cb8]
movaps xmm1, xmm3
movaps xmm6, xmm0
comiss xmm1, xmm7
movaps xmm4, xmm7
movss dword [esp + 0x48], xmm4
jbe 0x10058f67
movss xmm0, dword [0x10109ca4]
movaps xmm4, xmm1
subss xmm0, xmm5
movss dword [esp + 0x48], xmm4
movaps xmm1, xmm7
movaps xmm5, xmm0
movaps xmm0, xmm1
mov ecx, dword [esp + 0x1c]
minss xmm0, xmm6
movaps xmm3, xmm4
subss xmm1, xmm6
mov eax, dword [ecx + 0x2e78]
subss xmm3, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [0x10109c24]
addss xmm0, dword [0x10109b24]
divss xmm1, xmm0
movaps xmm0, xmm4
addss xmm1, xmm5
addss xmm0, dword [0x10109b24]
andps xmm1, xmmword [0x1010a190]
divss xmm3, xmm0
movss dword [esp + 0x14], xmm1
movss dword [esp + 0x34], xmm3
cmp eax, dword [edi]
jne 0x10059080
mov eax, dword [ecx + 0x2e7c]
cmp eax, dword [edi + 4]
jne 0x10059080
mov eax, dword [ecx + 0x2e80]
cmp eax, dword [edi + 8]
jne 0x10059080
ucomiss xmm3, xmm2
lahf
test ah, 0x44
jp 0x10058ffd
movss xmm0, dword [ecx + 0x2e70]
movss dword [esp + 0x14], xmm0
ucomiss xmm4, xmm2
lahf
test ah, 0x44
jp 0x10059080
movss xmm0, dword [ecx + 0x2e74]
movss dword [esp + 0x34], xmm0
jmp 0x10059080
test eax, 0x10000000
je 0x1005907c
movss xmm0, dword [edi]
lea eax, [esp + 0x64]
movss xmm1, dword [edi + 4]
lea edx, [esp + 0x6c]
movss xmm2, dword [edi + 8]
lea ecx, [esp + 0x74]
push eax
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x38], xmm1
movss dword [esp + 0x4c], xmm2
call fcn.1002f200
movss xmm0, dword [esp + 0x78]
add esp, 4
movss dword [esp + 0x84], xmm0
movss xmm0, dword [esp + 0x6c]
movss dword [esp + 0x80], xmm0
movss xmm0, dword [esp + 0x64]
movss dword [esp + 0x70], xmm0
mov ecx, dword [esp + 0x1c]
movss xmm2, dword [ecx + 0x1518]
xorps xmm0, xmm0
comiss xmm0, xmm2
movss xmm0, dword [0x10109bb4]
jbe 0x1005909d
xorps xmm1, xmm1
jmp 0x100590a4
movaps xmm1, xmm0
minss xmm1, xmm2
mulss xmm1, dword [0x10109c68]
mov dword [esp + 0xe8], 0x3f800000
movss dword [esp + 0xf4], xmm2
movaps xmm2, xmm0
mov dword [esp + 0xec], 0x3f800000
addss xmm1, dword [0x10109b70]
mov dword [esp + 0xf0], 0x3f800000
cvttss2si edx, xmm1
movaps xmm1, xmm0
movss xmm0, dword [esp + 0x14]
shl edx, 0x18
mov eax, edx
mov dword [esp + 0x88], edx
or eax, 0xffffff
mov ecx, edx
mov dword [esp + 0x64], eax
or ecx, 0xff
mov eax, edx
mov dword [esp + 0x108], ecx
or eax, 0x808080
mov dword [esp + 0x120], ecx
mov dword [esp + 0x74], eax
lea ecx, [esp + 0xe8]
mov eax, edx
or eax, 0xffff
mov dword [esp + 0x10c], eax
mov eax, edx
or eax, 0xff00
mov dword [esp + 0x110], eax
mov eax, edx
or eax, 0xffff00
mov dword [esp + 0x114], eax
mov eax, edx
or eax, 0xff0000
mov dword [esp + 0x118], eax
mov eax, edx
or eax, 0xff00ff
lea edx, [esp + 0xec]
mov dword [esp + 0x11c], eax
lea eax, [esp + 0xf0]
push eax
call fcn.1002f200
movss xmm3, dword [esp + 0xec]
xorps xmm0, xmm0
movss xmm2, dword [0x10109bb4]
add esp, 4
comiss xmm0, xmm3
jbe 0x100591a6
xorps xmm1, xmm1
jmp 0x100591ad
movaps xmm1, xmm2
minss xmm1, xmm3
movss xmm3, dword [0x10109c68]
movss xmm4, dword [0x10109b70]
movss xmm5, dword [esp + 0xec]
comiss xmm0, xmm5
mulss xmm1, xmm3
addss xmm1, xmm4
cvttss2si ecx, xmm1
jbe 0x100591dc
xorps xmm1, xmm1
jmp 0x100591e3
movaps xmm1, xmm2
minss xmm1, xmm5
movss xmm5, dword [esp + 0xf0]
mulss xmm1, xmm3
addss xmm1, xmm4
cvttss2si eax, xmm1
shl eax, 8
or ecx, eax
comiss xmm0, xmm5
jbe 0x10059207
xorps xmm1, xmm1
jmp 0x1005920e
movaps xmm1, xmm2
minss xmm1, xmm5
movss xmm5, dword [esp + 0xf4]
mulss xmm1, xmm3
addss xmm1, xmm4
cvttss2si eax, xmm1
shl eax, 0x10
or ecx, eax
comiss xmm0, xmm5
jbe 0x10059232
xorps xmm1, xmm1
jmp 0x10059239
movaps xmm1, xmm2
minss xmm1, xmm5
movss xmm5, dword [esp + 0x84]
mulss xmm1, xmm3
addss xmm1, xmm4
cvttss2si eax, xmm1
shl eax, 0x18
or eax, ecx
comiss xmm0, xmm5
mov dword [esp + 0x6c], eax
jbe 0x10059261
xorps xmm1, xmm1
jmp 0x10059268
movaps xmm1, xmm2
minss xmm1, xmm5
movss xmm5, dword [esp + 0x80]
comiss xmm0, xmm5
mulss xmm1, xmm3
addss xmm1, xmm4
cvttss2si ecx, xmm1
jbe 0x10059287
xorps xmm1, xmm1
jmp 0x1005928e
movaps xmm1, xmm2
minss xmm1, xmm5
movss xmm5, dword [esp + 0x70]
mulss xmm1, xmm3
addss xmm1, xmm4
cvttss2si eax, xmm1
shl eax, 8
or ecx, eax
comiss xmm0, xmm5
jbe 0x100592af
xorps xmm1, xmm1
jmp 0x100592b6
movaps xmm1, xmm2
minss xmm1, xmm5
mulss xmm1, xmm3
addss xmm1, xmm4
cvttss2si eax, xmm1
shl eax, 0x10
or ecx, eax
mov eax, dword [esp + 0x1c]
movss xmm1, dword [eax + 0x1518]
comiss xmm0, xmm1
ja 0x100592df
movaps xmm0, xmm2
minss xmm0, xmm1
mov eax, dword [esp + 0xc]
mulss xmm0, xmm3
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
addss xmm0, xmm4
cvttss2si edx, xmm0
shl edx, 0x18
or edx, ecx
mov dword [esp + 0x70], edx
test eax, 0x4000000
je 0x10059b26
movss xmm0, dword [esp + 0x94]
movaps xmm3, xmm4
movss xmm5, dword [esp + 0x78]
mov eax, 0x2aaaaaab
divss xmm3, xmm0
cvttss2si ecx, xmm0
addss xmm5, xmm0
movss dword [esp + 0xe0], xmm3
imul ecx
mulss xmm5, xmm4
mov eax, 4
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
movss dword [esp + 0xd4], xmm5
cmp ecx, eax
cmovle ecx, eax
xor esi, esi
mov dword [esp + 0xd0], ecx
mov dword [esp + 0x60], esi
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mov eax, dword [esp + 0x44]
push ecx
push ecx
lea ecx, [esp + 0x100]
mov edi, dword [eax + 0x18]
movaps xmm0, xmm1
addss xmm1, xmm2
divss xmm0, dword [0x10109c24]
divss xmm1, dword [0x10109c24]
addss xmm0, xmm0
movaps xmm2, xmm5
addss xmm1, xmm1
mulss xmm0, dword [0x10109c10]
mulss xmm1, dword [0x10109c10]
subss xmm0, xmm3
addss xmm1, xmm3
movaps xmm3, xmm0
movss dword [esp + 0x28], xmm0
movss dword [esp], xmm1
push ecx
mov ecx, eax
movss dword [esp + 0x68], xmm1
call fcn.10043ca0
movss xmm0, dword [esp + 0x7c]
mov eax, dword [esp + 0x44]
push ecx
movss dword [esp], xmm0
mov ecx, eax
push 0
push dword [esp + 0x6c]
push dword [eax + 0x54]
push dword [eax + 0x5c]
call fcn.100427a0
movss xmm0, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
cvtps2pd xmm0, xmm0
mov dword [eax + 0x54], 0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0x20]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x78]
addss xmm0, dword [esp + 0xa8]
movss dword [esp + 0x68], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x78]
addss xmm0, dword [esp + 0xb0]
movss dword [esp + 0xc0], xmm0
movss xmm0, dword [esp + 0x5c]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0x5c]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x78]
addss xmm0, dword [esp + 0xa8]
movss dword [esp + 0x28], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm3, dword [esp + 0x28]
xorps xmm4, xmm4
movss xmm5, dword [esp + 0x68]
movss xmm6, dword [esp + 0xc0]
subss xmm3, xmm5
cvtsd2ss xmm4, xmm0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + esi*4 + 0x108]
movss xmm2, dword [0x10109bb4]
movaps xmm0, xmm3
mulss xmm4, dword [esp + 0x78]
movaps xmm7, xmm2
mov edx, dword [eax + 0x20]
mulss xmm0, xmm3
addss xmm4, dword [esp + 0xb0]
subss xmm4, xmm6
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm1, xmm0
divss xmm7, xmm1
mov eax, dword [eax + 0x18]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [esp + 0x28], eax
movzx eax, cl
mov dword [esp + 0x80], eax
mov eax, ecx
shr eax, 8
movzx eax, al
mov dword [esp + 0x5c], eax
shr ecx, 0x10
movzx eax, cl
mov ecx, dword [esp + esi*4 + 0x10c]
mov dword [esp + 0x20], eax
movzx eax, cl
sub eax, dword [esp + 0x80]
mov dword [esp + 0x68], eax
mov eax, ecx
shr eax, 8
movzx eax, al
sub eax, dword [esp + 0x5c]
shr ecx, 0x10
mov dword [esp + 0x84], eax
lea eax, [edi + edi*4]
mov edi, dword [esp + 0x28]
lea edx, [edx + eax*4]
movzx ecx, cl
sub ecx, dword [esp + 0x20]
mov dword [esp + 0xc0], ecx
cmp edx, edi
jae 0x1005964b
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x68]
nop word [eax + eax]
movss xmm0, dword [edx]
movss xmm1, dword [edx + 4]
subss xmm0, xmm5
subss xmm1, xmm6
mulss xmm0, xmm3
mulss xmm1, xmm4
addss xmm1, xmm0
xorps xmm0, xmm0
mulss xmm1, xmm7
comiss xmm0, xmm1
jbe 0x100595ae
xorps xmm2, xmm2
jmp 0x100595b2
minss xmm2, xmm1
movd xmm1, ecx
movaps xmm0, xmm2
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm1
movd xmm1, dword [esp + 0x20]
cvtdq2ps xmm1, xmm1
addss xmm0, xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
cvttss2si ecx, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm1
shl ecx, 8
movd xmm1, dword [esp + 0x5c]
cvtdq2ps xmm1, xmm1
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
or ecx, eax
shl ecx, 8
mulss xmm2, xmm0
movd xmm0, dword [esp + 0x80]
cvtdq2ps xmm0, xmm0
addss xmm2, xmm0
cvttss2si eax, xmm2
movss xmm2, dword [0x10109bb4]
or ecx, eax
mov eax, dword [edx + 0x10]
and eax, 0xff000000
or ecx, eax
mov eax, dword [esp + 0x84]
mov dword [edx + 0x10], ecx
add edx, 0x14
mov ecx, dword [esp + 0xc0]
cmp edx, edi
jb 0x10059580
mov esi, dword [esp + 0x60]
movss xmm5, dword [esp + 0xd4]
inc esi
movss xmm3, dword [esp + 0xe0]
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0x60], esi
cmp esi, 6
jl 0x10059374
movss xmm0, dword [esp + 0x14]
addss xmm0, xmm0
mulss xmm0, dword [0x10109c10]
movss dword [esp + 0x14], xmm0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0x14]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x4c], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cmp byte [esp + 0x13], 0
xorps xmm2, xmm2
movss xmm3, dword [esp + 0x78]
addss xmm3, dword [esp + 0x94]
cvtsd2ss xmm2, xmm0
movss xmm0, dword [esp + 0x4c]
mulss xmm0, xmm3
movss xmm1, dword [esp + 0x7c]
movss dword [esp + 0x28], xmm2
mulss xmm0, dword [0x10109b70]
addss xmm0, dword [esp + 0xa8]
movss dword [esp + 0x50], xmm0
movaps xmm0, xmm2
mulss xmm0, xmm3
mulss xmm0, dword [0x10109b70]
addss xmm0, dword [esp + 0xb0]
movss dword [esp + 0x54], xmm0
je 0x1005971c
mulss xmm1, dword [0x10109b7c]
jmp 0x10059724
mulss xmm1, dword [0x10109b74]
movaps xmm0, xmm1
movss dword [esp + 0x7c], xmm1
divss xmm0, dword [0x10109bd0]
cvttss2si edi, xmm0
cmp edi, 9
jge 0x10059745
mov edi, 9
jmp 0x1005974f
mov eax, 0x20
cmp edi, eax
cmovg edi, eax
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x50]
push edi
push dword [esp + 0x70]
movaps xmm2, xmm1
mov ecx, esi
push eax
call fcn.10044d90
movss xmm2, dword [esp + 0x7c]
lea eax, [esp + 0x50]
addss xmm2, dword [0x10109bb4]
push ecx
mov dword [esp], 0x3f800000
mov ecx, esi
push edi
push dword [esp + 0x7c]
push eax
call fcn.10044c60
movss xmm2, dword [esp + 0x7c]
lea eax, [esp + 0x50]
push ecx
mov dword [esp], 0x3f800000
mov ecx, esi
push edi
mov edi, dword [esp + 0x6c]
push edi
push eax
call fcn.10044c60
movss xmm3, dword [esp + 0x4c]
xorps xmm1, xmm1
movss xmm5, dword [esp + 0x28]
movaps xmm2, xmm3
mulss xmm2, dword [esp + 0x38]
movaps xmm0, xmm5
mov eax, dword [0x1011138c]
movss xmm6, dword [esp + 0xa8]
movaps xmm4, xmm3
mulss xmm0, xmm1
push 6
movss xmm7, dword [esp + 0xb4]
mulss xmm4, dword [esp + 0xbc]
push 6
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, dword [esp + 0xc0]
addss xmm2, xmm6
movss dword [esp + 0x28], xmm2
movss dword [esp + 0xf0], xmm2
movaps xmm2, xmm5
mulss xmm2, dword [esp + 0x40]
addss xmm2, xmm0
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x98]
mulss xmm5, dword [esp + 0xb4]
addss xmm2, xmm7
movss dword [esp + 0x9c], xmm2
movss dword [esp + 0xf4], xmm2
movaps xmm2, xmm4
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0x98]
subss xmm4, xmm5
mulss xmm3, dword [esp + 0xb4]
addss xmm0, xmm1
addss xmm4, xmm6
addss xmm3, xmm1
addss xmm2, xmm6
addss xmm0, xmm7
movss dword [esp + 0x64], xmm4
addss xmm3, xmm7
movss dword [esp + 0x100], xmm4
movss dword [esp + 0x40], xmm2
movss dword [esp + 0x44], xmm0
movss xmm0, dword [eax + 0x1938]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [eax + 0x193c]
movss dword [esp + 0x54], xmm3
movss dword [esp + 0x104], xmm3
movss dword [esp + 0x70], xmm0
mov ecx, esi
call fcn.10042580
mov ecx, dword [esi + 0x38]
mov ax, word [esi + 0x28]
movss xmm2, dword [esp + 0x20]
movss xmm3, dword [esp + 0x94]
mov word [ecx], ax
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
movss xmm0, dword [esp + 0x28]
movss xmm1, dword [esp + 0x68]
movss dword [eax], xmm2
movss dword [eax + 4], xmm3
mov eax, dword [esi + 0x34]
mov edx, dword [esp + 0x6c]
movss xmm5, dword [esp + 0x38]
movss xmm4, dword [esp + 0x3c]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
movss xmm7, dword [esp + 0x5c]
movss xmm6, dword [esp + 0x4c]
mov dword [eax + 0x10], edx
add dword [esi + 0x34], 0x14
inc dword [esi + 0x28]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x28]
mov word [eax], cx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
movss dword [eax], xmm5
movss dword [eax + 4], xmm4
mov eax, dword [esi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], edx
add dword [esi + 0x34], 0x14
mov eax, dword [esi + 0x38]
inc dword [esi + 0x28]
mov ecx, dword [esi + 0x28]
mov word [eax], cx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
movss dword [eax], xmm7
movss dword [eax + 4], xmm6
mov eax, dword [esi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], edi
add dword [esi + 0x34], 0x14
mov eax, dword [esi + 0x38]
inc dword [esi + 0x28]
mov ecx, dword [esi + 0x28]
mov word [eax], cx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
movss dword [eax], xmm2
movss dword [eax + 4], xmm3
mov eax, dword [esi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], 0
mov eax, dword [esi + 0x38]
add dword [esi + 0x34], 0x14
inc dword [esi + 0x28]
mov ecx, dword [esi + 0x28]
mov word [eax], cx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
mov ecx, dword [esp + 0x88]
movss dword [eax], xmm5
movss dword [eax + 4], xmm4
mov eax, dword [esi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], ecx
add dword [esi + 0x34], 0x14
mov eax, dword [esi + 0x38]
inc dword [esi + 0x28]
mov ecx, dword [esi + 0x28]
push ecx
mov word [eax], cx
mov ecx, esi
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
mov dword [esp], 0x3fc00000
push dword [esp + 0x78]
movss dword [eax], xmm7
movss dword [eax + 4], xmm6
mov eax, dword [esi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], 0
lea eax, [esp + 0x100]
add dword [esi + 0x34], 0x14
inc dword [esi + 0x28]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.10044a30
movss xmm1, dword [0x10109bb4]
xorps xmm0, xmm0
movaps xmm2, xmm1
subss xmm2, dword [esp + 0x48]
comiss xmm0, xmm2
jbe 0x10059a9a
xorps xmm3, xmm3
jmp 0x10059aa1
movaps xmm3, xmm1
minss xmm3, xmm2
movss xmm2, dword [esp + 0x34]
comiss xmm0, xmm2
jbe 0x10059ab1
xorps xmm1, xmm1
jmp 0x10059ab5
minss xmm1, xmm2
movss xmm0, dword [esp + 0x20]
subss xmm0, dword [esp + 0x5c]
movss xmm2, dword [esp + 0x38]
mov esi, dword [esp + 0x8c]
mulss xmm0, xmm1
addss xmm0, dword [esp + 0x5c]
subss xmm2, xmm0
mulss xmm2, xmm3
addss xmm2, xmm0
movss xmm0, dword [esp + 0x94]
subss xmm0, dword [esp + 0x4c]
movss dword [esp + 0x9c], xmm2
mulss xmm0, xmm1
movss xmm1, dword [esp + 0x3c]
addss xmm0, dword [esp + 0x4c]
subss xmm1, xmm0
mulss xmm1, xmm3
addss xmm1, xmm0
movss dword [esp + 0xa0], xmm1
jmp 0x10059e57
test eax, 0x2000000
je 0x10059e62
movss xmm0, dword [esp + 0x4c]
addss xmm0, dword [esp + 0x18]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
push ecx
push eax
push eax
movss dword [esp + 0x44], xmm0
lea eax, [esp + 0x44]
movss xmm0, dword [esp + 0x30]
addss xmm0, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x54]
push eax
lea eax, [esp + 0x64]
push eax
movss dword [esp + 0x54], xmm0
call fcn.100448b0
mov ecx, dword [esp + 0x88]
lea eax, [esp + 0xf8]
movss xmm0, dword [esp + 0x4c]
addss xmm0, dword [esp + 0x18]
push ecx
push ecx
mov ecx, dword [esp + 0x4c]
push 0
push 0
push eax
movss dword [esp + 0x10c], xmm0
lea eax, [esp + 0x64]
movss xmm0, dword [esp + 0x50]
push eax
movss dword [esp + 0x114], xmm0
call fcn.100448b0
movss xmm0, dword [esp + 0x4c]
addss xmm0, dword [esp + 0x18]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x2c], xmm0
xorps xmm0, xmm0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x5c]
push dword [esp + 0x5c]
call fcn.1002fb50
movss xmm2, dword [esp + 0x44]
xorps xmm0, xmm0
movss xmm1, dword [0x10109bb4]
add esp, 0x10
comiss xmm0, xmm2
jbe 0x10059c0f
xorps xmm3, xmm3
jmp 0x10059c16
movaps xmm3, xmm1
minss xmm3, xmm2
movss xmm4, dword [esp + 0x18]
movss xmm7, dword [esp + 0x4c]
movss xmm5, dword [0x10109b70]
movaps xmm2, xmm7
mulss xmm3, xmm4
movss xmm6, dword [0x10109bf0]
addss xmm2, xmm6
addss xmm3, xmm7
addss xmm3, xmm5
cvttss2si eax, xmm3
movd xmm3, eax
cvtdq2ps xmm3, xmm3
comiss xmm2, xmm3
ja 0x10059c64
movaps xmm2, xmm7
addss xmm2, xmm4
subss xmm2, xmm6
minss xmm2, xmm3
movss dword [esp + 0x9c], xmm2
movaps xmm2, xmm1
subss xmm2, dword [esp + 0x48]
comiss xmm0, xmm2
jbe 0x10059c80
xorps xmm1, xmm1
jmp 0x10059c84
minss xmm1, xmm2
movss xmm2, dword [esp + 0x24]
mulss xmm1, xmm4
movaps xmm0, xmm2
addss xmm0, xmm6
addss xmm1, xmm2
addss xmm1, xmm5
cvttss2si eax, xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x10059cbb
movss xmm0, dword [esp + 0x3c]
subss xmm0, xmm6
minss xmm0, xmm1
movss xmm3, dword [esp + 0xb4]
movaps xmm1, xmm4
divss xmm1, dword [0x10109c24]
mov esi, dword [esp + 0x44]
xor ecx, ecx
movss dword [esp + 0xa0], xmm0
movaps xmm0, xmm3
addss xmm0, dword [esp + 0x58]
movss dword [esp + 0x28], xmm1
movss dword [esp + 0xe8], xmm3
movss dword [esp + 0xf8], xmm0
nop
mov eax, dword [esp + ecx*4 + 0x10c]
lea edi, [ecx + 1]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
push eax
push eax
lea eax, [esp + 0x100]
mulss xmm0, xmm1
addss xmm0, xmm2
movss dword [esp + 0x104], xmm0
movd xmm0, ecx
mov ecx, dword [esp + ecx*4 + 0x110]
cvtdq2ps xmm0, xmm0
push ecx
push ecx
push eax
lea eax, [esp + 0xfc]
mov ecx, esi
push eax
mulss xmm0, xmm1
addss xmm0, xmm2
movss dword [esp + 0x104], xmm0
call fcn.100448b0
movss xmm1, dword [esp + 0x28]
mov ecx, edi
movss xmm2, dword [esp + 0x24]
cmp ecx, 6
jl 0x10059d00
movss xmm3, dword [esp + 0xb4]
movaps xmm0, xmm2
addss xmm0, dword [esp + 0x18]
movaps xmm1, xmm3
movss dword [esp + 0x3c], xmm2
addss xmm1, dword [esp + 0x58]
movss dword [esp + 0x38], xmm3
movss dword [esp + 0x54], xmm0
xorps xmm0, xmm0
push dword [esp + 0x54]
movss dword [esp + 0x54], xmm1
push dword [esp + 0x54]
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.1002fb50
mov esi, dword [esp + 0x9c]
movss xmm1, dword [esp + 0x68]
addss xmm1, dword [0x10109bf0]
mov ecx, dword [esp + 0x54]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
movaps xmm0, xmm2
movss dword [esp + 0x64], xmm2
addss xmm0, dword [0x10109bb4]
movss xmm2, dword [esp + 0xc4]
push dword [esp + 0x64]
subss xmm2, dword [0x10109bb4]
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esp + 0x28]
mulss xmm0, dword [esp + 0x2c]
push dword [esp + 0x64]
movss dword [esp + 0x50], xmm2
addss xmm0, dword [esp + 0x3c]
addss xmm0, dword [0x10109b70]
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [esp + 0x34]
cvtdq2ps xmm0, xmm0
movss xmm2, dword [eax + 0x1518]
movss dword [esp + 0x54], xmm0
push dword [esp + 0x54]
push dword [esp + 0x54]
call fcn.10057990
add esp, 0x20
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0xa4]
cmp byte [esp + 0xb], 0
je 0x10059e7c
movss xmm0, dword [0x10109c34]
movss dword [esp + 0xdc], xmm0
jmp 0x10059e84
movss xmm0, dword [0x10109c24]
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x9c]
push 0xc
push edx
push eax
movaps xmm2, xmm0
call fcn.10044d90
movss xmm2, dword [esp + 0xdc]
lea eax, [esp + 0x9c]
addss xmm2, dword [0x10109bb4]
push ecx
mov ecx, dword [esp + 0x48]
mov dword [esp], 0x3f800000
push 0xc
push dword [esp + 0x7c]
push eax
call fcn.10044c60
movss xmm2, dword [esp + 0xdc]
lea eax, [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x48]
mov dword [esp], 0x3f800000
push 0xc
push dword [esp + 0x6c]
push eax
call fcn.10044c60
cmp dword [esp + 0xc8], 0x10000
jne 0x1005a0a9
movss xmm2, dword [edi + 0xc]
xorps xmm1, xmm1
comiss xmm1, xmm2
jbe 0x10059f1c
movss dword [esp + 0x8c], xmm1
jmp 0x10059f31
movss xmm0, dword [0x10109bb4]
minss xmm0, xmm2
movss dword [esp + 0x8c], xmm0
movss xmm3, dword [esp + 0xbc]
xor edx, edx
movss xmm0, dword [esp + 0x24]
movaps xmm2, xmm3
addss xmm2, dword [esp + 0x58]
mov ecx, dword [esp + 0x44]
movss dword [esp + 0xfc], xmm0
addss xmm0, dword [esp + 0x18]
mov dword [esp + 0x54], 0
push dword [esp + 0x54]
mov dword [esp + 0x54], 0
push dword [esp + 0x54]
movss dword [esp + 0x108], xmm2
subss xmm2, xmm3
movss dword [esp + 0x10c], xmm0
push dword [esp + 0x10c]
movss dword [esp + 0x104], xmm3
xorps xmm3, xmm3
push dword [esp + 0x10c]
mov edi, dword [esp + 0x108]
push dword [esp + 0x10c]
mulss xmm2, dword [0x10109b70]
push edi
push 0
call fcn.10047f50
mov ecx, dword [esp + 0x8c]
add esp, 0x1c
mov eax, ecx
and eax, 0xffffff
push eax
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x10c]
push eax
call fcn.100448b0
push dword [esp + 0x104]
xorps xmm0, xmm0
push dword [esp + 0x104]
push dword [esp + 0x104]
push edi
call fcn.1002fb50
movss xmm1, dword [0x10109bb4]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mov ecx, dword [esp + 0x54]
movaps xmm0, xmm2
movss dword [esp + 0x64], xmm2
movss xmm2, dword [esp + 0xcc]
addss xmm0, xmm1
subss xmm2, xmm1
subss xmm1, dword [esp + 0x9c]
push dword [esp + 0x64]
movss dword [esp + 0x64], xmm0
push dword [esp + 0x64]
mulss xmm1, dword [esp + 0x30]
movss dword [esp + 0x50], xmm2
addss xmm1, dword [esp + 0x3c]
addss xmm1, dword [0x10109b70]
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x70]
addss xmm1, dword [0x10109bf0]
movd xmm0, eax
mov eax, dword [esp + 0x34]
cvtdq2ps xmm0, xmm0
movss xmm2, dword [eax + 0x1518]
movss dword [esp + 0x54], xmm0
push dword [esp + 0x54]
push dword [esp + 0x54]
call fcn.10057990
add esp, 0x20
call fcn.1003abb0
cmp byte [esp + 9], 0
mov edi, dword [0x1011138c]
je 0x1005a13f
mov ecx, dword [esp + 0xa4]
lea esi, [esp + 0x124]
xor edx, edx
cmp dword [esp + 0x98], edx
sete dl
lea edx, [edx*4 + 0xc]
sub edx, 4
jb 0x1005a0f6
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x1005a0fb
add esi, 4
add ecx, 4
sub edx, 4
jae 0x1005a0e5
cmp edx, 0xfffffffc
je 0x1005a13a
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x1005a128
cmp edx, 0xfffffffd
je 0x1005a13a
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x1005a128
cmp edx, 0xfffffffe
je 0x1005a13a
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x1005a128
cmp edx, 0xffffffff
je 0x1005a13a
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
je 0x1005a13a
or dword [edi + 0x1c40], 4
mov word [edi + 0x1be0], 0x101
jmp 0x1005a13f
mov byte [esp + 9], 0
mov ecx, dword [edi + 0x1b9c]
mov al, byte [esp + 9]
pop edi
pop esi
dec dword [ecx + 0xc4]
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.100c100d
mov esp, ebp
pop ebp
ret