Function at 0x180018ca0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
lea rbp, [r11 - 0xc58]
sub rsp, 0xd38
mov rax, qword [0x1800624d0]
xor rax, rsp
mov qword [rbp + 0xb70], rax
lea r12d, [r9 - 0x11]
mov dword [rsp + 0x38], r9d
mov qword [rbp - 0x58], r8
mov esi, r9d
mov qword [rsp + 0x70], rdx
mov rdi, r8
mov qword [rsp + 0x78], rcx
mov r10, rdx
mov dword [rsp + 0x34], r12d
cmp r9d, r12d
jbe 0x18001a4e9
movss xmm0, dword [rsp + 0x34]
lea r9, [0x180000000]
mov edx, dword [rsp + 0x34]
xor r8d, r8d
movss xmm2, dword [0x18005713c]
xorps xmm1, xmm1
movss xmm5, dword [0x180057160]
movss xmm3, dword [0x180057150]
movss xmm4, dword [0x1800570b0]
mov qword [r11 + 0x20], rbx
lea ebx, [r8 + 1]
mov qword [r11 - 0x28], r13
mov r13, qword [rsp + 0x70]
mov qword [r11 - 0x30], r14
mov r14d, dword [rsp + 0x34]
mov qword [r11 - 0x38], r15
mov r15d, dword [rsp + 0x34]
movaps xmmword [r11 - 0x48], xmm6
movss xmm6, dword [0x18005716c]
movaps xmmword [r11 - 0x58], xmm7
movss xmm7, dword [0x180057330]
movaps xmmword [r11 - 0x68], xmm8
movss xmm8, dword [rsp + 0x34]
movaps xmmword [r11 - 0x78], xmm9
movss xmm9, dword [rsp + 0x34]
movaps xmmword [r11 - 0x88], xmm10
movss xmm10, dword [0x1800570f0]
movaps xmmword [r11 - 0x98], xmm11
movss xmm11, dword [0x180057288]
movaps xmmword [r11 - 0xa8], xmm12
movss xmm12, dword [0x180057250]
movaps xmmword [r11 - 0xb8], xmm13
movss xmm13, dword [rsp + 0x34]
movaps xmmword [r11 - 0xc8], xmm14
movss xmm14, dword [rsp + 0x34]
movaps xmmword [r11 - 0xd8], xmm15
lea r11, [0x180051f38]
movss xmm15, dword [rsp + 0x34]
movss dword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x4c], r15d
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x30], edx
lea eax, [rsi - 0x6c]
cmp eax, 0x2f
ja case.0x180018e21.125
movzx eax, byte [r9 + rax + 0x1a550]
mov ecx, dword [r9 + rax*4 + 0x1a508]
add rcx, r9
jmp rcx
mov qword [rsp + 0x58], r8
jmp case.0x180018e21.125
cmp dword [rdi + 0xd6b8], 0x7d00
jne 0x180018ea3
lea rax, [rdi + 0x438]
mov edx, 2
lea rcx, [rdi + 0x538]
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x180018e50
lea rdx, [rdi + 0x9060]
mov r8d, 0x3ef8
lea rcx, [rdi + 0x9268]
call sub.VCRUNTIME140.dll_memmove
jmp 0x18001a41f
xor edx, edx
lea rcx, [rbp + 0x5e0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rdi + 0xd6a8]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x960]
mov dword [rsp + 0x44], 0
mov edx, 0x6a
mov qword [rsp + 0x50], rbx
call fcn.18003eaf0
jmp 0x18001a41f
movaps xmm14, xmm1
jmp case.0x180018e21.125
mov rax, qword [rsp + 0x58]
lea rcx, [rdi + 0x9060]
mov edx, 4
nop dword [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x180018f30
mov rax, qword [rax]
lea r9, [rbp - 0x50]
mov qword [rcx], rax
lea r8, [rbp + 0x960]
lea rax, [rbp + 0x1b0]
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x3d0]
lea rax, [rbp + 0x7f0]
mov qword [rsp + 0x20], rax
call qword [0x180062608]
lea eax, [r15 + r14]
movsxd rcx, r15d
movsxd rdx, eax
xorps xmm1, xmm1
xorps xmm8, xmm8
cmp rcx, rdx
jge 0x18001902a
mov rax, rdx
sub rax, rcx
cmp rax, 4
jl 0x180019013
lea rax, [rdx - 3]
addss xmm8, dword [rbp + rcx*4 + 0x1b0]
addss xmm8, dword [rbp + rcx*4 + 0x1b4]
addss xmm8, dword [rbp + rcx*4 + 0x1b8]
addss xmm8, dword [rbp + rcx*4 + 0x1bc]
add rcx, 4
cmp rcx, rax
jl 0x180018fe2
cmp rcx, rdx
jge 0x18001902a
addss xmm8, dword [rbp + rcx*4 + 0x1b0]
inc rcx
cmp rcx, rdx
jl 0x180019018
movd xmm0, r14d
cvtdq2ps xmm0, xmm0
divss xmm8, xmm0
jmp 0x18001a422
mov ecx, dword [rdi + 0xd6b4]
lea r13, [0x180051f48]
mov eax, 4
cdq
idiv ecx
cmp dword [rdi + 0xd924], 0
lea edx, [rcx + rcx*4]
mov r15d, eax
mov dword [rsp + 0x4c], eax
cmovne r13, r11
add edx, edx
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x30], edx
jmp case.0x180018e21.125
lea r9, [rbp + 0x3d0]
movaps xmm2, xmm14
lea rdx, [rbp + 0x2c0]
mov rcx, rdi
call qword [0x1800625f8]
mov r9, qword [rdi + 0xa48]
lea rax, [rbp + 0x2c0]
lea r8, [rbp + 0x5e0]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x3d0]
mov rcx, rdi
call qword [0x180062600]
cmp dword [rdi + 0xd73c], 1
jne 0x1800190de
lea r8, [rdi + 0xd720]
mov edx, 0x43
lea r9, [rbp + 0x3d0]
xor ecx, ecx
call fcn.180038cd0
movss xmm0, dword [rbp + 0x3d0]
movss dword [rbp - 0x50], xmm0
jmp 0x18001a41f
movaps xmm0, xmm6
movsxd rcx, r15d
subss xmm0, xmm8
movaps xmm9, xmm1
lea eax, [r15 + r14]
movsxd rdx, eax
movaps xmm8, xmm0
cmp rcx, rdx
jge 0x18001a42a
mov rax, rdx
sub rax, rcx
cmp rax, 4
jl 0x180019154
lea rax, [rdx - 3]
addss xmm9, dword [rbp + rcx*4 + 0x7f0]
addss xmm9, dword [rbp + rcx*4 + 0x7f4]
addss xmm9, dword [rbp + rcx*4 + 0x7f8]
addss xmm9, dword [rbp + rcx*4 + 0x7fc]
add rcx, 4
cmp rcx, rax
jl 0x180019123
cmp rcx, rdx
jge 0x18001a42a
addss xmm9, dword [rbp + rcx*4 + 0x7f0]
inc rcx
cmp rcx, rdx
jl 0x18001915d
jmp 0x18001a42a
movss xmm0, dword [rbp + 0x4d0]
mov rcx, rbx
movss dword [rbp - 0x4c], xmm0
nop dword [rax]
nop dword [rax + rax]
movss xmm0, dword [rbp + rcx*4 + 0x4d4]
mov eax, dword [rbp + rcx*4 + 0x3d0]
xorps xmm0, xmm7
movss dword [rbp + rcx*8 - 0x4c], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x4d8]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 - 0x50], eax
mov eax, dword [rbp + rcx*4 + 0x3d4]
movss dword [rbp + rcx*8 - 0x44], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x4dc]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 - 0x48], eax
mov eax, dword [rbp + rcx*4 + 0x3d8]
movss dword [rbp + rcx*8 - 0x3c], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x4e0]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 - 0x40], eax
mov eax, dword [rbp + rcx*4 + 0x3dc]
movss dword [rbp + rcx*8 - 0x34], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x4e4]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 - 0x38], eax
mov eax, dword [rbp + rcx*4 + 0x3e0]
movss dword [rbp + rcx*8 - 0x2c], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x4e8]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 - 0x30], eax
mov eax, dword [rbp + rcx*4 + 0x3e4]
movss dword [rbp + rcx*8 - 0x24], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x4ec]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 - 0x28], eax
mov eax, dword [rbp + rcx*4 + 0x3e8]
movss dword [rbp + rcx*8 - 0x1c], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x4f0]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 - 0x20], eax
mov eax, dword [rbp + rcx*4 + 0x3ec]
movss dword [rbp + rcx*8 - 0x14], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x4f4]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 - 0x18], eax
mov eax, dword [rbp + rcx*4 + 0x3f0]
movss dword [rbp + rcx*8 - 0xc], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x4f8]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 - 0x10], eax
mov eax, dword [rbp + rcx*4 + 0x3f4]
movss dword [rbp + rcx*8 - 4], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x4fc]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 - 8], eax
mov eax, dword [rbp + rcx*4 + 0x3f8]
movss dword [rbp + rcx*8 + 4], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x500]
xorps xmm0, xmm7
mov dword [rbp + rcx*8], eax
mov eax, dword [rbp + rcx*4 + 0x3fc]
movss dword [rbp + rcx*8 + 0xc], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x504]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 + 8], eax
mov eax, dword [rbp + rcx*4 + 0x400]
movss dword [rbp + rcx*8 + 0x14], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x508]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 + 0x10], eax
mov eax, dword [rbp + rcx*4 + 0x404]
movss dword [rbp + rcx*8 + 0x1c], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x50c]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 + 0x18], eax
mov eax, dword [rbp + rcx*4 + 0x408]
movss dword [rbp + rcx*8 + 0x24], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x510]
mov dword [rbp + rcx*8 + 0x20], eax
xorps xmm0, xmm7
mov eax, dword [rbp + rcx*4 + 0x40c]
mov dword [rbp + rcx*8 + 0x28], eax
mov eax, dword [rbp + rcx*4 + 0x410]
movss dword [rbp + rcx*8 + 0x2c], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x514]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 + 0x30], eax
mov eax, dword [rbp + rcx*4 + 0x414]
movss dword [rbp + rcx*8 + 0x34], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x518]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 + 0x38], eax
mov eax, dword [rbp + rcx*4 + 0x418]
movss dword [rbp + rcx*8 + 0x3c], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x51c]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 + 0x40], eax
mov eax, dword [rbp + rcx*4 + 0x41c]
movss dword [rbp + rcx*8 + 0x44], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x520]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 + 0x48], eax
mov eax, dword [rbp + rcx*4 + 0x420]
movss dword [rbp + rcx*8 + 0x4c], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x524]
xorps xmm0, xmm7
mov dword [rbp + rcx*8 + 0x50], eax
movss dword [rbp + rcx*8 + 0x54], xmm0
add rcx, 0x15
cmp rcx, 0x40
jl 0x180019190
mov edx, 0x67
lea rcx, [rbp - 0x50]
call fcn.180041bd0
jmp 0x18001a41f
comiss xmm2, xmm8
movd xmm0, r14d
cvtdq2ps xmm0, xmm0
divss xmm9, xmm0
jbe 0x18001943c
movss xmm0, dword [rdi + 0xd578]
comiss xmm0, xmm8
jbe 0x18001943c
movss dword [rdi + 0xd578], xmm8
comiss xmm9, xmm5
jbe 0x180019451
comiss xmm8, xmm3
jbe 0x180019451
mov word [rdi + 0xd694], bx
jmp 0x180019475
movss xmm0, dword [0x180057154]
comiss xmm0, xmm9
ja 0x18001946d
movss xmm0, dword [0x180057140]
comiss xmm0, xmm8
jbe 0x180019475
mov word [rdi + 0xd694], r8w
movss xmm0, dword [rdi + 0xd578]
ucomiss xmm0, xmm6
jp 0x18001965b
jne 0x18001965b
cmp word [rdi + 0xd694], 1
movsxd rax, dword [rdi + 0xd58c]
mov word [rdi + 0xd696], r8w
mov ecx, dword [r13 + rax*4]
mov dword [rdi + 0xd584], ecx
jne 0x180019534
lea rcx, [rbp + 0x2c0]
mov edx, 2
lea rax, [rbp + 0x7f0]
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1800194d0
mov eax, dword [rax]
movaps xmm14, xmm9
mov dword [rcx], eax
movaps xmm13, xmm9
jmp 0x18001995a
movaps xmm2, xmmword [0x1800572e0]
mov rcx, r8
nop
movups xmm0, xmmword [rbp + rcx*4 + 0x1b0]
movaps xmm1, xmm2
subps xmm1, xmm0
movups xmm0, xmmword [rbp + rcx*4 + 0x1c0]
movups xmmword [rbp + rcx*4 + 0x2c0], xmm1
movaps xmm1, xmm2
subps xmm1, xmm0
movups xmm0, xmmword [rbp + rcx*4 + 0x1d0]
movups xmmword [rbp + rcx*4 + 0x2d0], xmm1
movaps xmm1, xmm2
subps xmm1, xmm0
movups xmm0, xmmword [rbp + rcx*4 + 0x1e0]
movups xmmword [rbp + rcx*4 + 0x2e0], xmm1
movaps xmm1, xmm2
subps xmm1, xmm0
movups xmmword [rbp + rcx*4 + 0x2f0], xmm1
add rcx, 0x10
cmp rcx, 0x40
jl 0x180019540
cmp rcx, 0x41
jge 0x18001964e
mov eax, 0x41
sub rax, rcx
cmp rax, 4
jl 0x18001961e
nop word [rax + rax]
movaps xmm0, xmm6
movaps xmm1, xmm6
subss xmm0, dword [rbp + rcx*4 + 0x1b0]
subss xmm1, dword [rbp + rcx*4 + 0x1b4]
movss dword [rbp + rcx*4 + 0x2c0], xmm0
movaps xmm0, xmm6
subss xmm0, dword [rbp + rcx*4 + 0x1b8]
movss dword [rbp + rcx*4 + 0x2c4], xmm1
movaps xmm1, xmm6
subss xmm1, dword [rbp + rcx*4 + 0x1bc]
movss dword [rbp + rcx*4 + 0x2c8], xmm0
movss dword [rbp + rcx*4 + 0x2cc], xmm1
add rcx, 4
cmp rcx, 0x3e
jl 0x1800195c0
cmp rcx, 0x41
jae 0x18001964e
lea rcx, [rcx*4]
movaps xmm0, xmm6
subss xmm0, dword [rbp + rcx + 0x1b0]
movss dword [rbp + rcx + 0x2c0], xmm0
add rcx, 4
cmp rcx, 0x104
jl 0x18001962c
movaps xmm14, xmm8
movaps xmm13, xmm8
jmp 0x18001995a
cmp word [rdi + 0xd694], 1
jne 0x1800196e4
mov word [rdi + 0xd696], r8w
lea rcx, [rbp + 0x2c0]
lea rax, [rbp + 0x7f0]
mov edx, 2
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x180019680
mov eax, dword [rax]
movaps xmm14, xmm9
mov dword [rcx], eax
movaps xmm13, xmm9
jmp 0x18001995a
movss xmm7, dword [rsp + 0x40]
mov esi, 0x26
nop
mov eax, esi
sub eax, 0x26
je 0x1800197aa
sub eax, 1
je 0x180019737
cmp eax, 1
jne 0x180019943
lea eax, [r14 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm15
call sub.api_ms_win_crt_math_l1_1_0.dll_floorf
cvttss2si eax, xmm0
xor r8d, r8d
movsxd rcx, eax
movss xmm13, dword [rbp + rcx*4 + 0x900]
jmp 0x180019943
movsxd rax, r15d
lea rdx, [rbp + 0x2c0]
movsxd rbx, r14d
lea rcx, [rbp + 0x900]
lea rdx, [rdx + rax*4]
lea r8, [rbx*4]
call sub.VCRUNTIME140.dll_memcpy
lea r9, [0x1800058f0]
mov r8d, 4
mov rdx, rbx
lea rcx, [rbp + 0x900]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
lea eax, [r14 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_floorf
cvttss2si eax, xmm0
xor r8d, r8d
lea ebx, [r8 + 1]
movsxd rcx, eax
movss xmm14, dword [rbp + rcx*4 + 0x900]
jmp 0x180019943
movaps xmm2, xmmword [0x1800572e0]
mov rcx, r8
mov word [rdi + 0xd696], bx
nop dword [rax + rax]
movups xmm0, xmmword [rbp + rcx*4 + 0x1b0]
movaps xmm1, xmm2
subps xmm1, xmm0
movups xmm0, xmmword [rbp + rcx*4 + 0x7f0]
minps xmm0, xmm1
movaps xmm1, xmm2
movups xmmword [rbp + rcx*4 + 0x2c0], xmm0
movups xmm0, xmmword [rbp + rcx*4 + 0x1c0]
subps xmm1, xmm0
movups xmm0, xmmword [rbp + rcx*4 + 0x800]
minps xmm0, xmm1
movaps xmm1, xmm2
movups xmmword [rbp + rcx*4 + 0x2d0], xmm0
movups xmm0, xmmword [rbp + rcx*4 + 0x1d0]
subps xmm1, xmm0
movups xmm0, xmmword [rbp + rcx*4 + 0x810]
minps xmm0, xmm1
movaps xmm1, xmm2
movups xmmword [rbp + rcx*4 + 0x2e0], xmm0
movups xmm0, xmmword [rbp + rcx*4 + 0x1e0]
subps xmm1, xmm0
movups xmm0, xmmword [rbp + rcx*4 + 0x820]
minps xmm0, xmm1
movups xmmword [rbp + rcx*4 + 0x2f0], xmm0
add rcx, 0x10
cmp rcx, 0x40
jl 0x1800197c0
cmp rcx, 0x41
jge 0x180019943
mov eax, 0x41
sub rax, rcx
cmp rax, 4
jl 0x180019906
nop
movss xmm0, dword [rbp + rcx*4 + 0x7f0]
movaps xmm1, xmm6
subss xmm1, dword [rbp + rcx*4 + 0x1b0]
movaps xmm2, xmm6
subss xmm2, dword [rbp + rcx*4 + 0x1b4]
minss xmm0, xmm1
movaps xmm1, xmm6
subss xmm1, dword [rbp + rcx*4 + 0x1b8]
movss dword [rbp + rcx*4 + 0x2c0], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x7f4]
minss xmm0, xmm2
movaps xmm2, xmm6
subss xmm2, dword [rbp + rcx*4 + 0x1bc]
movss dword [rbp + rcx*4 + 0x2c4], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x7f8]
minss xmm0, xmm1
movss dword [rbp + rcx*4 + 0x2c8], xmm0
movss xmm0, dword [rbp + rcx*4 + 0x7fc]
minss xmm0, xmm2
movss dword [rbp + rcx*4 + 0x2cc], xmm0
add rcx, 4
cmp rcx, 0x3e
jl 0x180019870
cmp rcx, 0x41
jae 0x180019943
lea rcx, [rcx*4]
movss xmm0, dword [rbp + rcx + 0x7f0]
movaps xmm1, xmm6
subss xmm1, dword [rbp + rcx + 0x1b0]
minss xmm0, xmm1
movss dword [rbp + rcx + 0x2c0], xmm0
add rcx, 4
cmp rcx, 0x104
jl 0x180019914
inc esi
cmp esi, 0x29
jb 0x1800196f0
movss xmm7, dword [0x180057330]
mov esi, dword [rsp + 0x38]
movss xmm0, dword [0x180057130]
comiss xmm0, xmm13
jbe 0x18001a41f
movss xmm0, dword [rdi + 0xd574]
xorps xmm1, xmm1
comiss xmm0, xmm13
mov edx, dword [rsp + 0x30]
movss xmm2, dword [0x18005713c]
jbe case.0x180018e21.125
movss dword [rdi + 0xd574], xmm13
movss dword [rdi + 0xd570], xmm13
mov qword [rdi + 0xd57c], 1
jmp case.0x180018e21.125
mov dword [r10], r8d
jmp case.0x180018e21.125
movss xmm15, dword [0x18005712c]
mov eax, 0x18
cdq
movss dword [rsp + 0x40], xmm2
idiv dword [rdi + 0xd6b4]
movaps xmm13, xmm1
mov r14d, eax
mov dword [rsp + 0x48], eax
jmp 0x18001a42a
movss xmm0, dword [r10]
mov eax, 0x20
nop dword [rax]
addss xmm0, dword [rdi + rax*4]
inc rax
cmp rax, 0x40
jl 0x1800199f0
mulss xmm0, dword [0x1800570f8]
movss dword [r10], xmm0
jmp case.0x180018e21.125
cmp dword [rdi + 0xd57c], 1
movd xmm2, dword [rdi + 0xd6b4]
movss xmm0, dword [0x1800570d0]
movss xmm1, dword [0x1800570cc]
cvtdq2ps xmm2, xmm2
divss xmm0, xmm2
divss xmm1, xmm2
addss xmm0, dword [rdi + 0xd574]
addss xmm1, dword [rdi + 0xd578]
minss xmm0, xmm6
minss xmm1, xmm6
movss dword [rdi + 0xd574], xmm0
movss dword [rdi + 0xd578], xmm1
jne 0x180019a6a
inc dword [rdi + 0xd580]
mov eax, dword [rdi + 0xd580]
cmp eax, 2
jne 0x180019ad1
movss xmm0, dword [rdi + 0xd570]
movsxd rbx, dword [rdi + 0xd58c]
addss xmm0, xmm4
mov qword [rdi + 0xd57c], 0
call sub.api_ms_win_crt_math_l1_1_0.dll_logf
addss xmm0, dword [0x1800570b0]
movss xmm3, dword [0x180057150]
lea rax, [0x180000000]
movss xmm1, dword [rax + rbx*4 + 0x51f28]
mov edx, dword [rsp + 0x30]
divss xmm1, xmm0
maxss xmm1, dword [r13 + rbx*4]
movss dword [rdi + 0xd584], xmm1
jmp 0x180019ad9
movss xmm1, dword [rdi + 0xd584]
movss xmm0, dword [rdi + 0xd588]
comiss xmm0, xmm1
jbe 0x180019af8
mulss xmm1, dword [0x1800570ec]
mulss xmm0, dword [0x180057164]
jmp 0x180019b04
mulss xmm1, dword [0x180057104]
mulss xmm0, xmm3
addss xmm1, xmm0
movss dword [rdi + 0xd588], xmm1
xorps xmm1, xmm1
movss xmm2, dword [0x18005713c]
jmp case.0x180018e21.125
lea r9, [0x18004e720]
mov r11d, 0x40
lea rbx, [rbp - 0x50]
sub r9, rdi
sub rbx, rdi
lea rdx, [rbp + 0xb0]
sub rdx, rdi
mov qword [rsp + 0x50], rbx
sub r10, rdi
lea rax, [rdi + 0xd590]
lea r8, [0x18004e820]
nop word [rax + rax]
mov ecx, 0x12
cmp ecx, 0x12
jne 0x180019bc9
movss xmm0, dword [rdx + rax - 0xd590]
movaps xmm1, xmm11
movss xmm2, dword [rbx + rax - 0xd590]
mulss xmm0, xmm10
mulss xmm2, xmm10
movss dword [rdx + rax - 0xd590], xmm0
mulss xmm0, dword [r8]
mulss xmm2, dword [r9 + rax - 0xd590]
addss xmm2, dword [rax]
movss dword [rax], xmm0
movaps xmm0, xmm12
maxss xmm1, xmm2
movss dword [rbx + rax - 0xd590], xmm2
minss xmm0, xmm1
movss dword [r10 + rax - 0xd590], xmm0
add ecx, 0x2e
cmp ecx, 0x40
jb 0x180019b65
add rax, 4
sub r8, 4
sub r11, 1
jne 0x180019b60
cmp dword [rdi + 0xd6b8], 0x7d00
jne 0x18001a310
mov r9d, 0x9b
lea r8, [rbp + 0x2c0]
lea rdx, [rsp + 0x44]
xor ecx, ecx
call fcn.180018ca0
movss xmm0, dword [rbp + 0x5e0]
xor ecx, ecx
movss xmm1, dword [rbp + 0x7e0]
movss dword [rbp - 0x50], xmm0
movss dword [rbp - 0x4c], xmm1
mov eax, dword [rbp + rcx + 0x5e8]
mov dword [rbp + rcx - 0x48], eax
mov eax, dword [rbp + rcx + 0x5ec]
mov dword [rbp + rcx - 0x44], eax
mov eax, dword [rbp + rcx + 0x5f0]
mov dword [rbp + rcx - 0x40], eax
mov eax, dword [rbp + rcx + 0x5f4]
mov dword [rbp + rcx - 0x3c], eax
mov eax, dword [rbp + rcx + 0x5f8]
mov dword [rbp + rcx - 0x38], eax
mov eax, dword [rbp + rcx + 0x5fc]
mov dword [rbp + rcx - 0x34], eax
mov eax, dword [rbp + rcx + 0x600]
mov dword [rbp + rcx - 0x30], eax
mov eax, dword [rbp + rcx + 0x604]
mov dword [rbp + rcx - 0x2c], eax
mov eax, dword [rbp + rcx + 0x608]
mov dword [rbp + rcx - 0x28], eax
mov eax, dword [rbp + rcx + 0x60c]
mov dword [rbp + rcx - 0x24], eax
mov eax, dword [rbp + rcx + 0x610]
mov dword [rbp + rcx - 0x20], eax
mov eax, dword [rbp + rcx + 0x614]
mov dword [rbp + rcx - 0x1c], eax
mov eax, dword [rbp + rcx + 0x618]
mov dword [rbp + rcx - 0x18], eax
mov eax, dword [rbp + rcx + 0x61c]
mov dword [rbp + rcx - 0x14], eax
mov eax, dword [rbp + rcx + 0x620]
mov dword [rbp + rcx - 0x10], eax
mov eax, dword [rbp + rcx + 0x624]
mov dword [rbp + rcx - 0xc], eax
mov eax, dword [rbp + rcx + 0x628]
mov dword [rbp + rcx - 8], eax
mov eax, dword [rbp + rcx + 0x62c]
mov dword [rbp + rcx - 4], eax
mov eax, dword [rbp + rcx + 0x630]
mov dword [rbp + rcx], eax
mov eax, dword [rbp + rcx + 0x634]
mov dword [rbp + rcx + 4], eax
mov eax, dword [rbp + rcx + 0x638]
mov dword [rbp + rcx + 8], eax
mov eax, dword [rbp + rcx + 0x63c]
mov dword [rbp + rcx + 0xc], eax
mov eax, dword [rbp + rcx + 0x640]
mov dword [rbp + rcx + 0x10], eax
mov eax, dword [rbp + rcx + 0x644]
mov dword [rbp + rcx + 0x14], eax
mov eax, dword [rbp + rcx + 0x648]
mov dword [rbp + rcx + 0x18], eax
mov eax, dword [rbp + rcx + 0x64c]
mov dword [rbp + rcx + 0x1c], eax
mov eax, dword [rbp + rcx + 0x650]
mov dword [rbp + rcx + 0x20], eax
mov eax, dword [rbp + rcx + 0x654]
mov dword [rbp + rcx + 0x24], eax
mov eax, dword [rbp + rcx + 0x658]
mov dword [rbp + rcx + 0x28], eax
mov eax, dword [rbp + rcx + 0x65c]
mov dword [rbp + rcx + 0x2c], eax
mov eax, dword [rbp + rcx + 0x660]
mov dword [rbp + rcx + 0x30], eax
mov eax, dword [rbp + rcx + 0x664]
mov dword [rbp + rcx + 0x34], eax
mov eax, dword [rbp + rcx + 0x668]
mov dword [rbp + rcx + 0x38], eax
mov eax, dword [rbp + rcx + 0x66c]
mov dword [rbp + rcx + 0x3c], eax
mov eax, dword [rbp + rcx + 0x670]
mov dword [rbp + rcx + 0x40], eax
mov eax, dword [rbp + rcx + 0x674]
mov dword [rbp + rcx + 0x44], eax
mov eax, dword [rbp + rcx + 0x678]
mov dword [rbp + rcx + 0x48], eax
mov eax, dword [rbp + rcx + 0x67c]
mov dword [rbp + rcx + 0x4c], eax
mov eax, dword [rbp + rcx + 0x680]
mov dword [rbp + rcx + 0x50], eax
mov eax, dword [rbp + rcx + 0x684]
mov dword [rbp + rcx + 0x54], eax
mov eax, dword [rbp + rcx + 0x688]
mov dword [rbp + rcx + 0x58], eax
mov eax, dword [rbp + rcx + 0x68c]
mov dword [rbp + rcx + 0x5c], eax
add rcx, 0xa8
cmp rcx, 0x1f8
jl 0x180019c24
mov edx, 0x67
lea rcx, [rbp - 0x50]
call fcn.180041bd0
mov rcx, qword [rsp + 0x78]
lea rbx, [rbp - 0x24]
movss xmm2, dword [rsp + 0x44]
lea rdx, [rbp - 0x4c]
movss xmm3, dword [0x180057128]
lea r8, [rbp - 0x48]
sub rbx, rdi
mov qword [rsp + 0x60], 4
mov qword [rbp - 0x80], rbx
lea r9, [rbp - 0x44]
sub rcx, rdi
lea rbx, [rbp - 0x20]
sub rbx, rdi
lea r10, [rbp - 0x40]
mov qword [rbp - 0x78], rbx
lea r11, [rbp - 0x3c]
sub rdx, rdi
lea rbx, [rbp - 0x1c]
sub rbx, rdi
lea rsi, [rbp - 0x38]
mov qword [rbp - 0x70], rbx
lea r14, [rbp - 0x34]
sub r8, rdi
lea rbx, [rbp - 0x18]
sub rbx, rdi
lea r15, [rbp - 0x30]
mov qword [rbp - 0x68], rbx
lea r12, [rbp - 0x2c]
sub r9, rdi
lea r13, [rbp - 0x28]
sub r10, rdi
lea rbx, [rbp - 0x14]
sub r11, rdi
lea rax, [rdi + 0x43c]
sub rsi, rdi
sub r14, rdi
sub r15, rdi
sub r12, rdi
sub r13, rdi
sub rbx, rdi
mov rdi, qword [rbp - 0x80]
mov qword [rbp - 0x60], rbx
mov rbx, qword [rsp + 0x50]
movss xmm1, dword [rax + rbx - 0x43c]
movaps xmm0, xmm2
mulss xmm0, dword [rax - 4]
mulss xmm1, xmm10
movss dword [rax + rbx - 0x43c], xmm1
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm11
maxss xmm1, xmm0
movaps xmm0, xmm12
minss xmm0, xmm1
movss xmm1, dword [rax + rdx - 0x43c]
mulss xmm1, xmm10
movss dword [rax + rcx - 0x43c], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [rax]
movss dword [rax + rdx - 0x43c], xmm1
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm11
maxss xmm1, xmm0
movaps xmm0, xmm12
minss xmm0, xmm1
movss xmm1, dword [rax + r8 - 0x43c]
mulss xmm1, xmm10
movss dword [rax + rcx - 0x438], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [rax + 4]
movss dword [rax + r8 - 0x43c], xmm1
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm11
maxss xmm1, xmm0
movaps xmm0, xmm12
minss xmm0, xmm1
movss xmm1, dword [rax + r9 - 0x43c]
mulss xmm1, xmm10
movss dword [rax + rcx - 0x434], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [rax + 8]
movss dword [rax + r9 - 0x43c], xmm1
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm11
maxss xmm1, xmm0
movaps xmm0, xmm12
minss xmm0, xmm1
movss xmm1, dword [rax + r10 - 0x43c]
mulss xmm1, xmm10
movss dword [rax + rcx - 0x430], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [rax + 0xc]
movss dword [rax + r10 - 0x43c], xmm1
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm11
maxss xmm1, xmm0
movaps xmm0, xmm12
minss xmm0, xmm1
movss xmm1, dword [rax + r11 - 0x43c]
mulss xmm1, xmm10
movss dword [rax + rcx - 0x42c], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [rax + 0x10]
movss dword [rax + r11 - 0x43c], xmm1
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm11
maxss xmm1, xmm0
movaps xmm0, xmm12
minss xmm0, xmm1
movss xmm1, dword [rax + rsi - 0x43c]
mulss xmm1, xmm10
movss dword [rax + rcx - 0x428], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [rax + 0x14]
movss dword [rax + rsi - 0x43c], xmm1
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm11
maxss xmm1, xmm0
mov rbx, qword [rbp - 0x78]
movaps xmm0, xmm12
minss xmm0, xmm1
movss xmm1, dword [rax + r14 - 0x43c]
mulss xmm1, xmm10
movss dword [rax + rcx - 0x424], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [rax + 0x18]
movss dword [rax + r14 - 0x43c], xmm1
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm11
maxss xmm1, xmm0
movaps xmm0, xmm12
minss xmm0, xmm1
movss xmm1, dword [rax + r15 - 0x43c]
mulss xmm1, xmm10
movss dword [rax + rcx - 0x420], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [rax + 0x1c]
movss dword [rax + r15 - 0x43c], xmm1
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm11
maxss xmm1, xmm0
movaps xmm0, xmm12
minss xmm0, xmm1
movss xmm1, dword [rax + r12 - 0x43c]
mulss xmm1, xmm10
movss dword [rax + rcx - 0x41c], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [rax + 0x20]
movss dword [rax + r12 - 0x43c], xmm1
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm11
maxss xmm1, xmm0
movaps xmm0, xmm12
minss xmm0, xmm1
movss xmm1, dword [rax + r13 - 0x43c]
mulss xmm1, xmm10
movss dword [rax + rcx - 0x418], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [rax + 0x24]
movss dword [rax + r13 - 0x43c], xmm1
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm11
maxss xmm1, xmm0
movaps xmm0, xmm12
minss xmm0, xmm1
movss xmm1, dword [rax + rdi - 0x43c]
mulss xmm1, xmm10
movss dword [rax + rcx - 0x414], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [rax + 0x28]
movss dword [rax + rdi - 0x43c], xmm1
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm11
maxss xmm1, xmm0
movaps xmm0, xmm12
minss xmm0, xmm1
movss xmm1, dword [rax + rbx - 0x43c]
mulss xmm1, xmm10
movss dword [rax + rcx - 0x410], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [rax + 0x2c]
movss dword [rax + rbx - 0x43c], xmm1
mov rbx, qword [rbp - 0x70]
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm11
maxss xmm1, xmm0
movaps xmm0, xmm12
minss xmm0, xmm1
movss xmm1, dword [rax + rbx - 0x43c]
mulss xmm1, xmm10
movss dword [rax + rcx - 0x40c], xmm0
movaps xmm0, xmm2
movss dword [rax + rbx - 0x43c], xmm1
mulss xmm0, dword [rax + 0x30]
mov rbx, qword [rbp - 0x68]
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm11
maxss xmm1, xmm0
movaps xmm0, xmm12
minss xmm0, xmm1
movss xmm1, dword [rax + rbx - 0x43c]
mulss xmm1, xmm10
movss dword [rax + rcx - 0x408], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [rax + 0x34]
movss dword [rax + rbx - 0x43c], xmm1
mov rbx, qword [rbp - 0x60]
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm11
maxss xmm1, xmm0
movaps xmm0, xmm12
minss xmm0, xmm1
movss xmm1, dword [rax + rbx - 0x43c]
mulss xmm1, xmm10
movss dword [rax + rcx - 0x404], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [rax + 0x38]
movss dword [rax + rbx - 0x43c], xmm1
mov rbx, qword [rsp + 0x50]
mulss xmm1, xmm3
addss xmm0, xmm1
movaps xmm1, xmm11
maxss xmm1, xmm0
movaps xmm0, xmm12
minss xmm0, xmm1
movss dword [rax + rcx - 0x400], xmm0
add rax, 0x40
sub qword [rsp + 0x60], 1
jne 0x180019ec0
mov rdi, qword [rbp - 0x58]
mov r14d, dword [rsp + 0x48]
mov r15d, dword [rsp + 0x4c]
mov esi, dword [rsp + 0x38]
mov r12d, dword [rsp + 0x34]
mov r13, qword [rsp + 0x68]
lea rax, [rdi + 0x38]
mov edx, 2
lea rcx, [rdi + 0x138]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x18001a320
lea rax, [rdi + 0x238]
mov edx, 2
lea rcx, [rdi + 0x338]
nop word [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x18001a390
jmp 0x18001a41f
inc dword [rdi + 0x14]
cmp dword [rdi + 0x14], edx
jne case.0x180018e21.125
mov dword [rdi + 0x14], r8d
jmp case.0x180018e21.125
mov edx, 0x11f
mov rcx, rdi
call fcn.180005600
cmp eax, 1
jne 0x18001a41f
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], 2
mov edx, 0xbd
mov rcx, rdi
call fcn.18001e590
xorps xmm1, xmm1
movss xmm2, dword [0x18005713c]
mov edx, dword [rsp + 0x30]
movss xmm3, dword [0x180057150]
lea r9, [0x180000000]
movss xmm4, dword [0x1800570b0]
lea r11, [0x180051f38]
movss xmm5, dword [0x180057160]
dec esi
mov r10, qword [rsp + 0x70]
mov ebx, 1
mov dword [rsp + 0x38], esi
lea r8d, [rbx - 1]
cmp esi, r12d
ja 0x180018e01
movaps xmm15, xmmword [rsp + 0xc80]
movaps xmm14, xmmword [rsp + 0xc90]
movaps xmm13, xmmword [rsp + 0xca0]
movaps xmm12, xmmword [rsp + 0xcb0]
movaps xmm11, xmmword [rsp + 0xcc0]
movaps xmm10, xmmword [rsp + 0xcd0]
movaps xmm9, xmmword [rsp + 0xce0]
movaps xmm8, xmmword [rsp + 0xcf0]
movaps xmm7, xmmword [rsp + 0xd00]
movaps xmm6, xmmword [rsp + 0xd10]
mov r15, qword [rsp + 0xd20]
mov r14, qword [rsp + 0xd28]
mov r13, qword [rsp + 0xd30]
mov rbx, qword [rsp + 0xd78]
mov rcx, qword [rbp + 0xb70]
xor rcx, rsp
call fcn.18004c9e0
add rsp, 0xd38
pop r12
pop rdi
pop rsi
pop rbp
ret