Function at 0x1800251a0
Capabilities:
Encode data using base64

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 8], rcx
push rbp
push rbx
push r13
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
lea eax, [rdx + 0x148]
mov rbx, r8
mov r13, rcx
cmp edx, eax
jae 0x1800254e0
mov qword [r11 - 0x20], rsi
lea r9, [0x180000000]
mov qword [r11 - 0x28], rdi
add edx, 0xffffff6a
mov rdi, qword [rbp + 0x7f]
mov r8d, 8
mov qword [r11 - 0x30], r12
mov qword [r11 - 0x38], r14
mov r14, qword [rbp + 0x7f]
mov qword [r11 - 0x40], r15
xor r15d, r15d
mov dword [rbp + 0x6f], edx
movabs r11, 0xaaaaaaaaaaaaaaab
mov r12d, dword [rbp + 0x6f]
mov qword [rbp - 9], r8
nop word [rax + rax]
cmp edx, 0xbd
ja case.0x180025240.8
movzx eax, byte [r9 + rdx + 0x25758]
mov ecx, dword [r9 + rax*4 + 0x25734]
add rcx, r9
jmp rcx
mov rax, qword [0x1801f3788]
mov ebx, 1
mov rcx, qword [rax + 0x20]
cmp dword [rcx], ebx
jb case.0x180025240.8
mov r13d, dword [rbp + 0x7f]
nop
mov rax, qword [0x1801f3960]
lea r8, [rbp + 0x7f]
mov r9d, 0x9d
mov qword [rbp - 0x19], rax
lea rdx, [rbp - 0x19]
mov dword [rbp + 0x7f], ebx
xor ecx, ecx
mov qword [rsp + 0x20], r15
call fcn.180038130
test eax, eax
je 0x1800252b0
test r13d, r13d
je 0x180025296
mov r13d, r15d
jmp 0x1800252a2
lea rcx, [0x1801e23e4]
call fcn.1800d6920
mov edx, ebx
lea rcx, [0x1801e1890]
call fcn.1800d6920
mov rax, qword [0x1801f3788]
inc ebx
mov rcx, qword [rax + 0x20]
cmp ebx, dword [rcx]
jbe 0x180025260
mov edx, dword [rbp + 0x6f]
mov r8, qword [rbp - 9]
mov dword [rbp + 0x7f], r13d
mov r13, qword [rbp + 0x67]
jmp case.0x180025240.8
mov eax, dword [0x1801ee570]
mov rsi, r15
test eax, eax
je 0x180025388
lea r13, [0x1801ee570]
mov rbx, r13
mov qword [rbp - 1], rax
lea r9, [rbp - 1]
mov rax, qword [0x1801f38b8]
xor r8d, r8d
mov qword [rbp - 0x19], rax
xor edx, edx
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], r15
mov ecx, 0xa0
mov qword [rsp + 0x20], rax
call fcn.18005eb50
test eax, eax
je 0x180025342
mov edx, dword [rbx]
lea rcx, str.DX11RendererSurfaceStretchBlt
call fcn.1800d6920
inc dword [0x1801f3794]
mov dword [0x1801ee38c], 1
mov eax, dword [rbx]
lea r8, [rbp - 1]
mov qword [rbp - 0x19], rax
lea rdx, [rbp - 0x19]
mov rax, qword [0x1801f38b8]
mov ecx, 0x19
mov qword [rbp - 1], rax
call fcn.1800aebf0
inc rsi
lea rbx, [rsi*4]
add rbx, r13
mov eax, dword [rbx]
test eax, eax
jne 0x1800252f0
mov r13, qword [rbp + 0x67]
mov edx, dword [rbp + 0x6f]
mov r8, qword [rbp - 9]
mov rax, qword [0x1801f3788]
cmp dword [rax + 0x30], 0
jbe 0x180025495
nop dword [rax]
mov rax, qword [0x1801f3788]
lea r8, [rbp - 0x19]
xor r9d, r9d
mov qword [rbp - 1], rax
mov edx, 0xa7
mov dword [rbp - 0x19], r15d
lea rcx, [rbp - 1]
xor esi, esi
call fcn.18004c090
mov rcx, qword [0x1801f3788]
mov rbx, rax
cmp dword [rcx + 0x40], esi
jbe 0x18002547a
nop dword [rax]
mov rcx, qword [0x1801f38b8]
lea rax, [rbp - 1]
mov qword [rbp - 1], rcx
lea r9, [rbp - 0x19]
mov ecx, 0xa0
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rbp - 0x19], rbx
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.18005eb50
test eax, eax
jne 0x180025465
mov rax, qword [0x1801f3798]
lea r9, [rbp - 0x19]
mov qword [rbp - 1], rax
xor r8d, r8d
lea rax, [rbp - 1]
mov qword [rsp + 0x28], 0
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xa0
mov qword [rbp - 0x19], rbx
call fcn.18005eb50
test eax, eax
jne 0x180025465
mov rdx, rbx
lea rcx, str._Z18convert_ushort_rtpf
call fcn.1800d6920
inc dword [0x1801f3794]
mov rax, qword [0x1801f3788]
inc esi
inc rbx
cmp esi, dword [rax + 0x40]
jb 0x1800253e0
mov rax, qword [0x1801f3788]
inc r15d
cmp r15d, dword [rax + 0x30]
jb 0x1800253a0
mov edx, dword [rbp + 0x6f]
mov r8, qword [rbp - 9]
xor r15d, r15d
mov rbx, qword [rbp + 0x77]
lea r9, [0x180000000]
add edx, 0x29
movabs r11, 0xaaaaaaaaaaaaaaab
sub r8, 1
mov dword [rbp + 0x6f], edx
mov qword [rbp - 9], r8
jne 0x180025220
mov r15, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
add rsp, 0x90
pop r13
pop rbx
pop rbp
ret
mov dword [rbp + 0x7f], 1
jmp case.0x180025240.8
lea rcx, [0x1801e1ef0]
call fcn.1800d6920
mov edx, dword [rbp + 0x6f]
mov r8, qword [rbp - 9]
jmp case.0x180025240.8
mov r10, qword [rbp + 7]
mov r9, r15
test r10, r10
je 0x1800255d9
lea rcx, [r10 - 1]
mov rax, r11
mul rcx
mov r8, rdx
shr r8, 1
inc r8
lea r9, [r8 + r8*2]
mov eax, 9
cmp eax, 9
je 0x18002555e
cmp eax, 0x63
jne 0x1800255ba
movzx edx, byte [r14 + 2]
mov rcx, qword [0x1801f3e00]
and edx, 0x3f
movzx edx, byte [rdx + rcx]
mov byte [rdi], dl
inc rdi
add r14, 3
jmp 0x1800255ba
mov rcx, qword [0x1801f3e00]
movzx edx, byte [r14]
shr rdx, 2
movzx edx, byte [rdx + rcx]
mov byte [rdi], dl
movzx edx, byte [r14]
movzx ecx, byte [r14 + 1]
and edx, 3
shl edx, 4
shr ecx, 4
add edx, ecx
mov rcx, qword [0x1801f3e00]
movzx edx, byte [rdx + rcx]
mov byte [rdi + 1], dl
movzx edx, byte [r14 + 1]
movzx ecx, byte [r14 + 2]
and edx, 0xf
shr ecx, 6
lea edx, [rcx + rdx*4]
mov rcx, qword [0x1801f3e00]
movzx edx, byte [rdx + rcx]
mov byte [rdi + 2], dl
add rdi, 3
add eax, 0x5a
cmp eax, 0xb4
jbe 0x180025536
sub r8, 1
jne 0x180025531
mov edx, dword [rbp + 0x6f]
mov r8, qword [rbp - 9]
cmp r9, qword [r13 + 0x10]
jae case.0x180025240.8
mov r8d, 0x27
nop dword [rax]
mov eax, r8d
sub eax, 0x27
je 0x180025699
sub eax, 1
je 0x180025647
cmp eax, 1
jne 0x1800256a0
lea rax, [r9 + 1]
cmp rax, qword [r13 + 0x10]
jae 0x18002563a
mov eax, dword [rbp - 0x11]
mov ecx, r12d
and ecx, 0xf
shr eax, 6
lea ecx, [rax + rcx*4]
mov rax, qword [0x1801f3e00]
movzx edx, byte [rcx + rax]
mov byte [rdi], dl
mov byte [rdi + 1], 0x3d
add rdi, 2
jmp 0x1800256a0
mov dl, 0x3d
mov byte [rdi], dl
mov byte [rdi + 1], dl
add rdi, 2
jmp 0x1800256a0
lea rax, [r9 + 1]
cmp rax, qword [r13 + 0x10]
jae 0x180025658
movzx r12d, byte [r14 + 1]
jmp 0x18002565b
mov r12d, r15d
mov rax, qword [0x1801f3e00]
mov edx, dword [rbp - 0xd]
mov ecx, edx
mov dword [rbp - 0x11], r15d
shr rcx, 2
movzx ecx, byte [rcx + rax]
mov eax, r12d
mov byte [rdi], cl
mov ecx, edx
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, eax
mov rax, qword [0x1801f3e00]
movzx ecx, byte [rcx + rax]
mov byte [rdi + 1], cl
add rdi, 2
jmp 0x1800256a0
movzx eax, byte [r14]
mov dword [rbp - 0xd], eax
inc r8d
cmp r8d, 0x2a
jb 0x1800255f0
mov edx, dword [rbp + 0x6f]
mov r8, qword [rbp - 9]
jmp case.0x180025240.8
mov rcx, qword [r13 + 0x10]
mov rax, r11
add rcx, 2
xor r8d, r8d
mul rcx
mov rcx, rbx
shr rdx, 1
shl rdx, 2
call fcn.1800c3350
cmp qword [r13 + 0x18], 0x10
mov r14, r13
jb 0x1800256e7
mov r14, qword [r13]
cmp qword [rbx + 0x18], 0x10
mov rdi, rbx
jb 0x1800256f4
mov rdi, qword [rbx]
mov edx, dword [rbp + 0x6f]
mov r8, qword [rbp - 9]
jmp case.0x180025240.8
mov rax, r11
mul qword [r13 + 0x10]
shr rdx, 1
lea rax, [rdx + rdx*2]
mov edx, dword [rbp + 0x6f]
mov qword [rbp + 7], rax
jmp case.0x180025240.8
lea rcx, str._Z4sqrtDv2_f
call fcn.1800d6920
mov edx, dword [rbp + 0x6f]
mov r8, qword [rbp - 9]
jmp case.0x180025240.8