Function at 0x1400dc520
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbp, rcx
mov rbx, qword [0x140207540]
cmp rbx, 1
jbe 0x1400dcb9d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400dcb88
mov rax, qword [0x140207540]
cmp rax, 1
jbe 0x1400dcbdd
mov r13, qword [0x140207550]
test r13, r13
je 0x1400dcc1a
mov r11d, dword [rbp + 0x18]
mov rcx, qword [r13 + 0x58]
movabs r10, 0x5555555555555555
movabs r15, 0x3333333333333333
movabs r12, 0xf0f0f0f0f0f0f0f
movabs r14, 0x101010101010101
test rcx, rcx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x20], r13
je 0x1400dcb66
mov rax, rcx
shr rax, 1
and rax, r10
mov rdx, rcx
sub rdx, rax
mov rax, rdx
and rax, r15
shr rdx, 2
and rdx, r15
add rdx, rax
mov r9, rdx
shr r9, 4
add r9, rdx
and r9, r12
imul r9, r14
shr r9, 0x38
cmp r9, 1
jbe 0x1400dcb27
mov rsi, r11
cmp rcx, r11
ja 0x1400dc60f
mov rax, r11
xor edx, edx
div rcx
mov rsi, rdx
mov rax, qword [r13 + 0x50]
mov rax, qword [rax + rsi*8]
test rax, rax
mov qword [rsp + 0x30], rsi
je 0x1400dc860
mov r8, qword [rax]
test r8, r8
je 0x1400dc702
mov rax, qword [r8 + 8]
cmp rax, r11
jne 0x1400dc6cf
mov r13, qword [r8 + 0x10]
cmp dword [r13 + 0x18], r11d
jne 0x1400dc6f1
mov rdx, qword [r13]
mov rax, qword [r13 + 8]
sub rax, rdx
mov rdi, qword [rbp]
mov rsi, rbp
mov rbp, qword [rbp + 8]
sub rbp, rdi
cmp rax, rbp
mov rbp, rsi
jne 0x1400dc6f1
test rax, rax
je 0x1400dc74d
sar rax, 2
cmp rax, 1
mov ebx, 1
cmova rbx, rax
mov ebp, dword [rdx]
cmp ebp, dword [rdi]
mov rbp, rsi
jne 0x1400dc6f1
mov qword [rsp + 0x28], rcx
mov rsi, r11
mov r11, r15
mov r15, r12
mov r12, rsi
mov r10, rbp
dec rbx
xor ebp, ebp
nop dword [rax]
cmp rbx, rbp
je 0x1400dc74a
mov ecx, dword [rdx + rbp*4 + 4]
lea rsi, [rbp + 1]
cmp ecx, dword [rdi + rbp*4 + 4]
mov rbp, rsi
je 0x1400dc6b0
jmp 0x1400dcd3c
cmp r9d, 1
jbe 0x1400dcb38
cmp rax, rcx
jb 0x1400dc6e6
xor edx, edx
div rcx
mov rax, rdx
cmp rax, rsi
je 0x1400dc63e
jmp 0x1400dc702
mov r8, qword [r8]
test r8, r8
mov rsi, qword [rsp + 0x30]
jne 0x1400dc631
mov r14, rbp
mov qword [rsp + 0x28], r11
mov rdi, rcx
mov rsi, r10
mov r13, qword [rsp + 0x20]
mov ecx, 0x18
call fcn.1401039c0
mov rbp, rax
mov qword [rax + 0x10], r14
mov rax, qword [rsp + 0x28]
mov qword [rbp + 8], rax
mov qword [rbp], 0
mov rax, qword [r13 + 0x68]
inc rax
js 0x1400dc795
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x1400dc7ad
mov rbp, r10
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rbp, rbp
je 0x1400dc77c
cmp r13, rbp
je 0x1400dc77c
mov rcx, qword [rbp]
test rcx, rcx
je 0x1400dc774
mov qword [rbp + 8], rcx
call fcn.1401039b0
mov rcx, rbp
call fcn.1401039b0
mov rax, r13
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rbx, rdi
test rdi, rdi
js 0x1400dc7bc
cvtsi2ss xmm1, rbx
jmp 0x1400dc7d3
mov rax, rbx
shr rax, 1
mov ecx, ebx
and ecx, 1
or rcx, rax
cvtsi2ss xmm1, rcx
addss xmm1, xmm1
movss xmm2, dword [r13 + 0x70]
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x1400dc873
test rbx, rbx
je 0x1400dc873
mov rdx, qword [rsp + 0x30]
mov rax, qword [r13 + 0x50]
mov rcx, qword [rax + rdx*8]
test rcx, rcx
je 0x1400dc81b
mov rax, qword [rcx]
mov qword [rbp], rax
mov qword [rcx], rbp
inc qword [r13 + 0x68]
mov r13, qword [rbp + 0x10]
mov rbp, r14
jmp 0x1400dc74d
lea rcx, [r13 + 0x60]
mov rdi, qword [r13 + 0x60]
mov qword [rbp], rdi
mov qword [r13 + 0x60], rbp
mov qword [rax + rdx*8], rcx
mov rax, qword [rbp]
test rax, rax
je 0x1400dc80b
mov rax, qword [rax + 8]
lea rcx, [rbx - 1]
test rbx, rcx
je 0x1400dcb95
cmp rax, rbx
jb 0x1400dc856
xor edx, edx
div rbx
mov rax, rdx
mov rcx, qword [r13 + 0x50]
mov qword [rcx + rax*8], rbp
jmp 0x1400dc80b
mov r14, rbp
mov qword [rsp + 0x28], r11
mov rdi, rcx
mov rsi, r10
jmp 0x1400dc715
mov rdi, r12
mov qword [rsp + 0x38], rbp
divss xmm0, xmm2
call fcn.14011c424
cvttss2si rcx, xmm0
movss xmm6, dword [0x1401c6f98]
movaps xmm1, xmm0
subss xmm1, xmm6
cvttss2si rax, xmm1
btc rax, 0x3f
ucomiss xmm0, xmm6
cmovb rax, rcx
lea r12, [rbx + rbx]
cmp rbx, 2
ja 0x1400dcb44
or r12, 1
cmp r12, rax
cmovb r12, rax
cmp r12, 1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x40], r14
je 0x1400dcb5b
lea rax, [r12 - 1]
test r12, rax
je 0x1400dc8eb
mov rcx, r12
call fcn.1400f4500
mov r12, rax
mov rax, qword [rsp + 0x20]
mov rbx, qword [rax + 0x58]
cmp r12, rbx
jbe 0x1400dcd88
mov rax, r12
shr rax, 0x3d
jne 0x1400dcda6
lea rcx, [r12*8]
call fcn.1401039c0
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rdx + 0x50]
mov qword [rdx + 0x50], rax
test rcx, rcx
je 0x1400dc933
call fcn.1401039b0
mov rdx, qword [rsp + 0x20]
mov qword [rdx + 0x58], r12
xor eax, eax
mov rcx, qword [rdx + 0x50]
mov qword [rcx + rax*8], 0
inc rax
cmp r12, rax
jne 0x1400dc939
mov r11, qword [rdx + 0x60]
test r11, r11
je 0x1400dcea9
mov rax, qword [rsp + 0x20]
lea rcx, [rax + 0x60]
mov r14, qword [r11 + 8]
mov rax, r12
shr rax, 1
and rax, rsi
mov rdx, r12
sub rdx, rax
mov rax, rdx
and rax, r15
shr rdx, 2
and rdx, r15
add rdx, rax
mov rbp, rdx
shr rbp, 4
add rbp, rdx
and rbp, rdi
movabs rax, 0x101010101010101
imul rbp, rax
shr rbp, 0x38
cmp rbp, 1
jbe 0x1400dcdab
cmp r14, r12
jb 0x1400dc9bf
mov rax, r14
xor edx, edx
div r12
mov r14, rdx
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x50]
mov qword [rax + r14*8], rcx
mov rcx, qword [r11]
test rcx, rcx
je 0x1400dcea9
mov qword [rsp + 0x50], rbp
mov rax, qword [rcx + 8]
cmp ebp, 1
jbe 0x1400dcd7b
cmp rax, r12
jb 0x1400dc9f7
xor edx, edx
div r12
mov rax, rdx
cmp rax, r14
je 0x1400dcb18
mov rdx, qword [rsp + 0x20]
mov rdx, qword [rdx + 0x50]
cmp qword [rdx + rax*8], 0
jne 0x1400dca27
mov qword [rdx + rax*8], r11
mov r11, rcx
mov r14, rax
mov rcx, qword [r11]
test rcx, rcx
jne 0x1400dc9dd
jmp 0x1400dcea9
mov rdx, qword [rcx]
test rdx, rdx
je 0x1400dcb20
mov rsi, qword [rcx + 0x10]
mov ebp, dword [rsi + 0x18]
mov rdi, qword [rdx + 0x10]
mov dword [rsp + 0x30], ebp
cmp ebp, dword [rdi + 0x18]
jne 0x1400dcb22
mov rbp, qword [rsi]
mov r13, qword [rsi + 8]
sub r13, rbp
mov rsi, r13
sar rsi, 2
cmp rsi, 1
mov r9d, 1
mov qword [rsp + 0x48], rsi
cmova r9, rsi
mov r10, qword [rdi]
mov rdi, qword [rdi + 8]
sub rdi, r10
cmp r13, rdi
jne 0x1400dcb22
dec r9
mov r15, rdx
mov r8, rcx
test r13, r13
je 0x1400dcabc
mov edx, dword [rbp]
cmp edx, dword [r10]
jne 0x1400dcd73
xor edx, edx
nop
cmp r9, rdx
je 0x1400dcabc
mov ebx, dword [rbp + rdx*4 + 4]
lea rdi, [rdx + 1]
cmp ebx, dword [r10 + rdx*4 + 4]
mov rdx, rdi
je 0x1400dcaa0
jmp 0x1400dcd68
mov rdx, qword [r15]
test rdx, rdx
je 0x1400dcae8
mov rdi, qword [rdx + 0x10]
mov ebx, dword [rsp + 0x30]
cmp ebx, dword [rdi + 0x18]
jne 0x1400dcaea
mov r8, r15
mov r10, qword [rdi]
mov rdi, qword [rdi + 8]
sub rdi, r10
mov r15, rdx
cmp r13, rdi
je 0x1400dca8b
jmp 0x1400dcaed
xor edx, edx
mov r8, r15
mov qword [r11], rdx
mov rbp, qword [rsp + 0x20]
mov rdx, qword [rbp + 0x50]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r8], rdx
mov rdx, qword [rbp + 0x50]
mov rax, qword [rdx + rax*8]
mov qword [rax], rcx
mov rbp, qword [rsp + 0x50]
jmp 0x1400dca1a
mov r11, rcx
jmp 0x1400dca1a
xor edx, edx
mov r8, rcx
jmp 0x1400dcaed
mov eax, 0xffffffff
add eax, ecx
mov esi, r11d
and esi, eax
jmp 0x1400dc60f
lea rdx, [rcx - 1]
and rax, rdx
jmp 0x1400dc6e6
mov rbp, rbx
lea rcx, [rbx - 1]
xor edx, edx
test rbx, rcx
setne dl
or r12, rdx
jmp 0x1400dc8bb
mov r12d, 2
jmp 0x1400dc8f0
mov r14, rbp
mov qword [rsp + 0x28], r11
mov rdi, rcx
mov rsi, r10
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
jmp 0x1400dc715
mov rcx, rbx
call fcn.1400bbcd0
jmp 0x1400dc55a
and rax, rcx
jmp 0x1400dc856
lea rcx, [0x140207540]
call fcn.14000d860
test al, al
je 0x1400dcf02
mov qword [0x140207548], 0
lea rbx, [0x140207548]
lea rcx, [0x140207540]
mov rdx, rbx
xor r8d, r8d
mov r9, rcx
call fcn.14000d840
jmp 0x1400dc549
lea rcx, [0x140207540]
call fcn.14000d860
test al, al
je 0x1400dcf0e
mov qword [0x140207548], 0
lea rdx, [0x140207548]
lea rcx, [0x140207540]
xor r8d, r8d
mov r9, rcx
call fcn.14000d840
jmp 0x1400dc56b
mov ecx, 0xa0
call fcn.1401039c0
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov eax, 0x3f800000
mov dword [rsi + 0x20], eax
movups xmmword [rsi + 0x28], xmm0
movups xmmword [rsi + 0x38], xmm0
mov dword [rsi + 0x48], eax
movups xmmword [rsi + 0x50], xmm0
movups xmmword [rsi + 0x60], xmm0
mov dword [rsi + 0x70], eax
movups xmmword [rsi + 0x78], xmm0
movups xmmword [rsi + 0x88], xmm0
mov qword [rsi + 0x98], 0
mov rax, qword [0x140207540]
cmp rax, 1
jbe 0x1400dccc2
mov rax, qword [0x140207550]
mov qword [rsi + 0x98], rax
mov qword [0x140207550], rsi
mov rax, qword [0x140207540]
cmp rax, 1
jbe 0x1400dccff
cmp byte [0x140207558], 0
jne 0x1400dccb6
lea rcx, str..._.._base_metrics_statistics_recorder.cc
mov edx, 0x2a
call fcn.1400f85b0
test eax, eax
jg 0x1400dcf1a
mov r13, qword [0x140207550]
jmp 0x1400dc57b
lea rcx, [0x140207540]
call fcn.14000d860
test al, al
je 0x1400dcf34
mov qword [0x140207548], 0
lea rdx, [0x140207548]
lea rcx, [0x140207540]
xor r8d, r8d
mov r9, rcx
call fcn.14000d840
jmp 0x1400dcc72
lea rcx, [0x140207540]
call fcn.14000d860
test al, al
je 0x1400dcf40
mov qword [0x140207548], 0
lea rdx, [0x140207548]
lea rcx, [0x140207540]
xor r8d, r8d
mov r9, rcx
call fcn.14000d840
jmp 0x1400dcc94
cmp rsi, rax
mov rbp, r10
mov rsi, r12
mov r12, r15
mov r15, r11
mov r11, rsi
movabs r10, 0x5555555555555555
mov rcx, qword [rsp + 0x28]
jb 0x1400dc6f1
jmp 0x1400dc74d
cmp rdi, qword [rsp + 0x48]
jae 0x1400dcabc
mov rdx, r15
jmp 0x1400dcaed
lea rdx, [r12 - 1]
and rax, rdx
jmp 0x1400dc9f7
jae 0x1400dcea9
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x68]
test rax, rax
js 0x1400dcdb8
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x1400dcdd0
call fcn.140104ec0
lea rax, [r12 - 1]
and r14, rax
jmp 0x1400dc9bf
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rax, qword [rsp + 0x20]
divss xmm0, dword [rax + 0x70]
call fcn.14011c424
cvttss2si rcx, xmm0
movaps xmm1, xmm0
subss xmm1, xmm6
cvttss2si rax, xmm1
btc rax, 0x3f
ucomiss xmm0, xmm6
cmovb rax, rcx
cmp rbx, 3
jb 0x1400dce64
mov rcx, rbx
shr rcx, 1
and rcx, rsi
mov rdx, rbx
sub rdx, rcx
mov rcx, rdx
shr rcx, 2
mov rbp, r15
and rdx, r15
and rcx, r15
add rcx, rdx
mov rdx, rcx
shr rdx, 4
add rdx, rcx
and rdx, rdi
movabs rcx, 0x101010101010101
imul rdx, rcx
shr rdx, 0x38
cmp edx, 1
ja 0x1400dce64
cmp rax, 2
jb 0x1400dce6c
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x1400dce6c
mov rcx, rax
call fcn.1400f4500
cmp r12, rax
cmovb r12, rax
cmp r12, rbx
jae 0x1400dcea9
test r12, r12
mov rax, qword [rsp + 0x20]
jne 0x1400dc8fd
mov rcx, qword [rax + 0x50]
mov qword [rax + 0x50], 0
test rcx, rcx
je 0x1400dce9c
call fcn.1401039b0
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x58], 0
mov r13, qword [rsp + 0x20]
mov rbx, qword [r13 + 0x58]
lea rax, [rbx - 1]
test rbx, rax
je 0x1400dced9
mov rax, qword [rsp + 0x28]
cmp rbx, rax
mov r14, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
ja 0x1400dcefa
xor edx, edx
div rbx
jmp 0x1400dc7f4
mov eax, 0xffffffff
add eax, ebx
mov r14, qword [rsp + 0x28]
and r14d, eax
mov rdx, r14
mov r14, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
jmp 0x1400dc7f4
mov rdx, rax
jmp 0x1400dc7f4
mov rbx, qword [0x140207540]
jmp 0x1400dc549
mov rax, qword [0x140207540]
jmp 0x1400dc56b
mov byte [0x140207558], 1
lea rcx, [0x14015f000]
xor edx, edx
call fcn.14000d900
jmp 0x1400dccb6
mov rax, qword [0x140207540]
jmp 0x1400dcc72
mov rax, qword [0x140207540]
jmp 0x1400dcc94