Function at 0x14016ac70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1404af540]
xor rax, rsp
mov qword [rbp + 0x98], rax
mov r14, rcx
xor r13d, r13d
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], r13
mov qword [rbp + 0x60], r13
mov r8d, Ordinal_16
lea rdx, str.grid_sample
lea rcx, [rbp + 0x48]
call fcn.140006340
nop
lea r8, [rbp + 0x48]
mov rbx, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x60]
cmp rdi, 7
cmova r8, rbx
movabs rdx, 0xcbf29ce484222325
mov ecx, r13d
mov r10, qword [rbp + 0x58]
lea r9, [r10 + r10]
test r9, r9
je 0x14016ad24
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [r8 + rcx]
xor rdx, rax
imul rdx, r11
inc rcx
cmp rcx, r9
jb 0x14016ad10
mov r11, qword [r14 + 0x388]
and r11, rdx
shl r11, 4
add r11, qword [r14 + 0x370]
mov rax, qword [r11 + 8]
mov rsi, qword [r14 + 0x360]
cmp rax, rsi
je 0x14016ada1
mov r11, qword [r11]
nop dword [rax]
lea rdx, [rax + 0x10]
cmp qword [rax + 0x28], 7
jbe 0x14016ad5f
mov rdx, qword [rax + 0x10]
lea r9, [rbp + 0x48]
cmp rdi, 7
cmova r9, rbx
cmp r10, qword [rax + 0x20]
jne 0x14016ad96
mov r8, r10
test r10, r10
je 0x14016ada4
sub r9, rdx
nop dword [rax]
movzx ecx, word [rdx]
cmp word [rdx + r9], cx
jne 0x14016ad96
add rdx, 2
sub r8, 1
jne 0x14016ad80
jmp 0x14016ada4
cmp rax, r11
je 0x14016ada1
mov rax, qword [rax + 8]
jmp 0x14016ad50
mov rax, r13
test rax, rax
cmove rax, rsi
cmp rax, rsi
je 0x14016add5
mov rcx, qword [rax + 0x30]
test rcx, rcx
je 0x14016add5
mov dword [rsp + 0x20], r13d
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
call sub.VCRUNTIME140.dll___RTDynamicCast
jmp 0x14016add8
mov rax, r13
mov qword [r14 + 0x470], rax
cmp rdi, 7
jbe 0x14016ae1d
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14016ae15
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14016ae15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1403ca488
mov rcx, qword [r14 + 0x470]
call fcn.1401c6330
mov edx, dword [0x1404c5704]
inc edx
mov rax, qword [r14 + 0x470]
mov rcx, qword [rax + 0x900]
mov rax, qword [rcx]
call qword [rax + 0x3f0]
mov edx, 1
mov rcx, qword [r14 + 0x470]
call fcn.1401c5d30
mov rax, qword [r14 + 0x470]
mov rcx, qword [rax + 0x900]
mov rax, qword [rcx]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call qword [rax + 0x3f8]
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
mov r8d, reloc.SinoSPE.dll_Ordinal_16
lea rdx, str.TEMPDIAG_YD_ADDR
lea rcx, [rbp + 0x68]
call fcn.140006340
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x68]
mov rcx, qword [r14 + 0x470]
call fcn.1401c6080
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
mov r8d, reloc.SinoSPE.dll_Ordinal_16
lea rdx, str.TEMPDIAG_YD_TYPE
lea rcx, [rbp + 0x68]
call fcn.140006340
xor r9d, r9d
mov r8d, 1
lea rdx, [rbp + 0x68]
mov rcx, qword [r14 + 0x470]
call fcn.1401c6080
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
mov r8d, reloc.SinoSPE.dll_Ordinal_24
lea rdx, str.TEMPDIAG_YD_SAMPLE_VALUE
lea rcx, [rbp + 0x68]
call fcn.140006340
xor r9d, r9d
mov r8d, 2
lea rdx, [rbp + 0x68]
mov rcx, qword [r14 + 0x470]
call fcn.1401c6080
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
mov r8d, reloc.SinoSPE.dll_Ordinal_21
lea rdx, str.TEMPDIAG_YD_SET_VALUE
lea rcx, [rbp + 0x68]
call fcn.140006340
xor r9d, r9d
mov r8d, 3
lea rdx, [rbp + 0x68]
mov rcx, qword [r14 + 0x470]
call fcn.1401c6080
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
mov r8d, Ordinal_16
lea rdx, str.TEMPDIAG_YD_MV
lea rcx, [rbp + 0x68]
call fcn.140006340
xor r9d, r9d
mov r8d, 4
lea rdx, [rbp + 0x68]
mov rcx, qword [r14 + 0x470]
call fcn.1401c6080
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
mov r8d, reloc.SinoSPE.dll_Ordinal_16
lea rdx, str.TEMPDIAG_YD_HIAL
lea rcx, [rbp + 0x68]
call fcn.140006340
xor r9d, r9d
mov r8d, 5
lea rdx, [rbp + 0x68]
mov rcx, qword [r14 + 0x470]
call fcn.1401c6080
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
mov r8d, reloc.SinoSPE.dll_Ordinal_16
lea rdx, str.TEMPDIAG_YD_LOAL
lea rcx, [rbp + 0x68]
call fcn.140006340
xor r9d, r9d
mov r8d, 6
lea rdx, [rbp + 0x68]
mov rcx, qword [r14 + 0x470]
call fcn.1401c6080
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
mov r8d, reloc.SinoSPE.dll_Ordinal_16
lea rdx, str.TEMPDIAG_YD_DHAL
lea rcx, [rbp + 0x68]
call fcn.140006340
xor r9d, r9d
mov r8d, 7
lea rdx, [rbp + 0x68]
mov rcx, qword [r14 + 0x470]
call fcn.1401c6080
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
mov r8d, reloc.SinoSPE.dll_Ordinal_16
lea rdx, str.TEMPDIAG_YD_DLAL
lea rcx, [rbp + 0x68]
call fcn.140006340
xor r9d, r9d
mov r8d, 8
lea rdx, [rbp + 0x68]
mov rcx, qword [r14 + 0x470]
call fcn.1401c6080
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
mov r8d, reloc.SinoSPE.dll_Ordinal_16
lea rdx, str.TEMPDIAG_YD_ORAL
lea rcx, [rbp + 0x68]
call fcn.140006340
xor r9d, r9d
mov r8d, 9
lea rdx, [rbp + 0x68]
mov rcx, qword [r14 + 0x470]
call fcn.1401c6080
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
mov r8d, reloc.SinoSPE.dll_Ordinal_15
lea rdx, str.TEMPDIAG_YD_AL1
lea rcx, [rbp + 0x68]
call fcn.140006340
xor r9d, r9d
mov r8d, 0xa
lea rdx, [rbp + 0x68]
mov rcx, qword [r14 + 0x470]
call fcn.1401c6080
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
mov r8d, reloc.SinoSPE.dll_Ordinal_15
lea rdx, str.TEMPDIAG_YD_AL2
lea rcx, [rbp + 0x68]
call fcn.140006340
xor r9d, r9d
mov r8d, Ordinal_16
lea rdx, [rbp + 0x68]
mov rcx, qword [r14 + 0x470]
call fcn.1401c6080
mov rcx, qword [r14 + 0x470]
mov dword [rsp + 0x20], Ordinal_40
xor edx, edx
mov r8d, 1
mov rcx, qword [rcx + 0x900]
call fcn.14022ca00
mov rcx, qword [r14 + 0x470]
mov dword [rsp + 0x20], Ordinal_40
mov edx, 1
mov r8d, edx
mov rcx, qword [rcx + 0x900]
call fcn.14022ca00
mov rcx, qword [r14 + 0x470]
mov dword [rsp + 0x20], Ordinal_40
mov edx, 2
mov r8d, 1
mov rcx, qword [rcx + 0x900]
call fcn.14022ca00
mov rcx, qword [r14 + 0x470]
mov dword [rsp + 0x20], Ordinal_40
mov edx, 3
mov r8d, 1
mov rcx, qword [rcx + 0x900]
call fcn.14022ca00
mov rcx, qword [r14 + 0x470]
mov dword [rsp + 0x20], Ordinal_40
mov edx, 4
mov r8d, 1
mov rcx, qword [rcx + 0x900]
call fcn.14022ca00
mov rcx, qword [r14 + 0x470]
mov dword [rsp + 0x20], Ordinal_40
mov edx, 5
mov r8d, 1
mov rcx, qword [rcx + 0x900]
call fcn.14022ca00
mov rcx, qword [r14 + 0x470]
mov dword [rsp + 0x20], Ordinal_40
mov edx, 6
mov r8d, 1
mov rcx, qword [rcx + 0x900]
call fcn.14022ca00
mov rcx, qword [r14 + 0x470]
mov dword [rsp + 0x20], Ordinal_40
mov edx, 7
mov r8d, 1
mov rcx, qword [rcx + 0x900]
call fcn.14022ca00
mov rcx, qword [r14 + 0x470]
mov dword [rsp + 0x20], Ordinal_40
mov edx, 8
mov r8d, 1
mov rcx, qword [rcx + 0x900]
call fcn.14022ca00
mov rcx, qword [r14 + 0x470]
mov dword [rsp + 0x20], Ordinal_40
mov edx, 9
mov r8d, 1
mov rcx, qword [rcx + 0x900]
call fcn.14022ca00
mov rcx, qword [r14 + 0x470]
mov dword [rsp + 0x20], Ordinal_40
mov edx, 0xa
mov r8d, 1
mov rcx, qword [rcx + 0x900]
call fcn.14022ca00
mov rcx, qword [r14 + 0x470]
mov dword [rsp + 0x20], Ordinal_40
mov edx, VariantTimeToDosDateTime
mov r8d, 1
mov rcx, qword [rcx + 0x900]
call fcn.14022ca00
mov rcx, qword [r14 + 0x470]
mov r9b, 1
xor edx, edx
mov r8d, 0x64
mov rcx, qword [rcx + 0x900]
call fcn.14022a730
mov ebx, 1
cmp dword [0x1404c5704], ebx
jl 0x14016bfaa
mov edi, ebx
lea r12, [0x140000000]
mov esi, Ordinal_48
lea ecx, [rbx + 0x20ff]
call qword [sym.imp.calcbase64.dll_GetChannelById]
mov r15, rax
test rax, rax
je 0x14016b4bd
lea rsi, [rax + 0x60]
cmp qword [rax + 0x90], 0
jne 0x14016b467
call fcn.1401d56e0
mov rcx, rax
mov r8, r15
lea rdx, [rbp + 0x28]
call fcn.1401d7170
nop
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14016b3c9
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp + 0x28]
call fcn.140003f40
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x78], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov r9d, ebx
xor r8d, r8d
lea rdx, [rbp + 0x68]
mov rcx, qword [r14 + 0x470]
call fcn.1401c5fa0
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 7
jbe 0x14016b568
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016b45d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016bfda
call fcn.1403ca488
jmp 0x14016b568
lea r9, [rax + 0x80]
mov rcx, qword [r9 + 0x10]
mov rdx, qword [rsi + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, rdx
jb 0x14016bfe1
cmp qword [r9 + 0x18], 7
jbe 0x14016b496
mov r9, qword [r9]
cmp qword [rsi + 0x18], 7
jbe 0x14016b4a0
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x28]
call fcn.1400d1c70
jmp 0x14016b552
lea ecx, [rbx - 1]
lea r9, [rbp + 0x92]
test ecx, ecx
jns 0x14016b510
neg ecx
nop dword [rax]
sub r9, 2
mov eax, 0xcccccccd
mul ecx
shr edx, 3
movzx eax, dx
shl ax, 2
lea r8d, [rax + rdx]
add r8w, r8w
sub cx, r8w
add cx, 0x30
mov word [r9], cx
mov ecx, edx
test edx, edx
jne 0x14016b4d0
add r9, 0xfffffffffffffffe
mov word [r9], si
jmp 0x14016b53f
sub r9, 2
mov eax, 0xcccccccd
mul ecx
shr edx, 3
movzx eax, dx
shl ax, 2
lea r8d, [rax + rdx]
add r8w, r8w
sub cx, r8w
add cx, 0x30
mov word [r9], cx
mov ecx, edx
test edx, edx
jne 0x14016b510
lea r8, [rbp + 0x92]
mov rdx, r9
lea rcx, [rbp + 0x28]
call fcn.140003b60
mov r9d, ebx
xor r8d, r8d
lea rdx, [rbp + 0x28]
mov rcx, qword [r14 + 0x470]
call fcn.1401c5fa0
movsxd rax, dword [r12 + rdi*4 + 0x4af76c]
test eax, eax
js 0x14016b5cd
lea rcx, [rax + rax*4]
lea rdx, [rcx*2 + 0x410ad0]
add rdx, r12
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r13
mov qword [rbp + 0x80], r13
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14016b5a0
lea rcx, [rbp + 0x68]
call fcn.140006340
mov r9d, ebx
mov r8d, 1
lea rdx, [rbp + 0x68]
mov rcx, qword [r14 + 0x470]
call fcn.1401c5fa0
mov rax, qword [r14 + 0x470]
mov rax, qword [rax + 0x900]
mov r15, r13
test ebx, ebx
js 0x14016b625
mov rcx, qword [rax + 0x698]
mov rax, qword [rax + 0x6a0]
sub rax, rcx
sar rax, 3
cmp rax, 2
jbe 0x14016b625
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, rdx
sar rcx, 3
movsxd rax, ebx
cmp rax, rcx
jae 0x14016b625
cmp rdi, rcx
jae 0x14016b622
mov r15, qword [rdx + rdi*8]
jmp 0x14016b625
mov r15, r13
mov dword [r15 + 0x74], 5
mov r12, qword [r15 + 0x90]
mov rsi, qword [r15 + 0x88]
cmp rsi, r12
je 0x14016b668
lea rcx, [rsi + 0x28]
call fcn.140006060
mov rcx, rsi
call fcn.140006060
add rsi, 0x48
cmp rsi, r12
jne 0x14016b640
mov rax, qword [r15 + 0x88]
mov qword [r15 + 0x90], rax
mov dword [r15 + 0x84], 0xffffffff
add r15, 8
mov qword [r15 + 0x10], r13
cmp qword [r15 + 0x18], 7
jbe 0x14016b685
mov r15, qword [r15]
mov word [r15], r13w
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea rdx, str.textgridparamerror
lea rcx, [rsp + 0x48]
call fcn.140006340
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [r14 + 0x470]
mov rax, qword [rax + 0x900]
mov rdx, r13
test ebx, ebx
js 0x14016b714
mov rcx, qword [rax + 0x698]
mov rax, qword [rax + 0x6a0]
sub rax, rcx
sar rax, 3
cmp rax, 2
jbe 0x14016b714
mov rax, qword [rcx + 0x10]
mov r8, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, r8
sar rcx, 3
movsxd rax, ebx
cmp rax, rcx
jae 0x14016b714
cmp rdi, rcx
jae 0x14016b711
mov rdx, qword [r8 + rdi*8]
jmp 0x14016b714
mov rdx, r13
lea rcx, [rdx + 0x28]
lea rax, [rsp + 0x48]
cmp rcx, rax
je 0x14016b73e
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
call fcn.1400050d0
nop
lea rcx, [rsp + 0x48]
call fcn.140006060
mov rax, qword [r14 + 0x470]
mov rax, qword [rax + 0x900]
test ebx, ebx
js 0x14016b7ba
mov rcx, qword [rax + 0x698]
mov rax, qword [rax + 0x6a0]
sub rax, rcx
sar rax, 3
cmp rax, 2
jbe 0x14016b7ba
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, rdx
sar rcx, 3
movsxd rax, ebx
cmp rax, rcx
jae 0x14016b7ba
cmp rdi, rcx
jae 0x14016b79a
mov rax, qword [rdx + rdi*8]
jmp 0x14016b79d
mov rax, r13
mov dword [rax + 0x80], 1
mov rax, qword [r14 + 0x470]
mov rax, qword [rax + 0x900]
mov r15, r13
jmp 0x14016b7da
mov dword [r13 + 0x80], 1
mov rax, qword [r14 + 0x470]
mov rax, qword [rax + 0x900]
mov r15, r13
test ebx, ebx
js 0x14016b81d
mov rcx, qword [rax + 0x698]
mov rax, qword [rax + 0x6a0]
sub rax, rcx
sar rax, 3
cmp rax, 3
jbe 0x14016b81d
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, rdx
sar rcx, 3
movsxd rax, ebx
cmp rax, rcx
jae 0x14016b81d
cmp rdi, rcx
jae 0x14016b81a
mov r15, qword [rdx + rdi*8]
jmp 0x14016b81d
mov r15, r13
mov dword [r15 + 0x74], 5
mov rsi, qword [r15 + 0x88]
mov r12, qword [r15 + 0x90]
cmp rsi, r12
je 0x14016b868
nop dword [rax + rax]
lea rcx, [rsi + 0x28]
call fcn.140006060
mov rcx, rsi
call fcn.140006060
add rsi, 0x48
cmp rsi, r12
jne 0x14016b840
mov rax, qword [r15 + 0x88]
mov qword [r15 + 0x90], rax
mov dword [r15 + 0x84], 0xffffffff
add r15, 8
mov qword [r15 + 0x10], r13
cmp qword [r15 + 0x18], 7
jbe 0x14016b885
mov r15, qword [r15]
mov word [r15], r13w
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], r13
mov r8d, Ordinal_16
lea rdx, str.textgridgreen
lea rcx, [rsp + 0x68]
call fcn.140006340
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov rax, qword [r14 + 0x470]
mov rax, qword [rax + 0x900]
mov rdx, r13
test ebx, ebx
js 0x14016b913
mov rcx, qword [rax + 0x698]
mov rax, qword [rax + 0x6a0]
sub rax, rcx
sar rax, 3
cmp rax, 3
jbe 0x14016b913
mov rax, qword [rcx + 0x18]
mov r8, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, r8
sar rcx, 3
movsxd rax, ebx
cmp rax, rcx
jae 0x14016b913
cmp rdi, rcx
jae 0x14016b910
mov rdx, qword [r8 + rdi*8]
jmp 0x14016b913
mov rdx, r13
lea rcx, [rdx + 0x28]
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x14016b93c
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 7
cmova rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
call fcn.1400050d0
nop
lea rcx, [rsp + 0x68]
call fcn.140006060
mov rax, qword [r14 + 0x470]
mov rax, qword [rax + 0x900]
test ebx, ebx
js 0x14016b9b8
mov rcx, qword [rax + 0x698]
mov rax, qword [rax + 0x6a0]
sub rax, rcx
sar rax, 3
cmp rax, 3
jbe 0x14016b9b8
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, rdx
sar rcx, 3
movsxd rax, ebx
cmp rax, rcx
jae 0x14016b9b8
cmp rdi, rcx
jae 0x14016b998
mov rax, qword [rdx + rdi*8]
jmp 0x14016b99b
mov rax, r13
mov dword [rax + 0x80], 1
mov rax, qword [r14 + 0x470]
mov rax, qword [rax + 0x900]
mov r15, r13
jmp 0x14016b9d8
mov dword [r13 + 0x80], 1
mov rax, qword [r14 + 0x470]
mov rax, qword [rax + 0x900]
mov r15, r13
test ebx, ebx
js 0x14016ba1b
mov rcx, qword [rax + 0x698]
mov rax, qword [rax + 0x6a0]
sub rax, rcx
sar rax, 3
cmp rax, 4
jbe 0x14016ba1b
mov rax, qword [rcx + 0x20]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, rdx
sar rcx, 3
movsxd rax, ebx
cmp rax, rcx
jae 0x14016ba1b
cmp rdi, rcx
jae 0x14016ba18
mov r15, qword [rdx + rdi*8]
jmp 0x14016ba1b
mov r15, r13
mov dword [r15 + 0x74], 1
mov rsi, qword [r15 + 0x88]
mov r12, qword [r15 + 0x90]
cmp rsi, r12
je 0x14016ba5e
lea rcx, [rsi + 0x28]
call fcn.140006060
mov rcx, rsi
call fcn.140006060
add rsi, 0x48
cmp rsi, r12
jne 0x14016ba36
mov rax, qword [r15 + 0x88]
mov qword [r15 + 0x90], rax
mov dword [r15 + 0x84], 0xffffffff
add r15, 8
mov qword [r15 + 0x10], r13
cmp qword [r15 + 0x18], 7
jbe 0x14016ba7b
mov r15, qword [r15]
mov word [r15], r13w
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], r13
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea rdx, str.textgridparamerror
lea rcx, [rbp - 0x78]
call fcn.140006340
lea rax, [rbp - 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [r14 + 0x470]
mov rax, qword [rax + 0x900]
mov rdx, r13
test ebx, ebx
js 0x14016bb05
mov rcx, qword [rax + 0x698]
mov rax, qword [rax + 0x6a0]
sub rax, rcx
sar rax, 3
cmp rax, 5
jbe 0x14016bb05
mov rax, qword [rcx + 0x28]
mov r8, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, r8
sar rcx, 3
movsxd rax, ebx
cmp rax, rcx
jae 0x14016bb05
cmp rdi, rcx
jae 0x14016bb02
mov rdx, qword [r8 + rdi*8]
jmp 0x14016bb05
mov rdx, r13
lea rcx, [rdx + 0x28]
lea rax, [rbp - 0x78]
cmp rcx, rax
je 0x14016bb2a
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 7
cmova rdx, qword [rbp - 0x78]
mov r8, qword [rbp - 0x68]
call fcn.1400050d0
nop
lea rcx, [rbp - 0x78]
call fcn.140006060
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], r13
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea rdx, str.textgridparamerror
lea rcx, [rbp - 0x58]
call fcn.140006340
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
mov rax, qword [r14 + 0x470]
mov rax, qword [rax + 0x900]
mov rdx, r13
test ebx, ebx
js 0x14016bbb9
mov rcx, qword [rax + 0x698]
mov rax, qword [rax + 0x6a0]
sub rax, rcx
sar rax, 3
cmp rax, 6
jbe 0x14016bbb9
mov rax, qword [rcx + 0x30]
mov r8, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, r8
sar rcx, 3
movsxd rax, ebx
cmp rax, rcx
jae 0x14016bbb9
cmp rdi, rcx
jae 0x14016bbb6
mov rdx, qword [r8 + rdi*8]
jmp 0x14016bbb9
mov rdx, r13
lea rcx, [rdx + 0x28]
lea rax, [rbp - 0x58]
cmp rcx, rax
je 0x14016bbde
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 7
cmova rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x48]
call fcn.1400050d0
nop
lea rcx, [rbp - 0x58]
call fcn.140006060
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], r13
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea rdx, str.textgridparamerror
lea rcx, [rbp - 0x38]
call fcn.140006340
lea rax, [rbp - 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [r14 + 0x470]
mov rax, qword [rax + 0x900]
mov rdx, r13
test ebx, ebx
js 0x14016bc6d
mov rcx, qword [rax + 0x698]
mov rax, qword [rax + 0x6a0]
sub rax, rcx
sar rax, 3
cmp rax, 7
jbe 0x14016bc6d
mov rax, qword [rcx + 0x38]
mov r8, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, r8
sar rcx, 3
movsxd rax, ebx
cmp rax, rcx
jae 0x14016bc6d
cmp rdi, rcx
jae 0x14016bc6a
mov rdx, qword [r8 + rdi*8]
jmp 0x14016bc6d
mov rdx, r13
lea rcx, [rdx + 0x28]
lea rax, [rbp - 0x38]
cmp rcx, rax
je 0x14016bc92
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 7
cmova rdx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x28]
call fcn.1400050d0
nop
lea rcx, [rbp - 0x38]
call fcn.140006060
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r13
mov qword [rbp], r13
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea rdx, str.textgridparamerror
lea rcx, [rbp - 0x18]
call fcn.140006340
lea rax, [rbp - 0x18]
mov qword [rsp + 0x40], rax
mov rax, qword [r14 + 0x470]
mov rax, qword [rax + 0x900]
mov rdx, r13
test ebx, ebx
js 0x14016bd21
mov rcx, qword [rax + 0x698]
mov rax, qword [rax + 0x6a0]
sub rax, rcx
sar rax, 3
cmp rax, 8
jbe 0x14016bd21
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, r8
sar rcx, 3
movsxd rax, ebx
cmp rax, rcx
jae 0x14016bd21
cmp rdi, rcx
jae 0x14016bd1e
mov rdx, qword [r8 + rdi*8]
jmp 0x14016bd21
mov rdx, r13
lea rcx, [rdx + 0x28]
lea rax, [rbp - 0x18]
cmp rcx, rax
je 0x14016bd46
lea rdx, [rbp - 0x18]
cmp qword [rbp], 7
cmova rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 8]
call fcn.1400050d0
nop
lea rcx, [rbp - 0x18]
call fcn.140006060
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x20], r13
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetUBound
lea rdx, str.textgridparamerror
lea rcx, [rbp + 8]
call fcn.140006340
lea rax, [rbp + 8]
mov qword [rsp + 0x40], rax
mov rax, qword [r14 + 0x470]
mov rax, qword [rax + 0x900]
mov rdx, r13
test ebx, ebx
js 0x14016bdd5
mov rcx, qword [rax + 0x698]
mov rax, qword [rax + 0x6a0]
sub rax, rcx
sar rax, 3
cmp rax, 9
jbe 0x14016bdd5
mov rax, qword [rcx + 0x48]
mov r8, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, r8
sar rcx, 3
movsxd rax, ebx
cmp rax, rcx
jae 0x14016bdd5
cmp rdi, rcx
jae 0x14016bdd2
mov rdx, qword [r8 + rdi*8]
jmp 0x14016bdd5
mov rdx, r13
lea rcx, [rdx + 0x28]
lea rax, [rbp + 8]
cmp rcx, rax
je 0x14016bdfa
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 7
cmova rdx, qword [rbp + 8]
mov r8, qword [rbp + 0x18]
call fcn.1400050d0
nop
lea rcx, [rbp + 8]
call fcn.140006060
mov r15, r13
test ebx, ebx
js 0x14016be5b
mov rax, qword [r14 + 0x470]
mov rcx, qword [rax + 0x900]
mov rdx, qword [rcx + 0x698]
mov rax, qword [rcx + 0x6a0]
sub rax, rdx
sar rax, 3
cmp rax, 0xa
jbe 0x14016be5b
mov rax, qword [rdx + 0x50]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, rdx
sar rcx, 3
movsxd rax, ebx
cmp rax, rcx
jae 0x14016be5b
cmp rdi, rcx
jae 0x14016be58
mov r15, qword [rdx + rdi*8]
jmp 0x14016be5b
mov r15, r13
mov dword [r15 + 0x74], 1
mov rsi, qword [r15 + 0x88]
mov r12, qword [r15 + 0x90]
cmp rsi, r12
je 0x14016be9e
lea rcx, [rsi + 0x28]
call fcn.140006060
mov rcx, rsi
call fcn.140006060
add rsi, 0x48
cmp rsi, r12
jne 0x14016be76
mov rax, qword [r15 + 0x88]
mov qword [r15 + 0x90], rax
mov dword [r15 + 0x84], 0xffffffff
add r15, 8
mov qword [r15 + 0x10], r13
cmp qword [r15 + 0x18], 7
jbe 0x14016bebb
mov r15, qword [r15]
mov word [r15], r13w
mov r15, r13
test ebx, ebx
js 0x14016bf17
mov rax, qword [r14 + 0x470]
mov rcx, qword [rax + 0x900]
mov rdx, qword [rcx + 0x698]
mov rax, qword [rcx + 0x6a0]
sub rax, rdx
sar rax, 3
cmp rax, 0xb
jbe 0x14016bf17
mov rax, qword [rdx + 0x58]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
sub rcx, rdx
sar rcx, 3
movsxd rax, ebx
cmp rax, rcx
jae 0x14016bf17
cmp rdi, rcx
jae 0x14016bf14
mov r15, qword [rdx + rdi*8]
jmp 0x14016bf17
mov r15, r13
mov dword [r15 + 0x74], 1
mov rsi, qword [r15 + 0x88]
mov r12, qword [r15 + 0x90]
cmp rsi, r12
je 0x14016bf5a
lea rcx, [rsi + 0x28]
call fcn.140006060
mov rcx, rsi
call fcn.140006060
add rsi, 0x48
cmp rsi, r12
jne 0x14016bf32
mov rax, qword [r15 + 0x88]
mov qword [r15 + 0x90], rax
mov dword [r15 + 0x84], 0xffffffff
add r15, 8
mov qword [r15 + 0x10], r13
cmp qword [r15 + 0x18], 7
jbe 0x14016bf77
mov r15, qword [r15]
mov word [r15], r13w
mov rcx, qword [r14 + 0x470]
mov r9b, 1
mov r8d, 0x64
mov edx, ebx
mov rcx, qword [rcx + 0x900]
call fcn.14022a730
inc ebx
inc rdi
cmp ebx, dword [0x1404c5704]
jle 0x14016b371
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.1403ca460
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006110
int3