Function at 0x140137bc0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov rdi, qword [0x14022c040]
mov rax, qword [rdi]
mov qword [rsp + 0x68], rax
xor eax, eax
mov rax, qword [0x14022c3d0]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov esi, dword [rax + 0xc]
mov rbp, qword [rax]
test esi, esi
jle 0x140137a70
xor r15d, r15d
lea rax, [rsp + 0x50]
xor r14d, r14d
mov qword [rsp + 0x38], rax
mov eax, r15d
mov r15, r14
mov r14d, eax
jmp 0x140137996
mov rcx, qword [rsp + 0x38]
mov rdx, r9
call fcn.14012fd10
mov rax, qword [0x14022c3d0]
mov rbp, qword [rax]
mov rax, qword [0x14022c3d0]
add r15, 1
mov esi, dword [rax + 0xc]
cmp esi, r14d
jle 0x140137a70
mov r9, qword [rbp + r15*8]
add r14d, 1
test r9, r9
je 0x14013797f
test byte [r9 + 0x14], 1
je 0x140137968
mov r11, qword [r9 + 8]
mov rdi, qword [r9]
mov qword [rsp + 0x28], r9
mov rcx, qword [rdi + 0x28]
mov rdx, qword [r11 + 0x28]
mov qword [rsp + 0x20], r11
mov qword [rsp + 0x30], rcx
call sub.msvcrt.dll_strcmp
mov r11, qword [rsp + 0x20]
mov r9, qword [rsp + 0x28]
test eax, eax
jne 0x140137968
cmp esi, r14d
jle 0x140137968
sub esi, 2
movsxd rbx, r14d
mov qword [rsp + 0x40], r11
sub esi, r15d
mov qword [rsp + 0x48], rdi
shl rbx, 3
mov qword [rsp + 0x20], r9
lea r12, [r15 + rsi + 2]
mov dword [rsp + 0x28], r14d
lea rsi, [r12*8]
mov r12, rbx
nop word cs:[rax + rax]
nop dword [rax]
mov rbx, qword [rbp + r12]
test byte [rbx + 0x14], 1
je 0x140137a57
mov r13, qword [rbx + 8]
mov rdi, qword [rbx]
mov r14, qword [r13 + 0x28]
mov rcx, qword [rdi + 0x28]
mov rdx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140137a57
mov rcx, qword [rsp + 0x30]
mov rdx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140137ab0
add r12, 8
cmp rsi, r12
jne 0x140137a20
mov r9, qword [rsp + 0x20]
mov r14d, dword [rsp + 0x28]
jmp 0x140137968
mov rcx, rbp
call fcn.1400eaf30
mov rax, qword [0x14022c3d0]
movdqu xmm0, xmmword [rsp + 0x50]
mov rdi, qword [0x14022c040]
movups xmmword [rax], xmm0
mov rax, qword [rsp + 0x68]
sub rax, qword [rdi]
jne 0x140137b90
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, rbx
mov rbx, r12
mov r12, rdi
mov rdi, qword [rsp + 0x48]
mov r11, qword [rsp + 0x40]
mov r9, qword [rsp + 0x20]
cmp word [rdi + 0x4c], 0
mov r14d, dword [rsp + 0x28]
jne 0x140137b68
cmp word [r12 + 0x4c], 0
je 0x140137b84
cmp word [r13 + 0x4c], 0
jne 0x140137bad
mov rbp, r9
mov rdi, r12
mov r8, qword [rbp + 8]
cmp word [r8 + 0x4c], 0
je 0x140137ba1
lea rcx, [rsp + 0x50]
mov rdx, rdi
mov qword [rsp + 0x20], r9
call fcn.1401304e0
mov r9, qword [rsp + 0x20]
mov rcx, qword [rsi + 8]
movzx edx, word [r9 + 0x10]
mov word [rax + 0x10], dx
mov rax, qword [rsi]
add dword [rax + 0x48], 1
call fcn.14012d640
mov rcx, qword [rbp]
call fcn.14012d640
mov rcx, rsi
call fcn.1400eaf30
mov rcx, rbp
call fcn.1400eaf30
mov rax, qword [0x14022c3d0]
mov rbp, qword [rax]
mov qword [rbp + rbx], 0
jmp 0x14013797f
cmp word [r11 + 0x4c], 0
jne 0x140137bad
cmp word [r12 + 0x4c], 0
jne 0x140137b95
mov rbp, rsi
mov rsi, r9
jmp 0x140137af7
lea rcx, str.internal_error_in_merge_1
call fcn.1400b6950
call fcn.1401d96b0
lea rcx, str.internal_error_in_merge_3
call fcn.1400b6950
lea rcx, str.internal_error_in_merge_4
call fcn.1400b6950
lea rcx, str.internal_error_in_merge_2
call fcn.1400b6950
nop
nop
nop
nop
nop
nop
nop
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, 1
mov rbx, rcx
mov ecx, dword [rcx]
shl esi, cl
lea ecx, [rsi - 1]
and ecx, edx
movsxd rax, ecx
jmp 0x140137bf0
cmp dword [rbx + rax*8 + 8], edx
je 0x140137c20
add rax, 1
xor ecx, ecx
cmp esi, eax
jle 0x140137bdb
mov ecx, dword [rbx + rax*8 + 0xc]
movsxd r9, eax
test ecx, ecx
jne 0x140137be0
cdqe
mov dword [rbx + rax*8 + 8], edx
mov dword [rbx + rax*8 + 0xc], r8d
sub dword [rbx + 4], 1
js 0x140137c2a
mov rdi, rbx
mov rax, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
add r8d, ecx
mov dword [rbx + r9*8 + 0xc], r8d
jmp 0x140137c0c
lea ebp, [rsi + rsi]
movsxd r8, ebp
mov rax, r8
shr rax, 0x3d
jne 0x140137d23
lea r12, [r8*8]
lea rcx, [r12 + 8]
call fcn.1400bd0a0
mov r8, r12
mov rdi, rax
mov eax, dword [rbx]
lea ecx, [rax + 1]
sub eax, 2
shl eax, cl
mov dword [rdi], ecx
cdq
idiv ecx
xor edx, edx
lea rcx, [rdi + 8]
mov dword [rdi + 4], eax
call sub.msvcrt.dll_memset
test esi, esi
jle 0x140137d0d
movsxd rsi, esi
mov rcx, rbx
lea r10d, [rbp - 1]
lea r9, [rbx + rsi*8]
jmp 0x140137ca9
add rcx, 8
cmp r9, rcx
je 0x140137d0d
mov r8d, dword [rcx + 0xc]
test r8d, r8d
je 0x140137ca0
mov r8d, dword [rcx + 8]
mov edx, r10d
and edx, r8d
movsxd rax, edx
jmp 0x140137cea
add rax, 1
xor edx, edx
cmp ebp, eax
jle 0x140137cbc
mov edx, dword [rdi + rax*8 + 0xc]
test edx, edx
jne 0x140137ce0
cdqe
add rcx, 8
mov dword [rdi + rax*8 + 8], r8d
mov edx, dword [rcx + 4]
mov dword [rdi + rax*8 + 0xc], edx
sub dword [rdi + 4], 1
cmp r9, rcx
jne 0x140137ca9
mov rcx, rbx
call fcn.1400eaf30
mov rax, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov edx, 8
lea rcx, [0x140212720]
call fcn.1400b6950
nop
nop word cs:[rax + rax]