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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x168
mov eax, dword [0x1008c00c]
xor eax, esp
mov dword [esp + 0x164], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [0x10090d48]
mov esi, edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0xa0], ecx
mov eax, dword [edi + 0x3e28]
mov dword [esp + 0xd4], edi
mov byte [eax + 0xa8], 1
mov eax, dword [edi + 0x3e28]
mov dword [esp + 0xec], eax
cmp byte [eax + 0xab], 0
je 0x1005a68d
xor al, al
jmp 0x1005c71c
mov eax, dword [eax + 0x260]
mov dword [esp + 0x44], eax
call fcn.10010350
mov ecx, dword [esp + 0xa0]
and dword [edi + 0x4688], 0
movss dword [esp + 0xc4], xmm0
call fcn.1000dd0d
call fcn.10010545
mov eax, dword [ebp + 8]
mov edx, eax
or edx, 0x10
and eax, 0x100
cmovne edx, dword [ebp + 8]
mov dword [esp + 0xf0], edx
test dl, 8
jne 0x1005a6e8
mov ecx, esi
call fcn.1005d370
mov edx, dword [esp + 0xf0]
mov ecx, 0x6000000
mov esi, 0xa900000
test ecx, edx
jne 0x1005a70d
mov eax, dword [edi + 0x5944]
test ecx, eax
mov ecx, esi
cmovne ecx, eax
and ecx, 0x6000000
or ecx, edx
jmp 0x1005a70f
mov ecx, edx
mov edx, 0x18000000
mov dword [esp + 0xc], ecx
test edx, ecx
jne 0x1005a72f
mov eax, dword [edi + 0x5944]
test edx, eax
cmovne esi, eax
and esi, edx
or ecx, esi
mov dword [esp + 0xc], ecx
mov esi, 0x10000
test cl, 8
jne 0x1005a747
mov eax, dword [edi + 0x5944]
and eax, esi
or ecx, eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xec]
mov edx, ecx
movss xmm4, dword [edi + 0x37ec]
and ecx, 0x10002
movss xmm3, dword [esp + 0xc4]
and edx, 2
push 0x10
movss xmm0, dword [eax + 0xf0]
movss xmm5, dword [eax + 0xec]
mov eax, dword [0x10090d48]
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x50], xmm0
movaps xmm0, xmm4
mov dword [esp + 0x100], ecx
movss xmm2, dword [eax + 0x37d8]
addss xmm2, xmm2
mov dword [esp + 0xe0], edx
movss dword [esp + 0x4c], xmm5
movss dword [esp + 0x84], xmm4
addss xmm2, dword [eax + 0x3bb4]
xor eax, eax
cmp ecx, esi
sete al
inc eax
test edx, edx
addss xmm0, xmm2
movss dword [esp + 0x80], xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
pop eax
push 0xc
pop ecx
cmovne eax, ecx
mov ecx, dword [esp + 0x14]
push eax
mulss xmm1, xmm0
movaps xmm0, xmm2
mov dword [esp + 0xf4], eax
lea eax, [esp + 0x160]
push ecx
push eax
subss xmm3, xmm1
movaps xmm1, xmm5
maxss xmm0, xmm3
addss xmm1, xmm0
movss dword [esp + 0x34], xmm0
movaps xmm0, xmm1
movss dword [esp + 0xe4], xmm1
addss xmm0, xmm4
movss dword [esp + 0xb4], xmm0
addss xmm0, xmm2
movss dword [esp + 0x104], xmm0
addss xmm0, xmm4
movss dword [esp + 0x100], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x10088488]
cvttss2si esi, xmm0
mov dword [esp + 0xf8], esi
call sub.VCRUNTIME140.dll_memcpy
movss xmm0, dword [esp + 0x34]
add esp, 0xc
movaps xmm3, xmm0
movaps xmm2, xmm0
mulss xmm2, dword [0x10088470]
mulss xmm3, dword [0x100884b0]
movss dword [esp + 0xc4], xmm2
movaps xmm4, xmm3
movss dword [esp + 0xac], xmm3
subss xmm4, xmm2
movaps xmm1, xmm3
addss xmm1, dword [esp + 0x2c]
movaps xmm2, xmm0
mulss xmm0, dword [0x10088460]
addss xmm2, dword [esp + 0x7c]
movss dword [esp + 0xcc], xmm4
movss dword [esp + 0xc0], xmm1
movss dword [esp + 0x130], xmm1
mulss xmm2, dword [0x100884b0]
addss xmm2, dword [esp + 0x48]
movss dword [esp + 0xc8], xmm2
movss dword [esp + 0x12c], xmm2
cvttss2si eax, xmm0
and dword [esp + 0x3c], 0
movaps xmm1, xmm4
movd xmm0, eax
mov eax, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
lea ecx, [eax + 4]
mov dword [esp + 0x68], ecx
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [esp + 0x38], xmm1
mulss xmm0, dword [0x10088710]
movaps xmm2, xmm1
mulss xmm2, dword [0x1008871c]
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x88], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x100884e8]
movss xmm1, dword [ecx]
movss dword [esp + 0xe0], xmm2
movaps xmm4, xmm1
movss dword [esp + 0xd0], xmm0
movss dword [esp + 0x8c], xmm0
movss xmm0, dword [eax]
add eax, 8
movss dword [esp + 0x24], xmm2
movaps xmm3, xmm0
mov dword [esp + 0x6c], eax
movss dword [esp + 0x18], xmm0
movss xmm2, dword [eax]
mov eax, dword [esp + 0xc]
movaps xmm5, xmm2
mov ecx, eax
movss dword [esp + 0x5c], xmm0
and ecx, 0x8000000
movss dword [esp + 0x30], xmm1
movss dword [esp + 0xb4], xmm1
movss dword [esp + 0x40], xmm2
movss dword [esp + 0xb0], xmm2
movss dword [esp + 0x98], xmm3
movss dword [esp + 0xa4], xmm3
movss dword [esp + 0x9c], xmm4
movss dword [esp + 0x74], xmm4
movss dword [esp + 0x78], xmm5
movss dword [esp + 0x70], xmm5
mov dword [esp + 0x64], ecx
je 0x1005aa4e
lea eax, [esp + 0xb0]
push eax
lea edx, [esp + 0xb8]
lea ecx, [esp + 0x60]
call fcn.100036b2
add esp, 4
lea eax, [esp + 0xb0]
push eax
mov eax, edx
mov edx, ecx
mov ecx, dword [esp + 0x18]
push eax
call fcn.1005972c
movss xmm0, dword [esp + 0x64]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0xbc]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0xb8]
pop ecx
movss dword [esp + 0x44], xmm0
jmp 0x1005aa97
test eax, 0x10000000
je 0x1005aa98
lea eax, [esp + 0x70]
push eax
lea edx, [esp + 0x78]
lea ecx, [esp + 0xa8]
call fcn.10003750
movss xmm0, dword [esp + 0xa8]
movss dword [esp + 0x9c], xmm0
movss xmm0, dword [esp + 0x78]
movss dword [esp + 0xa0], xmm0
movss xmm0, dword [esp + 0x74]
movss dword [esp + 0x7c], xmm0
pop ecx
xor eax, eax
mov dl, 1
push 8
pop ecx
mov byte [esp + 0x1c], al
mov byte [esp + 0x11], al
mov byte [esp + 0x12], al
call fcn.1000d48c
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 0x4000000
mov dword [esp + 0x84], ecx
je 0x1005b04a
movss xmm1, dword [esp + 0x28]
lea edx, [esp + 0x50]
movss xmm0, dword [edi + 0x37ec]
mov ecx, 0x10087cd4
addss xmm0, xmm1
movss dword [esp + 0x54], xmm1
push 0
addss xmm0, dword [esp + 0x80]
movss dword [esp + 0x54], xmm0
call fcn.1004ef63
pop ecx
call fcn.1000890d
test al, al
je 0x1005af84
movss xmm0, dword [edi + 0x36a8]
subss xmm0, dword [esp + 0xc0]
movss xmm1, dword [edi + 0x36a4]
movss xmm3, dword [esp + 0xc8]
movss xmm2, dword [edi + 0xdb8]
subss xmm1, xmm3
movss xmm4, dword [edi + 0xdbc]
subss xmm2, xmm3
subss xmm4, dword [esp + 0xc0]
movaps xmm3, xmm0
movss dword [esp + 0x104], xmm0
mulss xmm3, xmm0
movaps xmm0, xmm1
movss dword [esp + 0x60], xmm1
mulss xmm0, xmm1
movss xmm1, dword [0x10088500]
movss dword [esp + 0x10c], xmm2
addss xmm3, xmm0
movss dword [esp + 0x108], xmm4
movss xmm0, dword [esp + 0xcc]
subss xmm0, xmm1
mulss xmm0, xmm0
comiss xmm3, xmm0
jb 0x1005ac2a
movss xmm0, dword [esp + 0xac]
addss xmm0, xmm1
mulss xmm0, xmm0
comiss xmm0, xmm3
jb 0x1005ac2a
cvtps2pd xmm0, xmm4
movsd qword [esp + 0x50], xmm0
fld qword [esp + 0x50]
cvtps2pd xmm0, xmm2
movsd qword [esp + 0x50], xmm0
fld qword [esp + 0x50]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [esp + 0x50]
movsd xmm0, qword [esp + 0x50]
xorps xmm2, xmm2
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x100885a8]
mulss xmm0, dword [0x100884b0]
comiss xmm2, xmm0
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x5c], xmm0
jbe 0x1005ac21
addss xmm0, dword [0x10088500]
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x5c], xmm0
xor eax, eax
inc eax
mov dword [esp + 0x1c], eax
jmp 0x1005ac34
mov eax, dword [esp + 0x1c]
movss xmm0, dword [esp + 0x18]
mulss xmm0, dword [0x10088730]
mov byte [esp + 0x11], al
mulss xmm0, dword [0x100885a8]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x50], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x100], xmm0
movsd xmm0, qword [esp + 0x50]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm5, dword [esp + 0x60]
xorps xmm2, xmm2
movss xmm1, dword [esp + 0x104]
movaps xmm6, xmm5
movss xmm4, dword [esp + 0x100]
cvtsd2ss xmm2, xmm0
movaps xmm0, xmm1
mulss xmm6, xmm4
mulss xmm0, xmm2
mulss xmm1, xmm4
subss xmm6, xmm0
mulss xmm5, xmm2
movss xmm0, dword [esp + 0xe0]
subss xmm0, dword [esp + 0xd0]
addss xmm5, xmm1
movss xmm7, dword [esp + 0x38]
movss xmm1, dword [esp + 0x20]
movaps xmm3, xmm1
movss dword [esp + 0x13c], xmm2
subss xmm3, xmm1
movaps xmm2, xmm6
movss dword [esp + 0x104], xmm0
subss xmm2, xmm1
movaps xmm1, xmm0
movaps xmm0, xmm5
subss xmm0, dword [esp + 0xd0]
subss xmm7, dword [esp + 0x20]
movss dword [esp + 0x100], xmm3
mulss xmm1, xmm2
mulss xmm0, xmm3
xorps xmm3, xmm3
movss dword [esp + 0xe4], xmm7
subss xmm1, xmm0
xorps xmm0, xmm0
subss xmm0, dword [esp + 0xe0]
comiss xmm3, xmm1
movaps xmm1, xmm0
movss dword [esp + 0xb8], xmm0
movaps xmm0, xmm5
mulss xmm1, xmm2
seta cl
subss xmm0, dword [esp + 0xe0]
mulss xmm0, xmm7
subss xmm1, xmm0
comiss xmm3, xmm1
seta al
cmp al, cl
jne 0x1005af7c
movss xmm0, dword [esp + 0xd0]
subss xmm5, xmm3
movss xmm7, dword [esp + 0x20]
subss xmm0, xmm3
subss xmm7, dword [esp + 0x38]
subss xmm6, dword [esp + 0x38]
movss dword [esp + 0x60], xmm0
mulss xmm5, xmm7
mulss xmm6, xmm0
movss dword [esp + 0x50], xmm7
subss xmm6, xmm5
comiss xmm3, xmm6
seta al
cmp cl, al
jne 0x1005af7c
movss xmm1, dword [esp + 0x10c]
movss xmm6, dword [esp + 0x13c]
movaps xmm5, xmm1
movss xmm0, dword [esp + 0x108]
mulss xmm0, xmm6
mulss xmm5, xmm4
mulss xmm4, dword [esp + 0x108]
subss xmm5, xmm0
mulss xmm1, xmm6
addss xmm4, xmm1
movaps xmm2, xmm5
movss dword [esp + 0x13c], xmm5
subss xmm2, dword [esp + 0x20]
movaps xmm0, xmm4
movss dword [esp + 0x140], xmm4
subss xmm0, dword [esp + 0xd0]
movaps xmm1, xmm2
mulss xmm2, dword [esp + 0xb8]
mulss xmm1, dword [esp + 0x104]
mulss xmm0, dword [esp + 0x100]
subss xmm1, xmm0
movaps xmm0, xmm4
subss xmm0, dword [esp + 0xe0]
comiss xmm3, xmm1
mulss xmm0, dword [esp + 0xe4]
seta cl
subss xmm2, xmm0
comiss xmm3, xmm2
seta al
cmp al, cl
jne 0x1005ae85
movss xmm6, dword [esp + 0x60]
movaps xmm1, xmm5
subss xmm1, dword [esp + 0x38]
movaps xmm0, xmm4
subss xmm0, xmm3
mulss xmm1, xmm6
mulss xmm0, xmm7
subss xmm1, xmm0
comiss xmm3, xmm1
seta al
cmp cl, al
je 0x1005aec5
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0xf0]
call fcn.10002c93
movss xmm7, dword [esp + 0x5c]
add esp, 0xc
movss xmm6, dword [esp + 0x60]
xorps xmm3, xmm3
movss xmm5, dword [eax]
movss xmm4, dword [eax + 4]
movss xmm2, dword [esp + 0xe0]
subss xmm4, xmm3
subss xmm5, dword [esp + 0x38]
subss xmm2, xmm3
movaps xmm0, xmm7
movaps xmm1, xmm7
movss xmm3, dword [0x10088500]
mulss xmm1, xmm6
mulss xmm4, xmm7
mulss xmm0, xmm2
subss xmm1, xmm0
movaps xmm0, xmm5
mulss xmm0, xmm6
movaps xmm6, xmm3
mulss xmm5, xmm2
subss xmm0, xmm4
subss xmm4, xmm5
divss xmm0, xmm1
divss xmm4, xmm1
subss xmm6, xmm0
movss xmm0, dword [0x10088448]
movss dword [esp + 0x30], xmm0
comiss xmm0, xmm6
movaps xmm2, xmm6
subss xmm2, xmm4
jbe 0x1005af3b
movaps xmm1, xmm0
jmp 0x1005af42
movaps xmm1, xmm3
minss xmm1, xmm6
divss xmm2, xmm1
movss dword [esp + 0x40], xmm1
comiss xmm0, xmm2
movss dword [esp + 0xb0], xmm1
ja 0x1005af67
movaps xmm0, xmm3
minss xmm0, xmm2
movss dword [esp + 0x30], xmm0
movss dword [esp + 0xb4], xmm0
mov byte [esp + 0x12], 1
mov byte [esp + 0x1c], 1
jmp 0x1005af84
mov al, byte [esp + 0x1c]
mov byte [esp + 0x11], al
test byte [esp + 0xc], 8
jne 0x1005af95
mov ecx, str.context
call fcn.10011772
movss xmm5, dword [esp + 0x2c]
movss xmm1, dword [esp + 0x28]
cmp dword [esp + 0xfc], 0x10000
jne 0x1005b27c
movss xmm0, dword [esp + 0xf4]
lea ecx, [esp + 0x88]
movss dword [esp + 0x88], xmm0
movss dword [esp + 0x8c], xmm5
call fcn.1001002e
movss xmm0, dword [esp + 0x7c]
lea edx, [esp + 0x88]
push 0
mov ecx, str.alpha
movss dword [esp + 0x8c], xmm0
movss dword [esp + 0x90], xmm1
call fcn.1004ef63
pop ecx
call fcn.1000890d
test al, al
je 0x1005b27c
movss xmm3, dword [edi + 0xdbc]
xorps xmm2, xmm2
movss xmm0, dword [esp + 0x28]
movss xmm1, dword [0x10088500]
subss xmm3, dword [esp + 0x2c]
subss xmm0, xmm1
divss xmm3, xmm0
comiss xmm2, xmm3
jbe 0x1005b260
xorps xmm4, xmm4
jmp 0x1005b267
test eax, 0x2000000
je 0x1005af95
movss xmm0, dword [esp + 0x28]
lea edx, [esp + 0x88]
push 0
mov ecx, 0x10087cd8
movss dword [esp + 0x8c], xmm0
movss dword [esp + 0x90], xmm0
call fcn.1004ef63
pop ecx
call fcn.1000890d
test al, al
je 0x1005b171
movss xmm4, dword [esp + 0x28]
xorps xmm1, xmm1
movss xmm0, dword [0x10088500]
movss xmm3, dword [edi + 0xdb8]
subss xmm4, xmm0
subss xmm3, dword [esp + 0x48]
divss xmm3, xmm4
comiss xmm1, xmm3
jbe 0x1005b0bf
xorps xmm2, xmm2
jmp 0x1005b0c6
movaps xmm2, xmm0
minss xmm2, xmm3
movss dword [esp + 0x30], xmm2
movss dword [esp + 0xb4], xmm2
movss xmm2, dword [edi + 0xdbc]
subss xmm2, dword [esp + 0x2c]
divss xmm2, xmm4
comiss xmm1, xmm2
ja 0x1005b0f3
movaps xmm1, xmm0
minss xmm1, xmm2
mov eax, dword [esp + 0x14]
subss xmm0, xmm1
and dword [esp + 0x94], 0
lea ecx, [esp + 0x88]
movss dword [esp + 0x40], xmm0
movss dword [esp + 0xb0], xmm0
movss xmm0, dword [eax]
mov eax, dword [esp + 0x68]
movss dword [esp + 0x88], xmm0
movss xmm0, dword [eax]
mov eax, dword [esp + 0x6c]
movss dword [esp + 0x8c], xmm0
movss xmm0, dword [eax]
movss dword [esp + 0x90], xmm0
call fcn.10003612
cmp dword [edi + 0x5950], eax
jne 0x1005b169
movss xmm0, dword [edi + 0x5948]
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x5c], xmm0
mov al, 1
mov dword [esp + 0x1c], eax
jmp 0x1005b175
mov eax, dword [esp + 0x1c]
test byte [esp + 0xc], 8
mov byte [esp + 0x13], al
jne 0x1005b18a
mov ecx, str.context
call fcn.10011772
movss xmm0, dword [esp + 0xa8]
lea ecx, [esp + 0x88]
movss dword [esp + 0x88], xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x8c], xmm0
call fcn.1001002e
movss xmm0, dword [esp + 0x7c]
lea edx, [esp + 0x88]
movss dword [esp + 0x88], xmm0
mov ecx, 0x10087cdc
movss xmm0, dword [esp + 0x28]
push 0
movss dword [esp + 0x90], xmm0
call fcn.1004ef63
mov dl, byte [esp + 0x20]
pop ecx
mov byte [esp + 0x12], dl
call fcn.1000890d
test al, al
je 0x1005af95
movss xmm1, dword [esp + 0x28]
xorps xmm2, xmm2
movss xmm4, dword [edi + 0xdbc]
movaps xmm0, xmm1
movss xmm5, dword [esp + 0x2c]
movss xmm3, dword [0x10088500]
subss xmm4, xmm5
subss xmm0, xmm3
divss xmm4, xmm0
comiss xmm2, xmm4
jbe 0x1005b236
xorps xmm0, xmm0
jmp 0x1005b23d
movaps xmm0, xmm3
minss xmm0, xmm4
mov al, byte [esp + 0x13]
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x5c], xmm0
mov byte [esp + 0x11], 1
mov byte [esp + 0x1c], 1
mov byte [esp + 0x12], al
jmp 0x1005afa1
movaps xmm4, xmm1
minss xmm4, xmm3
mov eax, dword [esp + 0x14]
movaps xmm0, xmm1
subss xmm0, xmm4
mov byte [esp + 0x1c], 1
movss dword [eax + 0xc], xmm0
call fcn.1000d4c4
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 0x100
mov dword [esp + 0x60], ecx
jne 0x1005b2ac
movss xmm1, dword [edi + 0x37ec]
xorps xmm0, xmm0
call fcn.1000ff81
call fcn.10010545
mov eax, dword [esp + 0xc]
and eax, 0x80
mov dword [esp + 0xe4], eax
jne 0x1005b300
mov ecx, dword [esp + 0xa0]
xor edx, edx
call fcn.10004d13
mov dword [esp + 0x50], eax
cmp dword [esp + 0xa0], eax
je 0x1005b300
cmp dword [esp + 0x60], edx
je 0x1005b2ef
movss xmm1, dword [edi + 0x37ec]
xorps xmm0, xmm0
call fcn.1000ff81
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0xa0]
mov edx, eax
push 0
call fcn.1004dc8a
pop ecx
cmp dword [esp + 0x60], 0
jne 0x1005b4b6
push 0x10
mov dl, 1
pop ecx
call fcn.1000d48c
cmp dword [esp + 0xdc], 0
mov eax, dword [esp + 0x14]
je 0x1005b32d
movss xmm1, dword [0x10088500]
jmp 0x1005b332
movss xmm1, dword [eax + 0xc]
cmp dword [esp + 0xe4], 0
movss xmm0, dword [eax]
mov eax, dword [esp + 0x68]
movss dword [esp + 0x13c], xmm0
movss dword [esp + 0x148], xmm1
movss xmm0, dword [eax]
mov eax, dword [esp + 0x6c]
movss dword [esp + 0x140], xmm0
movss xmm0, dword [eax]
movss dword [esp + 0x144], xmm0
je 0x1005b37f
push str.Current
call fcn.1004e10e
pop ecx
movss xmm0, dword [esp + 0x7c]
lea ecx, [esp + 0x88]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x13c]
movaps xmm1, xmm0
and eax, 0x180e0040
mulss xmm1, dword [0x100885a4]
push ecx
push eax
mov ecx, str.current
mov dword [esp + 0xc0], eax
movss dword [esp + 0x58], xmm1
movss dword [esp + 0x90], xmm1
movaps xmm1, xmm0
addss xmm1, xmm0
movss dword [esp + 0xec], xmm1
movss dword [esp + 0x94], xmm1
call fcn.1005c730
cmp dword [esp + 0x3c], 0
pop ecx
pop ecx
je 0x1005b4ac
push str.Original
call fcn.1004e10e
cmp dword [esp + 0xe0], 0
mov eax, dword [esp + 0x38]
pop ecx
je 0x1005b412
movss xmm1, dword [0x10088500]
jmp 0x1005b417
movss xmm1, dword [eax + 0xc]
movss xmm0, dword [eax]
lea edx, [esp + 0x14c]
movss dword [esp + 0x14c], xmm0
mov ecx, str.original
movss xmm0, dword [eax + 4]
movss dword [esp + 0x150], xmm0
movss xmm0, dword [eax + 8]
lea eax, [esp + 0x88]
movss dword [esp + 0x154], xmm0
movss xmm0, dword [esp + 0x50]
push eax
push dword [esp + 0xbc]
movss dword [esp + 0x90], xmm0
movss xmm0, dword [esp + 0xec]
movss dword [esp + 0x160], xmm1
movss dword [esp + 0x94], xmm0
call fcn.1005c730
pop ecx
pop ecx
test al, al
je 0x1005b4ac
push dword [esp + 0xf0]
push dword [esp + 0x38]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + 0x1c], 1
call fcn.1000d4c4
call fcn.1001065e
cmp byte [esp + 0x11], 0
jne 0x1005b4c8
cmp byte [esp + 0x12], 0
je 0x1005b560
cmp dword [esp + 0x64], 0
je 0x1005b589
push dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
movss xmm2, dword [esp + 0x44]
movss xmm1, dword [esp + 0x34]
movss xmm0, dword [esp + 0x1c]
call fcn.10003750
movss xmm0, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
and dword [esp + 0x15c], 0
movss dword [edi + 0x5948], xmm0
movss xmm0, dword [esp + 0x34]
movss dword [edi + 0x594c], xmm0
movss xmm0, dword [eax]
mov eax, dword [esp + 0x6c]
movss dword [esp + 0x150], xmm0
pop ecx
lea ecx, [esp + 0x14c]
movss xmm0, dword [eax]
mov eax, dword [esp + 0x6c]
movss dword [esp + 0x150], xmm0
movss xmm0, dword [eax]
movss dword [esp + 0x154], xmm0
call fcn.10003612
mov dword [edi + 0x5950], eax
mov eax, dword [esp + 0xc]
mov byte [esp + 0x13], 0
test al, 0x20
jne 0x1005b772
cmp dword [esp + 0xfc], 0x10000
jne 0x1005b5ba
movss xmm0, dword [esp + 0xf8]
jmp 0x1005b5c3
mov eax, dword [esp + 0xc]
test eax, 0x10000000
je 0x1005b564
mov ecx, dword [esp + 0x14]
movss xmm0, dword [esp + 0x18]
movss dword [ecx], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [ecx + 4], xmm0
movss xmm0, dword [esp + 0x40]
movss dword [ecx + 8], xmm0
jmp 0x1005b564
movss xmm0, dword [esp + 0xd8]
movss xmm1, dword [esp + 0x80]
addss xmm1, xmm0
addss xmm1, dword [esp + 0x7c]
subss xmm1, dword [esp + 0x48]
movaps xmm0, xmm1
call fcn.100101d0
mov eax, dword [esp + 0xc]
mov edx, eax
mov ecx, eax
and edx, 0x198e001a
and ecx, 0x700000
mov dword [esp + 0xa0], edx
mov dword [esp + 0x34], ecx
test eax, 0x100000
jne 0x1005b60e
test ecx, ecx
jne 0x1005b672
or edx, 0x100004
mov eax, ecx
push edx
mov edx, dword [esp + 0x18]
mov ecx, str.rgb
mov dword [esp + 0x84], eax
mov dword [esp + 0x38], eax
call fcn.100597c6
pop ecx
test al, al
je 0x1005b663
cmp dword [edi + 0x3e74], 0
je 0x1005b64c
cmp byte [edi + 0x3e81], 0
mov byte [esp + 0x13], 1
je 0x1005b651
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0x80]
mov byte [esp + 0x1c], 1
mov dword [esp + 0x34], ecx
jmp 0x1005b667
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0xc]
test eax, 0x200000
jne 0x1005b67d
test ecx, ecx
jne 0x1005b69f
or edx, 0x200004
mov ecx, str.hsv
push edx
mov edx, dword [esp + 0x18]
call fcn.100597c6
or byte [esp + 0x20], al
mov eax, dword [esp + 0x10]
pop ecx
mov ecx, dword [esp + 0x34]
test eax, 0x400000
jne 0x1005b6aa
test ecx, ecx
jne 0x1005b6ca
mov eax, dword [esp + 0xa0]
mov ecx, str.hex
mov edx, dword [esp + 0x14]
or eax, 0x400004
push eax
call fcn.100597c6
or byte [esp + 0x20], al
pop ecx
call fcn.1001031a
cmp byte [esp + 0x13], 0
mov ecx, dword [esp + 0x64]
je 0x1005b848
test ecx, ecx
je 0x1005b848
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x54]
lea ecx, [esp + 0x84]
movss xmm2, dword [eax]
mov eax, dword [esp + 0x6c]
movss xmm1, dword [eax]
mov eax, dword [esp + 0x18]
movss xmm0, dword [eax]
call fcn.100036b2
xorps xmm1, xmm1
add esp, 4
comiss xmm1, dword [esp + 0x80]
jb 0x1005b76e
movss xmm0, dword [esp + 0x18]
comiss xmm0, xmm1
jbe 0x1005b76e
comiss xmm1, dword [esp + 0x34]
jb 0x1005b824
movss xmm2, dword [esp + 0x40]
ucomiss xmm2, dword [esp + 0x34]
lahf
test ah, 0x44
jnp 0x1005b824
mulss xmm2, dword [0x100884b0]
movss xmm1, dword [esp + 0x30]
push dword [esp + 0x6c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x6c]
call fcn.10003750
pop ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x64]
cmp byte [esp + 0x1c], 0
je 0x1005b8c5
test ecx, ecx
je 0x1005b851
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xb4]
lea ecx, [esp + 0x5c]
movss xmm7, dword [eax]
mov eax, dword [esp + 0x68]
movss dword [esp + 0x98], xmm7
movss xmm0, dword [eax]
mov eax, dword [esp + 0x6c]
movss dword [esp + 0x9c], xmm0
movss xmm1, dword [eax]
lea eax, [esp + 0xb0]
movaps xmm2, xmm1
movss dword [esp + 0x78], xmm1
movaps xmm1, xmm0
movaps xmm0, xmm7
push eax
call fcn.100036b2
add esp, 4
lea eax, [esp + 0xb0]
push eax
mov eax, edx
mov edx, ecx
mov ecx, dword [esp + 0x18]
push eax
call fcn.1005972c
movss xmm0, dword [esp + 0xbc]
movss xmm3, dword [esp + 0x64]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0xb8]
pop ecx
pop ecx
movss dword [esp + 0x18], xmm3
movss dword [esp + 0x40], xmm0
jmp 0x1005b8cb
comiss xmm1, dword [esp + 0x50]
jb 0x1005b76e
movss xmm1, dword [esp + 0x30]
mulss xmm1, dword [0x100884b0]
movss xmm2, dword [esp + 0x34]
jmp 0x1005b75c
mov eax, dword [esp + 0xc]
jmp 0x1005b776
test eax, 0x10000000
je 0x1005b8c5
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x74]
lea ecx, [esp + 0xa4]
movss xmm0, dword [eax]
mov eax, dword [esp + 0x68]
movss dword [esp + 0x18], xmm0
movss xmm1, dword [eax]
mov eax, dword [esp + 0x6c]
movss dword [esp + 0x30], xmm1
movss xmm2, dword [eax]
lea eax, [esp + 0x70]
push eax
movss dword [esp + 0x44], xmm2
call fcn.10003750
movss xmm0, dword [esp + 0xa8]
movss dword [esp + 0x9c], xmm0
movss xmm0, dword [esp + 0x78]
movss dword [esp + 0xa0], xmm0
movss xmm0, dword [esp + 0x74]
pop ecx
movss dword [esp + 0x78], xmm0
movss xmm3, dword [esp + 0x18]
movss xmm2, dword [edi + 0x3798]
xorps xmm0, xmm0
comiss xmm0, xmm2
movss xmm0, dword [0x10088500]
jbe 0x1005b8e8
xorps xmm1, xmm1
jmp 0x1005b8ef
movaps xmm1, xmm0
minss xmm1, xmm2
mulss xmm1, dword [0x10088694]
mov dword [esp + 0x88], 0x3f800000
movss dword [esp + 0x94], xmm2
movaps xmm2, xmm0
mov dword [esp + 0x8c], 0x3f800000
addss xmm1, dword [0x100884b0]
mov dword [esp + 0x90], 0x3f800000
cvttss2si edx, xmm1
movaps xmm1, xmm0
movaps xmm0, xmm3
shl edx, 0x18
mov eax, edx
mov dword [esp + 0x60], edx
or eax, 0xffffff
mov ecx, edx
mov dword [esp + 0x74], eax
or ecx, 0xff
mov eax, edx
mov dword [esp + 0x110], ecx
or eax, 0x808080
mov dword [esp + 0x128], ecx
mov dword [esp + 0xa4], eax
lea ecx, [esp + 0x88]
mov eax, edx
or eax, 0xffff
mov dword [esp + 0x114], eax
mov eax, edx
or eax, 0xff00
mov dword [esp + 0x118], eax
mov eax, edx
or eax, 0xffff00
mov dword [esp + 0x11c], eax
mov eax, edx
or eax, 0xff0000
mov dword [esp + 0x120], eax
mov eax, edx
or eax, 0xff00ff
lea edx, [esp + 0x8c]
mov dword [esp + 0x124], eax
lea eax, [esp + 0x90]
push eax
call fcn.10003750
pop ecx
lea ecx, [esp + 0x88]
call fcn.10003612
movss xmm0, dword [esp + 0x98]
lea ecx, [esp + 0x14c]
movss dword [esp + 0x14c], xmm0
movss xmm0, dword [esp + 0x9c]
movss dword [esp + 0x150], xmm0
movss xmm0, dword [esp + 0x78]
movss dword [esp + 0x154], xmm0
movss xmm0, dword [edi + 0x3798]
mov dword [esp + 0x70], eax
movss dword [esp + 0x158], xmm0
call fcn.10003612
and dword [esp + 0xb8], 0
and dword [esp + 0xbc], 0
cmp dword [esp + 0x84], 0
movss xmm2, dword [0x100885dc]
mov dword [esp + 0x98], eax
movss dword [esp + 0x9c], xmm2
je 0x1005c0e1
movss xmm4, dword [esp + 0xac]
cvttss2si eax, xmm4
push 0xc
pop ecx
mov esi, dword [esp + 0x44]
push 4
movss xmm3, dword [0x100884b0]
cdq
idiv ecx
movss xmm0, dword [esp + 0xd0]
divss xmm3, xmm4
mov ecx, eax
pop eax
cmp ecx, eax
cmovle ecx, eax
xor eax, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0xa8], eax
addss xmm0, xmm4
movss dword [esp + 0x84], xmm3
movaps xmm4, xmm0
movss dword [esp + 0xe4], xmm0
mulss xmm4, dword [0x100884b0]
movss dword [esp + 0x80], xmm4
movd xmm1, eax
lea eax, [esp + 0x12c]
cvtdq2ps xmm1, xmm1
mov edi, dword [esi + 0x18]
push ecx
push ecx
mov ecx, esi
movaps xmm0, xmm1
addss xmm1, dword [0x10088500]
divss xmm0, xmm2
divss xmm1, xmm2
addss xmm0, xmm0
movaps xmm2, xmm4
addss xmm1, xmm1
mulss xmm0, dword [0x100885a8]
mulss xmm1, dword [0x100885a8]
subss xmm0, xmm3
addss xmm1, xmm3
movaps xmm3, xmm0
movss dword [esp + 0xb4], xmm0
movss dword [esp], xmm1
push eax
movss dword [esp + 0xe8], xmm1
call fcn.1003b336
movss xmm0, dword [esp + 0xc4]
push ecx
movss dword [esp], xmm0
mov ecx, esi
push 0
push dword [esp + 0x7c]
push dword [esi + 0x54]
push dword [esi + 0x5c]
call fcn.10039f51
movss xmm0, dword [esp + 0xac]
and dword [esi + 0x54], 0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
mulss xmm1, dword [esp + 0xcc]
addss xmm1, dword [esp + 0xc8]
movss dword [esp + 0x13c], xmm1
movss xmm1, dword [esp + 0xac]
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 + 0xcc]
addss xmm0, dword [esp + 0xc0]
movss dword [esp + 0x140], xmm0
movss xmm0, dword [esp + 0xdc]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
mulss xmm1, dword [esp + 0xcc]
addss xmm1, dword [esp + 0xc8]
movss dword [esp + 0x48], xmm1
movss xmm1, dword [esp + 0xdc]
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
mov eax, dword [esp + 0xa8]
mov edx, edi
cvtsd2ss xmm0, xmm0
mov ecx, esi
mulss xmm0, dword [esp + 0xcc]
addss xmm0, dword [esp + 0xc0]
movss dword [esp + 0x4c], xmm0
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + eax*4 + 0x124]
push dword [esp + eax*4 + 0x124]
push dword [esi + 0x18]
call fcn.1003caf6
mov eax, dword [esp + 0xc4]
add esp, 0x1c
movss xmm2, dword [0x100885dc]
inc eax
mov dword [esp + 0xa8], eax
cmp eax, 6
movss xmm3, dword [esp + 0x84]
movss xmm4, dword [esp + 0x80]
mov ecx, dword [esp + 0x50]
jl 0x1005bad1
movss xmm0, dword [esp + 0x18]
mulss xmm0, dword [0x10088580]
mulss xmm0, dword [0x100885a8]
movss dword [esp + 0x18], xmm0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm3, dword [esp + 0x18]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0xac], xmm0
cvtps2pd xmm0, xmm3
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cmp byte [esp + 0x11], 0
xorps xmm3, xmm3
cvtsd2ss xmm3, xmm0
movss xmm0, dword [esp + 0xac]
mulss xmm0, dword [esp + 0xe4]
movss dword [esp + 0x84], xmm3
mulss xmm0, dword [0x100884b0]
addss xmm0, dword [esp + 0xc8]
movss dword [esp + 0x48], xmm0
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0xe4]
mulss xmm0, dword [0x100884b0]
addss xmm0, dword [esp + 0xc0]
movss dword [esp + 0x4c], xmm0
je 0x1005bd3e
movss xmm1, dword [0x100884c4]
jmp 0x1005bd46
movss xmm1, dword [0x100884b4]
mulss xmm1, dword [esp + 0xc4]
push 0x20
pop ecx
push 9
movaps xmm0, xmm1
movss dword [esp + 0xc8], xmm1
divss xmm0, dword [0x10088538]
movaps xmm2, xmm1
cvttss2si eax, xmm0
cmp eax, ecx
mov edi, eax
cmovg edi, ecx
pop ecx
cmp eax, ecx
lea eax, [esp + 0x48]
cmovl edi, ecx
mov ecx, esi
push edi
push dword [esp + 0x74]
push eax
call fcn.1003c482
movss xmm2, dword [esp + 0xc4]
lea eax, [esp + 0x48]
addss xmm2, dword [0x10088500]
push ecx
mov dword [esp], 0x3f800000
mov ecx, esi
push edi
push dword [esp + 0xac]
push eax
call fcn.1003c3cf
mov esi, dword [esp + 0x74]
lea eax, [esp + 0x48]
movss xmm2, dword [esp + 0xc4]
push ecx
mov dword [esp], 0x3f800000
push edi
mov edi, dword [esp + 0x4c]
mov ecx, edi
push esi
push eax
call fcn.1003c3cf
movss xmm4, dword [esp + 0x84]
xorps xmm2, xmm2
movss xmm3, dword [esp + 0xac]
movaps xmm0, xmm4
movss xmm5, dword [esp + 0xc8]
movaps xmm1, xmm3
mulss xmm1, dword [esp + 0x38]
mulss xmm0, xmm2
movss xmm6, dword [esp + 0x20]
movss xmm7, dword [esp + 0xe0]
subss xmm1, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm2
movss xmm2, dword [esp + 0xc0]
addss xmm1, xmm5
movss dword [esp + 0x84], xmm1
movss dword [esp + 0x13c], xmm1
movaps xmm1, xmm4
mulss xmm1, dword [esp + 0x38]
addss xmm1, xmm0
movaps xmm0, xmm7
mulss xmm0, xmm4
mulss xmm7, xmm3
addss xmm1, xmm2
movss dword [esp + 0x50], xmm1
movss dword [esp + 0x140], xmm1
movaps xmm1, xmm6
mulss xmm1, xmm3
subss xmm1, xmm0
movaps xmm0, xmm6
mulss xmm0, xmm4
addss xmm0, xmm7
addss xmm1, xmm5
addss xmm0, xmm2
movss dword [esp + 0x80], xmm1
movss dword [esp + 0x48], xmm1
movaps xmm1, xmm6
movss dword [esp + 0xe4], xmm0
movss dword [esp + 0x4c], xmm0
movss xmm7, dword [esp + 0xd0]
mov ecx, dword [0x10090d48]
movaps xmm0, xmm7
mulss xmm1, xmm3
push 6
mulss xmm0, xmm4
mov eax, dword [ecx + 0x3bbc]
mulss xmm6, xmm4
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x3bc0]
subss xmm1, xmm0
mulss xmm7, xmm3
mov ecx, edi
push 6
mov dword [esp + 0x2c], eax
addss xmm6, xmm7
addss xmm5, xmm1
addss xmm2, xmm6
movss dword [esp + 0xd0], xmm5
movss dword [esp + 0x40], xmm5
movss dword [esp + 0xc8], xmm2
movss dword [esp + 0x44], xmm2
call fcn.10039c39
mov ecx, dword [edi + 0x38]
mov ax, word [edi + 0x28]
push dword [esp + 0x70]
mov word [ecx], ax
lea eax, [esp + 0x24]
add dword [edi + 0x38], 2
mov ecx, edi
push eax
lea eax, [esp + 0x144]
push eax
call fcn.1003319f
mov ecx, dword [edi + 0x38]
mov ax, word [edi + 0x28]
push dword [esp + 0x70]
mov word [ecx], ax
lea eax, [esp + 0x24]
add dword [edi + 0x38], 2
mov ecx, edi
push eax
lea eax, [esp + 0x50]
push eax
call fcn.1003319f
mov ecx, dword [edi + 0x38]
mov ax, word [edi + 0x28]
push esi
mov word [ecx], ax
lea eax, [esp + 0x24]
add dword [edi + 0x38], 2
mov ecx, edi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.1003319f
mov ecx, dword [edi + 0x38]
mov ax, word [edi + 0x28]
push 0
mov word [ecx], ax
lea eax, [esp + 0x24]
add dword [edi + 0x38], 2
mov ecx, edi
push eax
lea eax, [esp + 0x144]
push eax
call fcn.1003319f
mov ecx, dword [edi + 0x38]
mov ax, word [edi + 0x28]
mov word [ecx], ax
mov ecx, edi
mov eax, dword [esp + 0x60]
add dword [edi + 0x38], 2
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.1003319f
mov ecx, dword [edi + 0x38]
mov ax, word [edi + 0x28]
mov word [ecx], ax
lea eax, [esp + 0x20]
add dword [edi + 0x38], 2
mov ecx, edi
push 0
push eax
lea eax, [esp + 0x40]
push eax
call fcn.1003319f
push ecx
mov dword [esp], 0x3fc00000
lea eax, [esp + 0x3c]
push dword [esp + 0xa8]
mov ecx, edi
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x14c]
push eax
call fcn.1003c32e
movss xmm0, dword [0x10088500]
xorps xmm1, xmm1
movaps xmm2, xmm0
subss xmm2, dword [esp + 0x40]
comiss xmm1, xmm2
jbe 0x1005c039
xorps xmm4, xmm4
jmp 0x1005c040
movaps xmm4, xmm0
minss xmm4, xmm2
movss xmm2, dword [esp + 0x30]
comiss xmm1, xmm2
jbe 0x1005c050
xorps xmm3, xmm3
jmp 0x1005c057
movaps xmm3, xmm0
minss xmm3, xmm2
movss xmm0, dword [esp + 0x84]
subss xmm0, dword [esp + 0xc8]
movss xmm1, dword [esp + 0x80]
movss xmm2, dword [esp + 0xe4]
mov esi, dword [esp + 0xec]
mov edi, dword [esp + 0xd4]
mulss xmm0, xmm3
addss xmm0, dword [esp + 0xc8]
subss xmm1, xmm0
mulss xmm1, xmm4
addss xmm1, xmm0
movss xmm0, dword [esp + 0x50]
subss xmm0, dword [esp + 0xc0]
movss dword [esp + 0xb8], xmm1
mulss xmm0, xmm3
addss xmm0, dword [esp + 0xc0]
subss xmm2, xmm0
mulss xmm2, xmm4
addss xmm2, xmm0
movss dword [esp + 0xbc], xmm2
jmp 0x1005c460
test dword [esp + 0xc], 0x2000000
je 0x1005c46f
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
movss xmm0, dword [esp + 0xd8]
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x50]
movss dword [esp + 0x138], xmm0
movss xmm0, dword [esp + 0x38]
addss xmm0, dword [esp + 0x34]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x5c]
push eax
movss dword [esp + 0x90], xmm0
movss dword [esp + 0x148], xmm0
call fcn.1003c221
mov eax, dword [esp + 0x60]
movss xmm0, dword [esp + 0xd8]
mov ecx, dword [esp + 0x44]
push eax
push eax
push 0
push 0
lea eax, [esp + 0x13c]
movss dword [esp + 0x13c], xmm0
movss xmm0, dword [esp + 0x88]
push eax
lea eax, [esp + 0x5c]
movss dword [esp + 0x144], xmm0
push eax
call fcn.1003c221
movss xmm0, dword [esp + 0xd8]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x78]
movss dword [esp + 0x24], xmm0
xorps xmm0, xmm0
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x54]
push dword [esp + 0x54]
call fcn.100054b5
movss xmm2, dword [esp + 0x40]
xorps xmm1, xmm1
movss xmm0, dword [0x10088500]
add esp, 0x10
comiss xmm1, xmm2
jbe 0x1005c1d6
xorps xmm3, xmm3
jmp 0x1005c1dd
movaps xmm3, xmm0
minss xmm3, xmm2
movss xmm2, dword [esp + 0x28]
movss xmm7, dword [esp + 0x48]
movss xmm5, dword [0x100884b0]
mulss xmm3, xmm2
movss xmm6, dword [esp + 0xd8]
addss xmm3, xmm7
addss xmm3, xmm5
cvttss2si eax, xmm3
movss xmm3, dword [0x10088580]
addss xmm7, xmm3
subss xmm6, xmm3
movd xmm4, eax
cvtdq2ps xmm4, xmm4
comiss xmm7, xmm4
jbe 0x1005c231
movss dword [esp + 0xb8], xmm7
jmp 0x1005c24a
comiss xmm4, xmm6
jbe 0x1005c241
movss dword [esp + 0xb8], xmm6
jmp 0x1005c24a
movss dword [esp + 0xb8], xmm4
movaps xmm4, xmm0
subss xmm4, dword [esp + 0x40]
comiss xmm1, xmm4
jbe 0x1005c25d
xorps xmm0, xmm0
jmp 0x1005c261
minss xmm0, xmm4
movss xmm1, dword [esp + 0x2c]
mulss xmm0, xmm2
movaps xmm4, xmm1
addss xmm4, xmm3
addss xmm0, xmm1
addss xmm0, xmm5
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x78]
subss xmm0, xmm3
movd xmm5, eax
cvtdq2ps xmm5, xmm5
comiss xmm4, xmm5
jbe 0x1005c29f
movss dword [esp + 0xbc], xmm4
jmp 0x1005c2b8
comiss xmm5, xmm0
jbe 0x1005c2af
movss dword [esp + 0xbc], xmm0
jmp 0x1005c2b8
movss dword [esp + 0xbc], xmm5
movss xmm0, dword [esp + 0xf8]
movaps xmm3, xmm2
divss xmm3, dword [0x100885dc]
mov esi, dword [esp + 0x44]
xor eax, eax
movss dword [esp + 0x12c], xmm0
movss xmm0, dword [esp + 0xa8]
movss dword [esp + 0x84], xmm3
movss dword [esp + 0x88], xmm0
push dword [esp + eax*4 + 0x114]
lea edi, [eax + 1]
mov ecx, esi
push dword [esp + eax*4 + 0x118]
movd xmm0, edi
push dword [esp + eax*4 + 0x118]
cvtdq2ps xmm0, xmm0
push dword [esp + eax*4 + 0x11c]
mulss xmm0, xmm3
addss xmm0, xmm1
movss dword [esp + 0x140], xmm0
movd xmm0, eax
lea eax, [esp + 0x13c]
cvtdq2ps xmm0, xmm0
push eax
lea eax, [esp + 0x9c]
push eax
mulss xmm0, xmm3
addss xmm0, xmm1
movss dword [esp + 0xa4], xmm0
call fcn.1003c221
movss xmm1, dword [esp + 0x2c]
mov eax, edi
movss xmm3, dword [esp + 0x84]
cmp eax, 6
jl 0x1005c2f6
movss xmm0, dword [esp + 0xf8]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x78]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0xa8]
push dword [esp + 0x24]
movss dword [esp + 0x3c], xmm0
movaps xmm0, xmm1
push dword [esp + 0x24]
movss dword [esp + 0x44], xmm0
xorps xmm0, xmm0
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.100054b5
mov esi, dword [esp + 0xfc]
movss xmm1, dword [esp + 0x8c]
mov edi, dword [esp + 0xe4]
addss xmm1, dword [0x10088580]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mov ecx, dword [esp + 0x54]
movaps xmm0, xmm2
movss dword [esp + 0x34], xmm2
addss xmm0, dword [0x10088500]
push dword [esp + 0x34]
movss xmm2, dword [edi + 0x3798]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [esp + 0xbc]
subss xmm0, dword [0x10088500]
push dword [esp + 0x34]
movss dword [esp + 0x50], xmm0
movss xmm0, dword [esp + 0x30]
mulss xmm0, dword [esp + 0x40]
addss xmm0, dword [esp + 0x44]
addss xmm0, dword [0x100884b0]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x54], xmm0
push dword [esp + 0x54]
push dword [esp + 0x54]
call fcn.1005a491
add esp, 0x20
mov eax, dword [esp + 0x98]
movss xmm2, dword [0x100885dc]
cmp byte [esp + 0x12], 0
je 0x1005c487
movss xmm2, dword [0x100885f8]
movss dword [esp + 0x9c], xmm2
push 0xc
pop ecx
push ecx
mov ecx, dword [esp + 0x48]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.1003c482
movss xmm2, dword [esp + 0x9c]
addss xmm2, dword [0x10088500]
push ecx
mov ecx, dword [esp + 0x48]
mov dword [esp], 0x3f800000
push 0xc
pop eax
push eax
push dword [esp + 0xac]
lea eax, [esp + 0xc4]
push eax
call fcn.1003c3cf
movss xmm2, dword [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x48]
mov dword [esp], 0x3f800000
push 0xc
pop eax
push eax
push dword [esp + 0x7c]
lea eax, [esp + 0xc4]
push eax
call fcn.1003c3cf
cmp dword [esp + 0xfc], 0x10000
jne 0x1005c6b1
mov eax, dword [esp + 0x14]
xorps xmm1, xmm1
comiss xmm1, dword [eax + 0xc]
jbe 0x1005c525
movss dword [esp + 0xd4], xmm1
jmp 0x1005c53b
movss xmm0, dword [0x10088500]
minss xmm0, dword [eax + 0xc]
movss dword [esp + 0xd4], xmm0
movss xmm3, dword [esp + 0xf4]
xor edx, edx
movss xmm0, dword [esp + 0x2c]
movaps xmm2, xmm3
addss xmm2, dword [esp + 0x7c]
and dword [esp + 0x24], 0
push dword [esp + 0x24]
and dword [esp + 0x24], 0
push dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
movss dword [esp + 0x138], xmm0
addss xmm0, dword [esp + 0x30]
movss dword [esp + 0x13c], xmm2
subss xmm2, xmm3
movss dword [esp + 0x134], xmm3
xorps xmm3, xmm3
movss dword [esp + 0x140], xmm0
push dword [esp + 0x140]
mulss xmm2, dword [0x100884b0]
push dword [esp + 0x140]
push dword [esp + 0x140]
push dword [esp + 0x140]
push 0
call fcn.10040411
mov ecx, dword [esp + 0xb4]
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 + 0x144]
push eax
lea eax, [esp + 0x140]
push eax
call fcn.1003c221
push dword [esp + 0x138]
xorps xmm0, xmm0
push dword [esp + 0x138]
push dword [esp + 0x138]
push dword [esp + 0x138]
call fcn.100054b5
movss xmm1, dword [0x10088500]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mov ecx, dword [esp + 0x54]
movaps xmm0, xmm2
movss dword [esp + 0x34], xmm2
addss xmm0, xmm1
movss xmm2, dword [edi + 0x3798]
push dword [esp + 0x34]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [esp + 0x108]
subss xmm0, xmm1
subss xmm1, dword [esp + 0xe8]
push dword [esp + 0x34]
movss dword [esp + 0x50], xmm0
mulss xmm1, dword [esp + 0x40]
addss xmm1, dword [esp + 0x44]
addss xmm1, dword [0x100884b0]
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x94]
addss xmm1, dword [0x10088580]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x54], xmm0
push dword [esp + 0x54]
push dword [esp + 0x54]
call fcn.1005a491
add esp, 0x20
call fcn.1001065e
cmp byte [esp + 0x1c], 0
mov esi, dword [0x10090d48]
je 0x1005c70c
push dword [esp + 0xf0]
lea eax, [esp + 0x160]
push dword [esp + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcmp
mov ecx, dword [esp + 0x28]
xor edx, edx
add esp, 0xc
movzx ecx, cl
test eax, eax
cmove ecx, edx
mov dword [esp + 0x1c], ecx
test cl, cl
je 0x1005c70c
cmp dword [edi + 0x469c], edx
je 0x1005c70c
or dword [esi + 0x46a4], 4
mov word [esi + 0x3e84], 0x101
mov ecx, dword [esi + 0x3e28]
mov al, byte [esp + 0x1c]
dec dword [ecx + 0xe0]
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
xor ecx, esp
call fcn.1006dac1
mov esp, ebp
pop ebp
ret