Function at 0x14018a760
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
lea rcx, [0x1401ca610]
cmp rax, rcx
jne 0x14018a97d
mov rax, qword [rsi + 0x18]
mov rax, qword [rax + 0x10]
mov rdi, qword [rax]
mov rbx, qword [0x1402e5910]
movabs r15, 0xaaaaaaaaaaaaaaaa
movabs r13, 0x7fffffffffffffff
cmp rbx, 1
jbe 0x14018af18
lea rcx, [rsp + 0x30]
mov qword [rcx], r15
mov rax, qword [fcn.1401c9410]
call qword [0x1402f5008]
cmp byte [rbx + 8], 0
je 0x14018b1bf
lea r14, [rbx + 0x10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [rbx + 0x28]
test eax, eax
js 0x14018aec4
mov ecx, eax
or ecx, 0x80000000
mov dword [rbx + 0x28], ecx
test eax, eax
jne 0x14018aeed
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [fcn.1401c9410]
lea r14, [rsp + 0x38]
mov rcx, r14
call qword [0x1402f5008]
mov rax, qword [r14]
mov rcx, qword [rsp + 0x30]
xor edx, edx
cmp rax, rcx
setns dl
add rdx, r13
sub rax, rcx
cmovo rax, rdx
lock add qword [rbx], rax
mov rax, qword [0x1402e5910]
cmp rax, 1
jbe 0x14018affb
mov rbp, qword [0x1402e5950]
test rbp, rbp
je 0x14018aea6
mov r12, qword [rbp + 8]
movabs rcx, 0x5555555555555555
movabs r9, 0x3333333333333333
movabs r13, 0xf0f0f0f0f0f0f0f
movabs r11, 0x101010101010101
test r12, r12
je 0x14018a931
mov rax, r12
shr rax, 1
and rax, rcx
mov rdx, r12
sub rdx, rax
mov rax, rdx
and rax, r9
shr rdx, 2
and rdx, r9
add rdx, rax
mov rcx, rdx
shr rcx, 4
add rcx, rdx
and rcx, r13
imul rcx, r11
shr rcx, 0x38
cmp rcx, 1
jbe 0x14018aada
mov r15, rdi
cmp rdi, r12
jb 0x14018a8e7
mov rax, rdi
xor edx, edx
div r12
mov r15, rdx
mov rax, qword [rbp]
mov rax, qword [rax + r15*8]
test rax, rax
je 0x14018a931
mov r14, qword [rax]
test r14, r14
je 0x14018a931
lea r8, [r12 - 1]
mov rax, qword [r14 + 8]
cmp rax, rdi
je 0x14018aa3a
cmp ecx, 1
jbe 0x14018aad2
cmp rax, r12
jb 0x14018a924
xor edx, edx
div r12
mov rax, rdx
cmp rax, r15
jne 0x14018a931
mov r14, qword [r14]
test r14, r14
jne 0x14018a901
mov r13, r11
mov ecx, 0x20
call fcn.1401cbbc4
test rax, rax
je 0x14018b1e2
mov r14, rax
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0
mov rax, qword [rbp + 0x18]
inc rax
jns 0x14018a98e
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x14018a996
mov rcx, rsi
call qword [0x1402f5008]
mov rdi, rax
jmp 0x14018a795
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
mov r11, r13
movabs r9, 0x3333333333333333
mov rcx, r12
shr rcx, 1
mov eax, r12d
and eax, 1
or rax, rcx
test r12, r12
jns 0x14018a9c2
cvtsi2ss xmm1, rax
addss xmm1, xmm1
jmp 0x14018a9c7
cvtsi2ss xmm1, r12
movss xmm2, dword [rbp + 0x20]
je 0x14018ab15
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x14018ab15
movabs r13, 0xf0f0f0f0f0f0f0f
mov rcx, qword [rbp]
mov rax, qword [rcx + r15*8]
test rax, rax
jne 0x14018aa54
lea rax, [rbp + 0x10]
mov rdx, qword [rbp + 0x10]
mov qword [r14], rdx
mov qword [rbp + 0x10], r14
mov qword [rcx + r15*8], rax
mov rax, qword [r14]
test rax, rax
je 0x14018aa5d
mov rax, qword [rax + 8]
lea rcx, [r12 - 1]
test r12, rcx
je 0x14018aae7
cmp rax, r12
jb 0x14018aa30
xor edx, edx
div r12
mov rax, rdx
shl rax, 3
add rax, qword [rbp]
jmp 0x14018aa5a
cmp qword [r14 + 0x10], rdi
je 0x14018aa61
jmp 0x14018a929
xor r14d, r14d
cmp rax, rsi
cmovne r14, rsi
mov rsi, rax
jmp 0x14018aa85
mov rcx, qword [rax]
mov qword [r14], rcx
mov qword [rax], r14
inc qword [rbp + 0x18]
mov rax, qword [r14 + 0x18]
test rax, rax
jne 0x14018aa45
mov qword [r14 + 0x18], rsi
mov r10, qword [0x1402e5950]
mov r8, qword [r10 + 0x30]
test r8, r8
jne 0x14018b0de
xor r14d, r14d
cmp byte [rbx + 8], 0
je 0x14018b1b3
lea rdi, [rbx + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [rbx + 0x28], 0
add rbx, 0x18
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test r14, r14
jne 0x14018aaef
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
and rax, r8
jmp 0x14018a924
lea r15, [r12 - 1]
and r15, rdi
jmp 0x14018a8e7
and rax, rcx
jmp 0x14018aa30
mov rax, qword [r14]
mov rax, qword [rax]
mov rcx, r14
mov edx, 1
call qword [0x1402f5008]
jmp 0x14018aabe
mov r15d, 2
jmp 0x14018ab7e
mov r15d, 1
jmp 0x14018ab56
divss xmm0, xmm2
call fcn.1401eab74
cvttss2si rcx, xmm0
mov rdx, rcx
sar rdx, 0x3f
subss xmm0, dword [0x1402a35b8]
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
lea rcx, [r12 + r12]
cmp r12, 3
jb 0x14018ab0d
lea rdx, [r12 - 1]
xor r15d, r15d
test r12, rdx
setne r15b
or r15, rcx
cmp r15, rax
cmovbe r15, rax
cmp r15, 1
je 0x14018ab05
lea rax, [r15 - 1]
test r15, rax
je 0x14018ab7e
mov rcx, r15
call fcn.14018e6e0
mov r15, rax
mov r12, qword [rbp + 8]
cmp r15, r12
jbe 0x14018ad79
mov rax, r15
shr rax, 0x3d
jne 0x14018b20e
lea rcx, [r15*8]
call fcn.1401cbbc4
mov rcx, qword [rbp]
mov qword [rbp], rax
test rcx, rcx
je 0x14018abb3
call fcn.1401cbbbc
mov qword [rbp + 8], r15
mov eax, r15d
and eax, 3
cmp r15, 4
jb 0x14018ad52
mov rdx, r15
and rdx, 0xfffffffffffffffc
xor r8d, r8d
xor ecx, ecx
mov r11, r13
mov r9, qword [rbp]
mov qword [r9 + rcx*8], r8
mov r9, qword [rbp]
mov qword [r9 + rcx*8 + 8], r8
mov r9, qword [rbp]
mov qword [r9 + rcx*8 + 0x10], r8
mov r9, qword [rbp]
mov qword [r9 + rcx*8 + 0x18], r8
add rcx, 4
cmp rdx, rcx
jne 0x14018abd6
test rax, rax
jne 0x14018ac99
mov r8, qword [rbp + 0x10]
test r8, r8
je 0x14018ad16
lea r10, [rbp + 0x10]
mov rcx, qword [r8 + 8]
mov rax, r15
shr rax, 1
movabs rdx, 0x5555555555555555
and rax, rdx
mov rdx, r15
sub rdx, rax
mov rax, rdx
movabs r9, 0x3333333333333333
and rax, r9
shr rdx, 2
and rdx, r9
add rdx, rax
mov r9, rdx
shr r9, 4
add r9, rdx
movabs rax, 0xf0f0f0f0f0f0f0f
and r9, rax
imul r9, r11
shr r9, 0x38
cmp r9, 1
jbe 0x14018ad6d
cmp rcx, r15
jb 0x14018ac8c
mov rax, rcx
xor edx, edx
div r15
mov rcx, rdx
mov rax, qword [rbp]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
jmp 0x14018acbf
mov rdx, qword [rbp]
mov qword [rdx + rcx*8], 0
inc rcx
dec rax
jne 0x14018ac99
jmp 0x14018ac0b
mov qword [rdx + rax*8], r8
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
je 0x14018ad16
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x14018ad5c
cmp rax, r15
jb 0x14018acdf
xor edx, edx
div r15
mov rax, rdx
cmp rax, rcx
je 0x14018ad11
mov rdx, qword [rbp]
cmp qword [rdx + rax*8], 0
je 0x14018acb2
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rbp]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rbp]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
jmp 0x14018acb6
mov r12, qword [rbp + 8]
lea r15, [r12 - 1]
test r12, r15
je 0x14018ad4d
cmp rdi, r12
jb 0x14018ad68
mov rax, rdi
xor edx, edx
div r12
mov r15, rdx
movabs r13, 0xf0f0f0f0f0f0f0f
movabs r9, 0x3333333333333333
jmp 0x14018a9e9
and r15, rdi
jmp 0x14018ad34
xor ecx, ecx
mov r11, r13
jmp 0x14018ac02
lea rdx, [r15 - 1]
and rax, rdx
jmp 0x14018acdf
mov r15, rdi
jmp 0x14018ad34
lea rax, [r15 - 1]
and rcx, rax
jmp 0x14018ac8c
mov qword [rsp + 0x40], r15
mov r11, r13
jae 0x14018ad16
mov rax, qword [rbp + 0x18]
test rax, rax
jns 0x14018ada6
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x14018adae
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
divss xmm0, dword [rbp + 0x20]
call fcn.1401eab74
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1402a35b8]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp r12, 3
jb 0x14018ae54
mov rcx, r12
shr rcx, 1
movabs rdx, 0x5555555555555555
and rcx, rdx
mov rdx, r12
sub rdx, rcx
mov rcx, rdx
shr rcx, 2
movabs r8, 0x3333333333333333
and rdx, r8
and rcx, r8
add rcx, rdx
mov rdx, rcx
shr rdx, 4
add rdx, rcx
movabs rcx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
imul rdx, r13
shr rdx, 0x38
cmp edx, 1
ja 0x14018ae54
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov r15d, 1
shl r15, cl
cmp rax, 2
cmovb r15, rax
jmp 0x14018ae5f
mov rcx, rax
call fcn.14018e6e0
mov r15, rax
mov rax, qword [rsp + 0x40]
cmp rax, r15
cmova r15, rax
cmp r15, r12
mov r11, r13
jae 0x14018ad16
test r15, r15
jne 0x14018ab87
mov rcx, qword [rbp]
mov qword [rbp], 0
test rcx, rcx
je 0x14018ae96
call fcn.1401cbbbc
mov qword [rbp + 8], 0
mov r11, r13
jmp 0x14018ad16
mov ecx, 0xb0
call fcn.1401cbbc4
mov rcx, rax
call fcn.140018b60
mov rbp, qword [0x1402e5950]
jmp 0x14018a861
lea r12, [rbx + 0x18]
mov rbp, qword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
mov rcx, r12
mov rdx, r14
mov r8d, 0xffffffff
xor r9d, r9d
call rbp
mov eax, dword [rbx + 0x28]
test eax, eax
jns 0x14018a7f1
jmp 0x14018aecf
lea r12, [rbx + 0x20]
mov rbp, qword [sym.imp.KERNEL32.dll_SleepConditionVariableSRW]
mov rcx, r12
mov rdx, r14
mov r8d, 0xffffffff
xor r9d, r9d
call rbp
test dword [rbx + 0x28], 0x7fffffff
je 0x14018a804
jmp 0x14018aef8
mov ecx, 1
xor eax, eax
lock cmpxchg qword [0x1402e5910], rcx
jne 0x14018af65
xor eax, eax
mov qword [0x1402e5918], rax
lea rbx, [0x1402e5918]
mov byte [0x1402e5920], 1
xorps xmm0, xmm0
movups xmmword [0x1402e5928], xmm0
movups xmmword [0x1402e5934], xmm0
mov qword [0x1402e5948], rax
mov qword [0x1402e5910], rbx
jmp 0x14018a7ba
mov rax, qword [0x1402e5910]
cmp rax, 1
jne 0x14018afe3
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [fcn.1401c9410]
call qword [0x1402f5008]
lea rbx, [rsp + 0x38]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [fcn.1401c9410]
mov rcx, rbx
call qword [0x1402f5008]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
xor edx, edx
cmp rax, rcx
setns dl
add rdx, r13
sub rax, rcx
cmovo rax, rdx
cmp rax, 0x3e7
jg 0x14018afef
xor ecx, ecx
call r14
mov rax, qword [0x1402e5910]
cmp rax, 1
je 0x14018af9d
mov rbx, qword [0x1402e5910]
jmp 0x14018a7ba
mov ecx, 0x3e8
call fcn.140235b20
jmp 0x14018afd6
mov ecx, 1
xor eax, eax
lock cmpxchg qword [0x1402e5910], rcx
jne 0x14018b048
xor eax, eax
mov qword [0x1402e5918], rax
lea rcx, [0x1402e5918]
mov byte [0x1402e5920], 1
xorps xmm0, xmm0
movups xmmword [0x1402e5928], xmm0
movups xmmword [0x1402e5934], xmm0
mov qword [0x1402e5948], rax
mov qword [0x1402e5910], rcx
jmp 0x14018a851
mov rax, qword [0x1402e5910]
cmp rax, 1
jne 0x14018b0c6
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [fcn.1401c9410]
call qword [0x1402f5008]
lea r14, [rsp + 0x38]
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [fcn.1401c9410]
mov rcx, r14
call qword [0x1402f5008]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
xor edx, edx
cmp rax, rcx
setns dl
add rdx, r13
sub rax, rcx
cmovo rax, rdx
cmp rax, 0x3e7
jg 0x14018b0d2
xor ecx, ecx
call r12
mov rax, qword [0x1402e5910]
cmp rax, 1
je 0x14018b080
mov rax, qword [0x1402e5910]
jmp 0x14018a851
mov ecx, 0x3e8
call fcn.140235b20
jmp 0x14018b0b9
mov rax, r8
shr rax, 1
movabs rcx, 0x5555555555555555
and rax, rcx
mov rcx, r8
sub rcx, rax
mov rax, rcx
and rax, r9
shr rcx, 2
and rcx, r9
add rcx, rax
mov r9, rcx
shr r9, 4
add r9, rcx
and r9, r13
imul r9, r11
shr r9, 0x38
cmp r9, 1
jbe 0x14018b137
mov rcx, rdi
cmp rdi, r8
jb 0x14018b13e
mov rax, rdi
xor edx, edx
div r8
mov rcx, rdx
jmp 0x14018b13e
lea rcx, [r8 - 1]
and rcx, rdi
mov rax, qword [r10 + 0x28]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x14018aa82
mov r10, qword [rax]
test r10, r10
je 0x14018aa82
lea r11, [r8 - 1]
xor r14d, r14d
jmp 0x14018b176
cmp qword [r10 + 0x10], rdi
je 0x14018b1a1
mov r10, qword [r10]
test r10, r10
je 0x14018aa85
mov rax, qword [r10 + 8]
cmp rdi, rax
je 0x14018b164
cmp r9d, 1
ja 0x14018b192
and rax, r11
cmp rax, rcx
je 0x14018b16a
jmp 0x14018aa85
cmp rax, r8
jb 0x14018b188
xor edx, edx
div r8
mov rax, rdx
jmp 0x14018b188
mov rcx, rsi
mov edx, 0x20
call fcn.1401ca600
jmp 0x14018aa82
add rbx, 0x30
mov rdi, rbx
jmp 0x14018aab0
lea r14, [rbx + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x14018a80d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14018a80d
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140207060
call fcn.140207060
int3