Function at 0x140056520
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r13, rdx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rax, [rcx - 8]
mov qword [rsp + 0x30], rax
mov r10, qword [rcx + 0x1b8]
test r10, r10
je 0x140056680
mov rbp, r9
mov rdi, rcx
mov esi, 0xc54622fd
lea r15, [rcx + 0x1b0]
mov rbx, qword [r13]
mov r11, qword [r13 + 8]
mov rax, rbx
shr rax, 0x20
mov rcx, r11
shr rcx, 0x20
mov edx, ebx
imul rdx, rdx, 0x32348c9d
imul rax, rax, 0x24e62a03
mov r9d, r11d
imul r9, r9, 0x37da1fb9
imul rcx, rsi
add rcx, r9
add rcx, rax
add rcx, rdx
mov rax, r10
shr rax, 1
movabs rdx, 0x5555555555555555
and rax, rdx
mov rdx, r10
sub rdx, rax
movabs r9, 0x3333333333333333
mov rax, rdx
and rax, r9
shr rdx, 2
and rdx, r9
add rdx, rax
mov r14, rdx
shr r14, 4
add r14, rdx
movabs rax, 0xf0f0f0f0f0f0f0f
and r14, rax
movabs rax, 0x101010101010101
imul r14, rax
shr r14, 0x38
cmp r14, 1
jbe 0x140056ce1
mov r9, rcx
cmp rcx, r10
jb 0x140056629
mov rax, rcx
xor edx, edx
div r10
mov r9, rdx
mov rax, qword [r15]
mov rax, qword [rax + r9*8]
test rax, rax
je 0x140056680
mov r12, qword [rax]
test r12, r12
je 0x140056680
lea rsi, [r10 - 1]
mov rax, qword [r12 + 8]
cmp rax, rcx
jne 0x14005665b
cmp qword [r12 + 0x10], rbx
jne 0x140056677
cmp qword [r12 + 0x18], r11
je 0x1400566b3
jmp 0x140056677
cmp r14d, 1
jbe 0x140056cf9
cmp rax, r10
jb 0x140056672
xor edx, edx
div r10
mov rax, rdx
cmp rax, r9
jne 0x140056680
mov r12, qword [r12]
test r12, r12
jne 0x140056641
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14017e7b0
mov rcx, qword [rsp + 0x30]
mov rdx, r13
xor r8d, r8d
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.14000b4b0
cmp qword [r8], rbx
jne 0x140056680
cmp qword [r8 + 8], r11
jne 0x140056680
lea rbx, [rdi + 0xd0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140056dad
mov rax, qword [rdi + 0xe0]
test rax, rax
je 0x1400568ba
lea r8, [rdi + 0xe0]
mov rdx, qword [r13]
mov rcx, qword [r13 + 8]
xor r9d, r9d
mov r10, rax
mov r13, r8
mov rsi, qword [r10 + 0x20]
cmp rsi, rdx
mov r11d, 0
sbb r11d, r11d
cmp rsi, rdx
jne 0x140056749
mov r11, qword [r10 + 0x28]
cmp r11, rcx
mov esi, 0
sbb esi, esi
or sil, 1
cmp r11, rcx
movzx r11d, sil
cmove r11d, r9d
lea rsi, [r10 + 8]
test r11b, r11b
cmovns rsi, r10
cmovns r13, r10
mov r10, qword [rsi]
test r10, r10
jne 0x1400566fe
jmp 0x14005674f
or r11b, 1
jmp 0x140056730
cmp r13, r8
je 0x1400568ba
cmp rdx, qword [r13 + 0x20]
setb dl
jne 0x14005676a
cmp rcx, qword [r13 + 0x28]
setb dl
je 0x140056772
test dl, dl
jne 0x1400568ba
mov qword [rsp + 0x38], r15
lea r15, [r13 + 0x20]
mov rcx, rbp
lea rbp, [r13 + 0x30]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rcx]
mov rsi, rax
mov rax, qword [rax + 0x20]
cmp rcx, rax
je 0x140056df2
jae 0x1400567a6
mov rax, qword [rsi]
test rax, rax
je 0x1400567bb
jmp 0x14005678a
jbe 0x140056848
mov rax, qword [rsi + 8]
test rax, rax
jne 0x14005678a
lea r14, [rsi + 8]
jmp 0x1400567be
mov r14, rsi
mov ecx, 0x48
call fcn.14017b1d8
mov rcx, qword [rsp + 0x28]
movups xmm0, xmmword [rcx]
movups xmmword [rax + 0x20], xmm0
mov rcx, qword [r13 + 0x30]
mov qword [rax + 0x30], rcx
lea rcx, [rax + 0x38]
mov rdx, qword [r13 + 0x38]
mov qword [rax + 0x38], rdx
mov r8, qword [r13 + 0x40]
mov qword [rax + 0x40], r8
test r8, r8
je 0x140056e13
lea r8, [r13 + 0x38]
mov qword [rdx + 0x10], rcx
mov qword [rbp], r8
xorps xmm0, xmm0
movups xmmword [r8], xmm0
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rsi
mov qword [r14], rax
mov rcx, qword [rdi + 0xd8]
mov rcx, qword [rcx]
test rcx, rcx
je 0x140056832
mov qword [rdi + 0xd8], rcx
mov rax, qword [r14]
mov rcx, qword [rdi + 0xe0]
mov rdx, rax
call fcn.140123f70
inc qword [rdi + 0xe8]
test r13, r13
je 0x140056e0d
mov rcx, qword [r13 + 8]
test rcx, rcx
jne 0x140056cd0
mov rcx, r13
mov rax, qword [rcx + 0x10]
cmp qword [rax], rcx
mov rcx, rax
jne 0x140056861
cmp qword [rdi + 0xd8], r13
jne 0x14005687d
mov qword [rdi + 0xd8], rax
dec qword [rdi + 0xe8]
mov rcx, qword [rdi + 0xe0]
mov rdx, r13
call fcn.140146d70
test r15, r15
je 0x140056e10
mov rdx, qword [r13 + 0x38]
mov rcx, rbp
call fcn.140056e40
mov rcx, r13
call fcn.14017b254
mov rbp, qword [rsp + 0x28]
mov r15, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rbx, qword [r12 + 0x20]
test rbx, rbx
je 0x140056dba
lock inc dword [rbx + 8]
lea r13, [rsp + 0x68]
mov rcx, r15
mov rdx, r13
mov r8, r12
call fcn.14000c2a0
mov r15, qword [r13]
test r15, r15
mov rsi, qword [rsp + 0x30]
je 0x14005690e
cmp byte [rsp + 0x78], 0
je 0x140056906
lea rcx, [r15 + 0x10]
call fcn.14000c1e0
mov rcx, r15
call fcn.14017b254
lock inc dword [rbx + 8]
mov byte [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
xor r9d, r9d
call fcn.14000d380
lea r14, [rdi + 0x138]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140056dd4
mov r12, qword [rdi + 0x140]
mov r13, qword [rdi + 0x148]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea r15, [rdi + 0x28]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140056d68
mov r9, qword [rdi + 0x38]
test r9, r9
je 0x140056a85
mov rax, r12
shr rax, 0x20
mov rcx, r13
shr rcx, 0x20
mov edx, r12d
imul rdx, rdx, 0x32348c9d
imul rax, rax, 0x24e62a03
add rax, rdx
mov edx, r13d
imul rdx, rdx, 0x37da1fb9
add rdx, rax
mov eax, 0xc54622fd
imul rcx, rax
add rcx, rdx
mov rax, r9
shr rax, 1
movabs rdx, 0x5555555555555555
and rax, rdx
mov rdx, r9
sub rdx, rax
mov rax, rdx
movabs r8, 0x3333333333333333
and rax, r8
shr rdx, 2
and rdx, r8
add rdx, rax
mov r10, rdx
shr r10, 4
add r10, rdx
movabs rax, 0xf0f0f0f0f0f0f0f
and r10, rax
movabs rax, 0x101010101010101
imul r10, rax
shr r10, 0x38
cmp r10, 1
jbe 0x140056ced
mov r8, rcx
cmp rcx, r9
jb 0x140056a2d
mov rax, rcx
xor edx, edx
div r9
mov r8, rdx
mov rax, qword [rdi + 0x30]
mov rax, qword [rax + r8*8]
test rax, rax
je 0x140056a85
mov r11, qword [rax]
test r11, r11
je 0x140056a85
lea rsi, [r9 - 1]
mov rax, qword [r11 + 8]
cmp rax, rcx
jne 0x140056a61
cmp qword [r11 + 0x10], r12
jne 0x140056a7d
cmp qword [r11 + 0x18], r13
je 0x140056c4e
jmp 0x140056a7d
cmp r10d, 1
jbe 0x140056d01
cmp rax, r9
jb 0x140056a78
xor edx, edx
div r9
mov rax, rdx
cmp rax, r8
jne 0x140056a85
mov r11, qword [r11]
test r11, r11
jne 0x140056a46
mov qword [rsp + 0x28], rbp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea r12, [rdi + 0x118]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140056d89
mov r13, qword [rdi + 0x120]
mov rbp, qword [rdi + 0x128]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140056d96
mov r9, qword [rdi + 0x38]
test r9, r9
je 0x140056beb
mov rax, r13
shr rax, 0x20
mov rcx, rbp
shr rcx, 0x20
mov edx, r13d
imul rdx, rdx, 0x32348c9d
imul rax, rax, 0x24e62a03
add rax, rdx
mov edx, ebp
imul rdx, rdx, 0x37da1fb9
add rdx, rax
mov eax, 0xc54622fd
imul rcx, rax
add rcx, rdx
mov rax, r9
shr rax, 1
movabs rdx, 0x5555555555555555
and rax, rdx
mov rdx, r9
sub rdx, rax
mov rax, rdx
movabs r8, 0x3333333333333333
and rax, r8
shr rdx, 2
and rdx, r8
add rdx, rax
mov r10, rdx
shr r10, 4
add r10, rdx
movabs rax, 0xf0f0f0f0f0f0f0f
and r10, rax
movabs rax, 0x101010101010101
imul r10, rax
shr r10, 0x38
cmp r10, 1
jbe 0x140056d75
mov r8, rcx
cmp rcx, r9
jb 0x140056b93
mov rax, rcx
xor edx, edx
div r9
mov r8, rdx
mov rax, qword [rdi + 0x30]
mov rax, qword [rax + r8*8]
test rax, rax
je 0x140056beb
mov r11, qword [rax]
test r11, r11
je 0x140056beb
lea rsi, [r9 - 1]
mov rax, qword [r11 + 8]
cmp rax, rcx
jne 0x140056bc7
cmp qword [r11 + 0x10], r13
jne 0x140056be3
cmp qword [r11 + 0x18], rbp
je 0x140056d09
jmp 0x140056be3
cmp r10d, 1
jbe 0x140056d81
cmp rax, r9
jb 0x140056bde
xor edx, edx
div r9
mov rax, rdx
cmp rax, r8
jne 0x140056beb
mov r11, qword [r11]
test r11, r11
jne 0x140056bac
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140056e1c
mov r13, qword [rdi + 0x130]
test r13, r13
jne 0x140056e29
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rbx
call fcn.1400bfca0
lea r8, [rsp + 0x40]
mov dword [r8], 0
mov qword [r8 + 8], 0
add rdi, 8
mov rcx, rbx
mov rdx, rdi
mov r9, rax
call fcn.14006ea60
jmp 0x140056c9c
mov r12, qword [r11 + 0x20]
test r12, r12
je 0x140056a85
lock inc dword [r12 + 8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea rdi, [rsp + 0x50]
mov rcx, rbx
mov rdx, rdi
call fcn.1401bd780
mov rcx, r12
mov rdx, rbp
mov r8, rdi
call fcn.1401bd7d0
lock dec dword [r12 + 8]
jne 0x140056c9c
add r12, 8
mov rcx, r12
call fcn.1401bb660
test rbx, rbx
je 0x140056cab
lock dec dword [rbx + 8]
je 0x140056de1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14017e7b0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x14005686d
jmp 0x140056cd0
lea r9, [r10 - 1]
and r9, rcx
jmp 0x140056629
lea r8, [r9 - 1]
and r8, rcx
jmp 0x140056a2d
and rax, rsi
jmp 0x140056672
and rax, rsi
jmp 0x140056a78
mov r13, qword [r11 + 0x20]
test r13, r13
je 0x140056beb
lock inc dword [r13 + 8]
add r13, 8
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
mov rsi, qword [rsp + 0x28]
je 0x140056da3
add rdi, 0x150
mov rcx, rdi
mov rdx, rsi
call fcn.1401c55d0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lock dec dword [r13]
jne 0x140056c9c
mov rcx, r13
jmp 0x140056c97
mov rcx, r15
call fcn.1400fdfc0
jmp 0x14005696c
lea r8, [r9 - 1]
and r8, rcx
jmp 0x140056b93
and rax, rsi
jmp 0x140056bde
mov rcx, r12
call fcn.1400fdfc0
jmp 0x140056aab
mov rcx, r15
call fcn.1400fdfc0
jmp 0x140056ad3
mov rcx, r14
call fcn.1400fdfc0
jmp 0x140056d3a
mov rcx, rbx
call fcn.1400fdfc0
jmp 0x1400566d6
lea rdx, [rsp + 0x60]
mov rcx, r15
mov r8, r12
call fcn.1401bb710
mov rsi, qword [rsp + 0x30]
jmp 0x140056912
mov rcx, r14
call fcn.1400fdfc0
jmp 0x140056940
add rbx, 8
mov rcx, rbx
call fcn.1401bb660
jmp 0x140056cab
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov rdx, qword [rsi + 0x28]
cmp rax, rdx
jae 0x1400567a6
jmp 0x14005679c
int3
int3
mov qword [rax + 0x30], rcx
jmp 0x14005680c
mov rcx, r12
call fcn.1400fdfc0
jmp 0x140056c05
mov r15, r12
jmp 0x140056d16