Function at 0x140188cc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movapd xmmword [rsp + 0x100], xmm8
movapd xmmword [rsp + 0xf0], xmm7
movaps xmmword [rsp + 0xe0], xmm6
mov rbx, qword [rcx + 8]
test rbx, rbx
je 0x14018a334
mov rsi, rcx
movzx r14d, byte [rbx + 0x17]
test r14b, r14b
jns 0x140188d23
mov r14, qword [rbx + 8]
test r14, r14
js 0x14018a346
mov rbx, qword [rbx]
je 0x140188d23
test rbx, rbx
je 0x14018a37c
xorpd xmm0, xmm0
movupd xmmword [rsp + 0xa4], xmm0
movupd xmmword [rsp + 0x98], xmm0
movupd xmmword [rsp + 0x88], xmm0
movupd xmmword [rsp + 0x78], xmm0
movupd xmmword [rsp + 0x68], xmm0
movapd xmm6, xmmword [0x1402a9290]
movupd xmmword [rsp + 0x58], xmm6
lea rdi, [rsp + 0x70]
test r14, r14
je 0x140188d9d
lea eax, [r14*8]
mov rcx, r14
shr rcx, 0x1d
mov dword [rsp + 0x6c], ecx
mov dword [rsp + 0x68], eax
mov r8, r14
cmp r14, 0x40
jae 0x140189c61
mov dword [rsp + 0xb0], r14d
mov rcx, rdi
mov rdx, rbx
call fcn.1401d0030
mov eax, dword [rsp + 0xb0]
lea rcx, [rax + 1]
mov ebx, dword [rsp + 0x68]
mov ebp, dword [rsp + 0x6c]
mov byte [rsp + rax + 0x70], 0x80
cmp rax, 0x38
jae 0x140189c1b
cmp rcx, 0x38
je 0x140188dd8
mov r8d, 0x38
sub r8, rcx
add rcx, rdi
xor edx, edx
call fcn.1401d06e0
mov dword [rsp + 0xa8], ebx
mov dword [rsp + 0xac], ebp
lea rcx, [rsp + 0x58]
mov r8d, 1
mov rdx, rdi
call fcn.140102c40
mov rbx, qword [rsp + 0x58]
mov r14, qword [0x1402e5c40]
movabs rbp, 0xaaaaaaaaaaaaaaaa
test r14, r14
je 0x140188e8b
mov r15d, dword [r14 + 0x50]
mov qword [rsp + 0x48], rbp
mov r9d, dword [r14 + 0x6c]
mov eax, dword [r14 + 0x68]
mov rcx, qword [r14 + 0x60]
cmp eax, 0x30
je 0x140189cda
lea r10d, [rax + 0x10]
cmp r10d, 0x50
jb 0x140188e8b
mov r8d, eax
mov edx, r8d
and edx, 7
jne 0x140188e8b
mov edx, dword [rcx + 0x14]
cmp edx, r10d
jb 0x140188e8b
mov rcx, qword [rcx + 8]
mov r10d, dword [rcx + r8 + 4]
cmp r10d, 0xc8799269
jne 0x140188e8b
add rcx, r8
mov r8d, dword [rcx]
cmp r8d, 0x10
jb 0x140188e8b
mov r8d, dword [rcx]
add r8d, eax
jb 0x140188e8b
cmp r8d, edx
ja 0x140188e8b
test rcx, rcx
je 0x140188e8b
mov edx, dword [rcx + 0xc]
cmp edx, 0x30
jne 0x1401891d4
mov r15, qword [0x1402e5910]
movabs r13, 0x7fffffffffffffff
cmp r15, 1
jbe 0x14018a0db
mov rax, qword [0x1402cbde0]
and rax, r15
cmp rax, qword [0x1402cbdc8]
je 0x14018a34c
test r15, r15
je 0x14018a337
mov qword [rsp + 0x58], rbp
mov rax, qword [fcn.1401c9410]
lea rcx, [rsp + 0x58]
call qword [0x1402f5008]
cmp byte [r15 + 8], 0
je 0x14018a37f
lea r14, [r15 + 0x10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [r15 + 0x28]
cmp eax, 0x7fffffff
jae 0x14018a0b1
inc eax
mov dword [r15 + 0x28], eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [fcn.1401c9410]
lea rcx, [rsp + 0x48]
call qword [0x1402f5008]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
xor edx, edx
cmp rax, rcx
setns dl
add rdx, r13
sub rax, rcx
cmovo rax, rdx
lock add qword [r15], rax
mov r12, qword [0x1402e5950]
test r12, r12
je 0x140189161
mov rax, qword [0x1402e5910]
cmp rax, 1
jbe 0x14018a1b7
mov r8, qword [r12 + 8]
test r8, r8
je 0x140189161
bswap rbx
mov rax, r8
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, r8
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x140189d20
mov rcx, rbx
cmp rbx, r8
jb 0x140188ff0
mov rax, rbx
xor edx, edx
div r8
mov rcx, rdx
mov rax, qword [r12]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x140189161
mov r10, qword [rax]
test r10, r10
je 0x140189161
xor r14d, r14d
mov rax, qword [r10 + 8]
cmp rbx, rax
jne 0x140189169
cmp qword [r10 + 0x10], rbx
jne 0x140189189
mov r14, qword [r10 + 0x18]
cmp byte [r15 + 8], 0
je 0x14018a33a
lea rbx, [r15 + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov ecx, dword [r15 + 0x28]
mov eax, ecx
and eax, 0x7fffffff
dec eax
and ecx, 0x80000000
or ecx, eax
mov dword [r15 + 0x28], ecx
js 0x14018a09a
cmp eax, 0x7ffffffe
je 0x14018a094
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [0x1402cbde0]
and rax, r15
cmp rax, qword [0x1402cbdc8]
je 0x14018a359
test r14, r14
je 0x1401892a7
mov edi, dword [rsi + 0x10]
mov rax, qword [r14]
mov rax, qword [rax + 0x18]
xor ecx, ecx
lea rdx, [0x1401ca620]
cmp rax, rdx
jne 0x14018919a
cmp edi, ecx
jne 0x14018a2d6
mov r9, qword [rsi + 0x20]
test r9, r9
je 0x140189131
mov edx, dword [rsi + 0x14]
mov r8d, dword [rsi + 0x18]
mov rax, qword [r14]
mov rax, qword [rax + 0x20]
lea rcx, [0x1401ca630]
cmp rax, rcx
jne 0x140189c4b
mov rax, qword [r14 + 0x18]
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx]
mov r10, qword [rcx + 8]
sub r10, rax
mov rcx, r10
sar rcx, 2
lea r11, [rcx - 1]
cmp r11, r9
jne 0x14018a2d6
cmp r11, 2
jb 0x14018a366
cmp r10, 4
jbe 0x14018a349
cmp dword [rax + 4], edx
jne 0x14018a2d6
mov eax, dword [rax + rcx*4 - 8]
cmp eax, r8d
jne 0x14018a2d6
mov rax, r14
movaps xmm6, xmmword [rsp + 0xe0]
movaps xmm7, xmmword [rsp + 0xf0]
movaps xmm8, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x14018902b
cmp r9d, 1
jbe 0x140189d14
cmp rax, r8
jb 0x140189180
xor edx, edx
div r8
mov rax, rdx
cmp rax, rcx
jne 0x14018902b
mov r10, qword [r10]
test r10, r10
jne 0x140189010
jmp 0x14018902b
mov ecx, 1
lea rdx, [0x14018a470]
cmp rax, rdx
je 0x1401890b2
mov ecx, 2
lea rdx, [0x1401227e0]
cmp rax, rdx
je 0x1401890b2
mov rcx, r14
call qword [0x1402f5008]
mov ecx, eax
jmp 0x1401890b2
mov rcx, qword [r14 + 0x60]
lea r8d, [rdx + 0x10]
cmp r8d, 0x50
jb 0x14018a322
mov r10d, edx
and r10d, 7
jne 0x14018a322
mov r11d, dword [rcx + 0x14]
cmp r11d, r8d
jb 0x14018a322
mov r10, qword [rcx + 8]
mov r12d, dword [r10 + rdx + 4]
cmp r12d, 0xc8799269
jne 0x14018a322
add r10, rdx
mov r12d, dword [r10]
cmp r12d, 0x10
jb 0x14018a322
mov r13d, dword [r10]
add r13d, edx
setb r12b
test r10, r10
je 0x14018a322
test r12b, r12b
jne 0x14018a322
cmp r13d, r11d
mov r12d, 0xaaaaaaab
ja 0x14018a322
lock cmpxchg dword [r14 + 0x68], edx
jne 0x140188e25
mov eax, dword [r10 + 8]
mov rcx, qword [r14 + 0x60]
mov r10, qword [rcx + 8]
mov r10d, dword [r10 + 0x28]
mov r11d, dword [rcx + 0x14]
cmp r11d, r10d
cmovb r10d, r11d
imul r10, r12
shr r10, 0x24
cmp r9d, r10d
ja 0x14018a322
lock inc dword [r14 + 0x6c]
cmp eax, 0xf1645914
jne 0x140188e1d
cmp edx, r15d
je 0x140188e1d
jmp 0x140189d43
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x14018a3a4
movzx r14d, byte [rbx + 0x17]
test r14b, r14b
jns 0x1401892d9
mov r14, qword [rbx + 8]
test r14, r14
js 0x14018a3a7
mov rbx, qword [rbx]
je 0x1401892d9
test rbx, rbx
je 0x14018a3c9
xorpd xmm0, xmm0
movupd xmmword [rsp + 0xa4], xmm0
movupd xmmword [rsp + 0x98], xmm0
movupd xmmword [rsp + 0x88], xmm0
movupd xmmword [rsp + 0x78], xmm0
movupd xmmword [rsp + 0x68], xmm0
movupd xmmword [rsp + 0x58], xmm6
test r14, r14
je 0x140189346
lea eax, [r14*8]
mov rcx, r14
shr rcx, 0x1d
mov dword [rsp + 0x6c], ecx
mov dword [rsp + 0x68], eax
mov r8, r14
cmp r14, 0x40
jae 0x140189ce7
mov dword [rsp + 0xb0], r14d
mov rcx, rdi
mov rdx, rbx
call fcn.1401d0030
mov eax, dword [rsp + 0xb0]
lea rcx, [rax + 1]
mov ebp, dword [rsp + 0x68]
mov r14d, dword [rsp + 0x6c]
mov byte [rsp + rax + 0x70], 0x80
cmp rax, 0x38
jae 0x140189ca0
cmp rcx, 0x38
je 0x140189382
mov r8d, 0x38
sub r8, rcx
add rcx, rdi
xor edx, edx
call fcn.1401d06e0
lea rbx, [rsp + 0x58]
mov dword [rbx + 0x50], ebp
mov dword [rbx + 0x54], r14d
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
call fcn.140102c40
mov ecx, dword [rbx]
bswap ecx
call fcn.14018a480
test al, al
je 0x14018a312
mov rax, qword [rsi]
mov rax, qword [rax]
lea rcx, [0x1401c3ba0]
cmp rax, rcx
jne 0x140189882
mov ecx, 0x20
call fcn.1401cbbc4
mov rdi, rax
mov r14, qword [rsi + 0x20]
mov r15, r14
xorpd xmm0, xmm0
movupd xmmword [rax], xmm0
mov qword [rax + 0x10], 0
inc r15
je 0x140189cd0
mov rax, r15
shr rax, 0x3e
jne 0x14018a3c6
lea rcx, [r15*4]
call fcn.1401cbbc4
mov rbx, rax
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea r12, [rax + r15*4]
mov qword [rdi + 0x10], r12
lea rax, [r14*4 + 4]
xor ecx, ecx
nop dword [rax]
mov rdx, rbx
add rdx, rcx
je 0x14018a331
mov dword [rdx], 0
add rcx, 4
cmp rax, rcx
jne 0x140189430
mov qword [rdi + 8], r12
mov qword [rdi + 0x18], 0
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [rsi + 0x18]
call fcn.1401ecd70
mov r14, r12
sub r14, rbx
cmp r14, 4
jbe 0x14018a3c0
mov r15d, dword [rsi + 0x14]
mov dword [rbx + 4], r15d
sar r14, 2
lea rax, [r14 - 1]
cmp rax, 3
jb 0x140189555
movapd xmm6, xmm0
add r14, 0xfffffffffffffffd
mov r12d, 2
lea rbx, [rsp + 0x58]
movdqa xmm7, xmmword [0x1402a28e0]
movapd xmm8, xmmword [0x1402a28f0]
nop word cs:[rax + rax]
xorps xmm0, xmm0
cvtsi2sd xmm0, r15d
call fcn.1401ecd70
movsd qword [rsp + 0x58], xmm0
mov rcx, rbx
call fcn.14014b4b0
mov r13, qword [rdi]
mov rax, qword [rdi + 8]
sub rax, r13
sar rax, 2
cmp rax, r12
jbe 0x14018a32e
movsd xmm1, qword [rsp + 0x58]
movapd xmm0, xmm6
subsd xmm0, xmm1
movq xmm2, r14
punpckldq xmm2, xmm7
subpd xmm2, xmm8
movapd xmm3, xmm2
unpckhpd xmm3, xmm2
addsd xmm3, xmm2
divsd xmm0, xmm3
addsd xmm0, xmm1
call fcn.1401eb1e0
call fcn.140206210
cvttsd2si eax, xmm0
cmp r15d, eax
lea ecx, [r15 + 1]
cmovl ecx, eax
mov dword [r13 + r12*4], ecx
inc r12
mov r15d, ecx
dec r14
jne 0x1401894c0
mov rbx, qword [rdi]
mov r12, qword [rdi + 8]
cmp r12, rbx
je 0x14018a3c3
mov dword [r12 - 4], 0x7fffffff
mov rcx, qword [rdi]
mov r8, qword [rdi + 8]
mov rdx, r8
sub rdx, rcx
je 0x14018a3ad
mov rax, rdx
shr rax, 2
neg r8
xor r8, rcx
cmp r8, 0xffffffffffffffff
je 0x140189bf5
mov r9, rdx
and r9, 0xfffffffffffffffe
xor r8d, r8d
lea r10, [0x1402aa880]
nop word cs:[rax + rax]
movzx r11d, al
movzx ebx, byte [rcx + r8]
xor ebx, r11d
shr eax, 8
xor eax, dword [r10 + rbx*4]
movzx r11d, al
movzx ebx, byte [rcx + r8 + 1]
xor ebx, r11d
shr eax, 8
xor eax, dword [r10 + rbx*4]
add r8, 2
cmp r9, r8
jne 0x1401895b0
test dl, 1
je 0x1401895fc
movzx edx, al
movzx ecx, byte [rcx + r8]
xor ecx, edx
lea rdx, [0x1402aa880]
shr eax, 8
xor eax, dword [rdx + rcx*4]
mov dword [rdi + 0x18], eax
mov rcx, rdi
call fcn.14018c2a0
mov r14, rax
cmp qword [rsi + 0x20], 0
je 0x14018a033
mov dword [rsp + 0x54], 0
mov rdi, qword [0x1402e5c40]
test rdi, rdi
je 0x140189843
mov r9, qword [rsi + 8]
test r9, r9
je 0x14018a3aa
mov r8d, dword [rsi + 0x10]
mov eax, dword [rsi + 0x14]
mov ecx, dword [rsi + 0x18]
mov edx, dword [rsi + 0x28]
lea r10, [rsp + 0x54]
mov qword [rsp + 0x40], r10
mov dword [rsp + 0x38], edx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
lea rbx, [rsp + 0x58]
mov rcx, rdi
mov rdx, rbx
call fcn.14018b220
mov rbx, qword [rbx]
test rbx, rbx
je 0x140189843
mov rax, qword [rsi]
mov rax, qword [rax + 0x10]
lea rcx, [fcn.140007350]
cmp rax, rcx
jne 0x1401897fb
mov rcx, rbx
call fcn.14018a760
mov r14, rax
mov edx, dword [rsp + 0x54]
test rdx, rdx
je 0x140189096
mov rcx, qword [rdi + 8]
cmp r14, rbx
jne 0x14018a292
mov al, byte [rcx + 0x2c]
test al, 1
jne 0x140189096
mov rax, qword [rcx + 8]
mov r8d, dword [rax + 0x24]
test r8b, 1
jne 0x14018a3b4
lea r9d, [rdx + 0x10]
cmp r9d, 0x50
jb 0x140189096
mov r8d, edx
and r8d, 7
jne 0x140189096
mov r8d, dword [rcx + 0x14]
cmp r8d, r9d
jb 0x140189096
mov r9d, dword [rax + rdx + 4]
cmp r9d, 0xc8799269
jne 0x140189096
add rax, rdx
mov r9d, dword [rax]
cmp r9d, 0x10
jb 0x140189096
mov r9d, dword [rax]
add r9d, edx
setb r10b
test rax, rax
je 0x140189096
test r10b, r10b
jne 0x140189096
cmp r9d, r8d
ja 0x140189096
mov r8d, dword [rax + 0xc]
test r8d, r8d
jne 0x140189096
mov dword [rax + 0xc], 0x30
mov rax, qword [rcx + 8]
mov r8d, dword [rax + 0x2c]
cmp r8d, 0x30
je 0x14018a087
lea r9d, [r8 + 0x10]
cmp r9d, 0x50
jb 0x140189bfd
mov r10d, r8d
mov eax, r10d
and eax, 7
jne 0x140189bfd
mov eax, dword [rcx + 0x14]
cmp eax, r9d
jb 0x140189bfd
mov r9, qword [rcx + 8]
mov r11d, dword [r9 + r10 + 4]
cmp r11d, 0xc8799269
jne 0x140189bfd
add r9, r10
mov r10d, dword [r9]
cmp r10d, 0x10
jb 0x140189bfd
mov r10d, dword [r9]
add r10d, r8d
jb 0x140189bfd
cmp r10d, eax
ja 0x140189bfd
test r9, r9
je 0x140189bfd
mov eax, 0x30
lock cmpxchg dword [r9 + 0xc], edx
jne 0x14018a42a
mov rcx, qword [rcx + 8]
mov eax, r8d
lock cmpxchg dword [rcx + 0x2c], edx
jmp 0x140189096
lea rcx, [0x1400637e0]
cmp rax, rcx
jne 0x140189832
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
call qword [0x1402f5008]
cmp eax, 5
je 0x140189695
mov r8, qword [rsi + 0x30]
test r8, r8
je 0x140189695
jmp 0x14018a3cf
mov rcx, rsi
mov rdx, rbx
call qword [0x1402f5008]
jmp 0x140189695
and byte [rsi + 0x28], 0xbf
mov rax, qword [rsi]
mov rax, qword [rax + 8]
lea rbx, [rsp + 0x58]
mov rcx, rsi
mov rdx, rbx
mov r8, r14
call qword [0x1402f5008]
mov rbx, qword [rbx]
mov eax, dword [rsi + 0x28]
lock or dword [rbx + 0x10], eax
jmp 0x14018967e
mov rcx, rsi
call qword [0x1402f5008]
mov rdi, rax
jmp 0x1401895ff
lea rcx, [0x1401c3e50]
cmp rax, rcx
je 0x140189a1f
lea rcx, [0x140063980]
cmp rax, rcx
jne 0x140189871
mov ecx, 0x20
call fcn.1401cbbc4
mov rdi, rax
mov ecx, 0x10
call fcn.1401cbbc4
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea rcx, [rax + 0x10]
mov qword [rdi + 0x10], rcx
test rax, rax
je 0x14018a3cc
mov dword [rax], 0
cmp rax, 0xfffffffffffffffc
je 0x14018a3cc
mov dword [rax + 4], 0
cmp rax, 0xfffffffffffffff8
je 0x14018a3cc
mov dword [rax + 8], 0
add rax, 0xc
je 0x14018a3cc
mov dword [rax], 0
mov qword [rdi + 8], rcx
mov qword [rdi + 0x18], 0
mov eax, 1
movdqa xmm0, xmmword [0x1402a28e0]
movapd xmm1, xmmword [0x1402a28f0]
movsd xmm2, qword [0x140290680]
mov ecx, 1
mov rdx, qword [rdi]
mov r8, qword [rdi + 8]
sub r8, rdx
sar r8, 2
cmp r8, rcx
jbe 0x14018a3a1
movq xmm3, rax
punpckldq xmm3, xmm0
subpd xmm3, xmm1
haddpd xmm3, xmm3
lea r8, [rcx - 1]
movq xmm4, r8
punpckldq xmm4, xmm0
subpd xmm4, xmm1
haddpd xmm4, xmm4
addsd xmm4, xmm4
addsd xmm4, xmm3
addsd xmm4, xmm2
cvttsd2si r8d, xmm4
mov dword [rdx + rcx*4], r8d
dec rax
inc rcx
cmp rcx, 3
jne 0x140189933
mov rax, qword [rdi + 8]
cmp rax, qword [rdi]
je 0x14018a448
mov dword [rax - 4], 0x7fffffff
mov rcx, qword [rdi]
mov r8, qword [rdi + 8]
mov rdx, r8
sub rdx, rcx
je 0x14018a3ad
mov rax, rdx
shr rax, 2
neg r8
xor r8, rcx
cmp r8, 0xffffffffffffffff
je 0x140189bf5
mov r9, rdx
and r9, 0xfffffffffffffffe
xor r8d, r8d
lea r10, [0x1402aa880]
movzx r11d, al
movzx ebx, byte [rcx + r8]
xor ebx, r11d
shr eax, 8
xor eax, dword [r10 + rbx*4]
movzx r11d, al
movzx ebx, byte [rcx + r8 + 1]
xor ebx, r11d
shr eax, 8
xor eax, dword [r10 + rbx*4]
add r8, 2
cmp r9, r8
jne 0x1401899e0
jmp 0x1401895e0
xor eax, eax
xor r8d, r8d
jmp 0x140189aa0
mov ecx, 0x20
call fcn.1401cbbc4
mov rdi, rax
mov rbx, qword [rsi + 0x20]
mov r14, rbx
xorpd xmm0, xmm0
movupd xmmword [rax], xmm0
mov qword [rax + 0x10], 0
inc r14
je 0x140189a15
mov rax, r14
shr rax, 0x3e
jne 0x14018a445
lea rcx, [r14*4]
call fcn.1401cbbc4
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea r8, [rax + r14*4]
mov qword [rdi + 0x10], r8
lea rcx, [rbx*4 + 4]
xor edx, edx
nop dword [rax + rax]
mov r9, rax
add r9, rdx
je 0x14018a343
mov dword [r9], 0
add rdx, 4
cmp rcx, rdx
jne 0x140189a80
mov qword [rdi + 8], r8
mov qword [rdi + 0x18], 0
mov rcx, r8
sub rcx, rax
sar rcx, 2
lea rdx, [rcx - 1]
cmp rdx, 2
jb 0x140189b73
xorps xmm0, xmm0
cvtsi2sd xmm0, dword [rsi + 0x14]
cvtsi2sd xmm1, dword [rsi + 0x18]
add rcx, 0xfffffffffffffffd
movq xmm2, rcx
punpckldq xmm2, xmmword [0x1402a28e0]
subpd xmm2, xmmword [0x1402a28f0]
haddpd xmm2, xmm2
mov eax, 1
movdqa xmm3, xmmword [0x1402a28e0]
movapd xmm4, xmmword [0x1402a28f0]
movsd xmm5, qword [0x140290680]
mov r8, qword [rdi]
mov r9, qword [rdi + 8]
sub r9, r8
sar r9, 2
cmp r9, rax
jbe 0x14018a379
movq xmm6, rcx
punpckldq xmm6, xmm3
subpd xmm6, xmm4
haddpd xmm6, xmm6
lea r9, [rax - 1]
movq xmm7, r9
punpckldq xmm7, xmm3
subpd xmm7, xmm4
haddpd xmm7, xmm7
mulsd xmm6, xmm0
mulsd xmm7, xmm1
addsd xmm7, xmm6
divsd xmm7, xmm2
addsd xmm7, xmm5
cvttsd2si r9d, xmm7
mov dword [r8 + rax*4], r9d
dec rcx
inc rax
cmp rax, rdx
jne 0x140189b07
mov rax, qword [rdi]
mov r8, qword [rdi + 8]
cmp r8, rax
je 0x14018a442
mov dword [r8 - 4], 0x7fffffff
mov rcx, qword [rdi]
mov r8, qword [rdi + 8]
mov rdx, r8
sub rdx, rcx
je 0x14018a3ad
mov rax, rdx
shr rax, 2
neg r8
xor r8, rcx
cmp r8, 0xffffffffffffffff
je 0x140189bf5
mov r9, rdx
and r9, 0xfffffffffffffffe
xor r8d, r8d
lea r10, [0x1402aa880]
nop dword [rax + rax]
movzx r11d, al
movzx ebx, byte [rcx + r8]
xor ebx, r11d
shr eax, 8
xor eax, dword [r10 + rbx*4]
movzx r11d, al
movzx ebx, byte [rcx + r8 + 1]
xor ebx, r11d
shr eax, 8
xor eax, dword [r10 + rbx*4]
add r8, 2
cmp r9, r8
jne 0x140189bc0
jmp 0x1401895e0
xor r8d, r8d
jmp 0x1401895e0
mov dl, 1
call fcn.1402070f0
jmp 0x140189096
mov r8d, 0x3f
sub r8, rax
xor edx, edx
call fcn.1401d06e0
jmp 0x140189c31
cmp eax, 0x3f
je 0x140189c31
add rcx, rdi
cmp eax, 0x3c
jne 0x140189c09
mov byte [rcx + 2], 0
mov word [rcx], 0
lea rcx, [rsp + 0x58]
mov r8d, 1
mov rdx, rdi
call fcn.140102c40
xor ecx, ecx
jmp 0x140188dc5
mov rcx, r14
call qword [0x1402f5008]
test al, al
jne 0x140189131
jmp 0x14018a2d6
shr r8, 6
lea rcx, [rsp + 0x58]
mov rdx, rbx
call fcn.140102c40
mov r8, r14
and r8, 0x3f
je 0x140188d9d
and r14, 0xffffffffffffffc0
add rbx, r14
mov r14d, r8d
jmp 0x140188d8a
mov r8d, 0x3f
sub r8, rax
xor edx, edx
call fcn.1401d06e0
jmp 0x140189cb6
cmp eax, 0x3f
je 0x140189cb6
add rcx, rdi
cmp eax, 0x3c
jne 0x140189c8e
mov byte [rcx + 2], 0
mov word [rcx], 0
lea rcx, [rsp + 0x58]
mov r8d, 1
mov rdx, rdi
call fcn.140102c40
xor ecx, ecx
jmp 0x14018936f
xor ebx, ebx
xor r12d, r12d
jmp 0x14018944f
mov rcx, qword [rcx + 8]
add rcx, 0x30
jmp 0x140188e7a
shr r8, 6
lea rcx, [rsp + 0x58]
mov rdx, rbx
call fcn.140102c40
mov r8, r14
and r8, 0x3f
je 0x140189346
and r14, 0xffffffffffffffc0
add rbx, r14
mov r14d, r8d
jmp 0x140189333
lea rdx, [r8 - 1]
and rax, rdx
jmp 0x140189180
lea rcx, [r8 - 1]
and rcx, rbx
jmp 0x140188ff0
mov dl, 1
call fcn.1402070f0
xor r8d, r8d
jmp 0x140189e1d
mov eax, dword [rcx + 0x14]
xor r9d, r9d
jmp 0x140189da5
mov r12, qword [r14 + 0x58]
mov rcx, qword [r12 + 8]
cmp edx, 0xffffff88
mov qword [rsp + 0xd8], r12
jae 0x140189d3b
lea r9d, [rdx + 0x78]
mov eax, dword [rcx + 0x14]
cmp eax, r9d
jb 0x140189d3e
mov r10, qword [rcx + 8]
mov r9d, dword [r10 + rdx + 4]
cmp r9d, 0xc8799269
jne 0x140189d3e
add r10, rdx
mov r9d, dword [r10]
cmp r9d, 0x78
jb 0x140189d3e
xor r9d, r9d
mov r11d, dword [r10]
add r11d, edx
jb 0x140189da5
cmp r11d, eax
ja 0x140189da5
mov r11d, dword [r10 + 8]
xor r9d, r9d
cmp r11d, 0xf1645914
cmove r9, r10
lea r13, [r9 + 0x10]
test r9, r9
cmove r13, r9
cmp eax, r8d
jb 0x140189d33
mov r9, qword [rcx + 8]
mov r8d, dword [r9 + rdx + 4]
cmp r8d, 0xc8799269
jne 0x140189d33
add r9, rdx
mov r8d, dword [r9]
cmp r8d, 0x10
jb 0x140189d33
mov r10d, dword [r9]
add r10d, edx
setb r11b
xor r8d, r8d
test r9, r9
je 0x140189e1d
test r11b, r11b
jne 0x140189e1d
cmp r10d, eax
ja 0x140189e1d
mov r8d, dword [r9]
cmp r8, 0x11
jb 0x140189d2c
add edx, r8d
jb 0x140189d2c
cmp edx, eax
ja 0x140189d2c
add r8, 0xfffffffffffffff0
test r13, r13
je 0x140188e8b
cmp byte [r13 + 0x60], 0
je 0x140188e8b
cmp byte [r13 + r8 - 1], 0
jne 0x140188e8b
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x140188e8b
mov rcx, qword [r13 + 0x40]
test rcx, rcx
je 0x140188e8b
cmp rcx, rax
je 0x140189e68
inc rax
cmp rcx, rax
jne 0x140188e8b
mov qword [rsp + 0xd0], r13
lea rcx, [r13 + 0x60]
mov r12, rcx
call fcn.1401f05b0
xorpd xmm0, xmm0
movupd xmmword [rsp + 0xa4], xmm0
movupd xmmword [rsp + 0x98], xmm0
movupd xmmword [rsp + 0x88], xmm0
movupd xmmword [rsp + 0x78], xmm0
movupd xmmword [rsp + 0x68], xmm0
movupd xmmword [rsp + 0x58], xmm6
test rax, rax
je 0x140189eeb
mov r13, rax
lea eax, [rax*8]
mov rcx, r13
shr rcx, 0x1d
mov dword [rsp + 0x6c], ecx
mov dword [rsp + 0x68], eax
mov r8, r13
cmp r13, 0x40
jae 0x14018a006
mov dword [rsp + 0xb0], r13d
mov rcx, rdi
mov rdx, r12
call fcn.1401d0030
mov eax, dword [rsp + 0xb0]
lea rcx, [rax + 1]
mov edx, dword [rsp + 0x68]
mov dword [rsp + 0xbc], edx
mov edx, dword [rsp + 0x6c]
mov dword [rsp + 0xb8], edx
mov byte [rsp + rax + 0x70], 0x80
cmp rax, 0x38
jae 0x140189fc4
cmp rcx, 0x38
je 0x140189f34
mov r8d, 0x38
sub r8, rcx
add rcx, rdi
xor edx, edx
call fcn.1401d06e0
lea r13, [rsp + 0x58]
mov eax, dword [rsp + 0xbc]
mov dword [r13 + 0x50], eax
mov eax, dword [rsp + 0xb8]
mov dword [r13 + 0x54], eax
mov r8d, 1
mov rcx, r13
mov rdx, rdi
call fcn.140102c40
mov rax, qword [r13]
bswap rax
mov r12, qword [rsp + 0xd0]
cmp rax, qword [r12 + 0x20]
jne 0x140188e8b
mov r8, r12
lea r13, [rsp + 0x48]
mov rcx, qword [rsp + 0xd8]
mov rdx, r13
call fcn.14014e230
mov rcx, qword [r13]
test rcx, rcx
je 0x140188e8b
xor r12d, r12d
mov qword [rsp + 0x48], r12
call fcn.14018a760
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], r12
test rcx, rcx
je 0x140188e18
jmp 0x14018a451
cmp eax, 0x3f
je 0x140189fda
add rcx, rdi
cmp eax, 0x3c
jne 0x140189ff4
mov byte [rcx + 2], 0
mov word [rcx], 0
lea rcx, [rsp + 0x58]
mov r8d, 1
mov rdx, rdi
call fcn.140102c40
xor ecx, ecx
jmp 0x140189f21
mov r8d, 0x3f
sub r8, rax
xor edx, edx
call fcn.1401d06e0
jmp 0x140189fda
shr r8, 6
lea rcx, [rsp + 0x58]
mov rdx, r12
call fcn.140102c40
mov r8, r13
and r8, 0x3f
je 0x140189eeb
and r13, 0xffffffffffffffc0
add r12, r13
mov r13d, r8d
jmp 0x140189ed8
mov rax, qword [r14 + 8]
sub rax, qword [r14]
sar rax, 2
lea rcx, [rax - 1]
mov qword [rsi + 0x20], rcx
mov rcx, qword [r14]
mov rdx, qword [r14 + 8]
sub rdx, rcx
cmp rdx, 4
jbe 0x14018a44b
mov ecx, dword [rcx + 4]
mov dword [rsi + 0x14], ecx
lea rdx, [rax - 2]
mov rcx, qword [r14]
mov r8, qword [r14 + 8]
sub r8, rcx
sar r8, 2
cmp r8, rdx
jbe 0x14018a44e
mov eax, dword [rcx + rax*4 - 8]
mov dword [rsi + 0x18], eax
jmp 0x140189615
mov r9, qword [rcx + 8]
add r9, 0x30
jmp 0x1401897d0
lea rcx, [r15 + 0x18]
jmp 0x14018a0a6
test eax, eax
jne 0x14018906d
lea rcx, [r15 + 0x20]
call qword [sym.imp.KERNEL32.dll_WakeConditionVariable]
jmp 0x14018906d
lea r12, [r15 + 0x18]
mov rcx, r12
mov rdx, r14
mov r8d, 0xffffffff
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
mov eax, dword [r15 + 0x28]
cmp eax, 0x7ffffffe
jbe 0x140188f04
jmp 0x14018a0b5
mov ecx, 1
xor eax, eax
lock cmpxchg qword [0x1402e5910], rcx
jne 0x14018a12b
xor eax, eax
mov qword [0x1402e5918], rax
lea r15, [0x1402e5918]
mov byte [0x1402e5920], 1
xorpd xmm0, xmm0
movupd xmmword [0x1402e5928], xmm0
movupd xmmword [0x1402e5934], xmm0
mov qword [0x1402e5948], rax
mov qword [0x1402e5910], r15
jmp 0x140188ea6
mov rax, qword [0x1402e5910]
cmp rax, 1
jne 0x14018a19f
lea rcx, [rsp + 0x58]
mov qword [rcx], rbp
mov rax, qword [fcn.1401c9410]
call qword [0x1402f5008]
lea r14, [rsp + 0x48]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [fcn.1401c9410]
mov rcx, r14
call qword [0x1402f5008]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
xor edx, edx
cmp rax, rcx
setns dl
add rdx, r13
sub rax, rcx
cmovo rax, rdx
cmp rax, 0x3e7
jg 0x14018a1ab
xor ecx, ecx
call r15
mov rax, qword [0x1402e5910]
cmp rax, 1
je 0x14018a159
mov r15, qword [0x1402e5910]
jmp 0x140188ea6
mov ecx, 0x3e8
call fcn.140235b20
jmp 0x14018a192
mov ecx, 1
xor eax, eax
lock cmpxchg qword [0x1402e5910], rcx
jne 0x14018a207
xor eax, eax
mov qword [0x1402e5918], rax
lea rcx, [0x1402e5918]
mov byte [0x1402e5920], 1
xorpd xmm0, xmm0
movupd xmmword [0x1402e5928], xmm0
movupd xmmword [0x1402e5934], xmm0
mov qword [0x1402e5948], rax
mov qword [0x1402e5910], rcx
jmp 0x140188f66
mov rax, qword [0x1402e5910]
cmp rax, 1
jne 0x14018a27a
lea rcx, [rsp + 0x58]
mov qword [rcx], rbp
mov rax, qword [fcn.1401c9410]
call qword [0x1402f5008]
lea r14, [rsp + 0x48]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [fcn.1401c9410]
mov rcx, r14
call qword [0x1402f5008]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
xor edx, edx
cmp rax, rcx
setns dl
add rdx, r13
sub rax, rcx
cmovo rax, rdx
cmp rax, 0x3e7
jg 0x14018a286
xor ecx, ecx
call rbp
mov rax, qword [0x1402e5910]
cmp rax, 1
je 0x14018a235
mov rax, qword [0x1402e5910]
jmp 0x140188f66
mov ecx, 0x3e8
call fcn.140235b20
jmp 0x14018a26d
mov byte [rsp + 0x20], 0
xor r8d, r8d
mov r9d, 0xf1645914
call fcn.140001880
jmp 0x140189096
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xc8], rax
test rax, rax
js 0x14018a467
je 0x14018a2f7
test rcx, rcx
jne 0x14018a2f7
jmp 0x14018a46a
mov rax, qword [rsi + 8]
test rax, rax
je 0x14018a31f
movzx ecx, byte [rax + 0x17]
test cl, cl
js 0x14018a2aa
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rcx
lea rcx, [rsp + 0xc0]
call fcn.14018ef70
lea rcx, str.Histogram.MismatchedConstructionArguments
mov edx, eax
call fcn.14014ec40
call fcn.140207070
mov r14, rax
jmp 0x140189131
int3
mov dl, 1
call fcn.1402070f0
jmp 0x140188e8b
int3
int3
int3
int3
lea rbx, [r15 + 0x30]
jmp 0x14018906d
int3
int3
int3
mov rcx, r15
call fcn.1401508a0
jmp 0x140188ebd
mov rcx, r15
call fcn.1401509f0
jmp 0x14018908d
mov eax, 0xffffffff
cmp edx, 0xffffffff
je 0x140189128
jmp 0x14018a2d6
int3
int3
lea r14, [r15 + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x140188f13
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140188f13
int3
int3
int3
int3
xor eax, eax
jmp 0x1401895fc
xor edx, edx
call fcn.1402070f0
jmp 0x140189096
int3
int3
int3
int3
int3
mov r14, qword [r8 + 8]
test r14, r14
je 0x140189695
lea r15, [rbx + 0x28]
xor ebp, ebp
lea r12, [rsp + 0x58]
lea r13, [rsp + 0x48]
add r8, rbp
mov qword [rsp + 0x48], r8
mov rcx, r15
mov rdx, r12
mov r9, r13
call fcn.1400638a0
mov rcx, qword [rsp + 0x58]
add rcx, 0x28
mov rdx, r14
call fcn.14005e4c0
mov r8, qword [rsi + 0x30]
mov r14, qword [r8 + rbp + 0x18]
add rbp, 0x10
test r14, r14
jne 0x14018a3ec
jmp 0x140189695
mov r9d, eax
mov r10, qword [rcx + 8]
mov eax, r8d
lock cmpxchg dword [r10 + 0x2c], r9d
mov r8d, eax
jmp 0x140189762
int3
int3
int3
int3
int3
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x1402f5008]
jmp 0x140188e18
int3
int3