Function at 0x18001a130
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rbx, qword [0x18005be88]
movaps xmmword [rsp + 0x40], xmm6
mov rdi, rbx
movaps xmmword [rsp + 0x30], xmm7
cmp byte [rbx + 0xcb], 0
je 0x18001a176
test byte [rbx + 0xc], 2
jne 0x18001a176
mov byte [rbx + 0xcb], 0
mov rbx, qword [0x18005be88]
cmp byte [rbx + 0x2f90], 0
jne 0x18001a186
mov byte [rbx + 0x2f90], 1
movss xmm0, dword [rbx + 0x2f94]
xorps xmm6, xmm6
xor r14d, r14d
comiss xmm0, xmm6
jbe 0x18001a1c9
subss xmm0, dword [rbx + 0x18]
comiss xmm6, xmm0
movss dword [rbx + 0x2f94], xmm0
jb 0x18001a1c9
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18001a1bb
call fcn.18001e160
jmp 0x18001a1c2
mov byte [rbx + 0x3a4], 1
mov dword [rbx + 0x2f94], r14d
inc dword [rdi + 0x1a08]
movss xmm0, dword [rdi + 0x18]
cvtps2pd xmm0, xmm0
mov byte [rdi + 0x1a14], 1
mov dword [rdi + 0x2f5c], r14d
mov dword [rdi + 0x1a78], r14d
addsd xmm0, qword [rdi + 0x1a00]
movsd qword [rdi + 0x1a00], xmm0
mov ecx, dword [rdi + 0x2f74]
test ecx, ecx
jns 0x18001a223
mov eax, ecx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x2f70]
test eax, eax
cmovg edx, eax
call fcn.180021df0
movss xmm7, dword [0x18004dfd8]
mov dword [rdi + 0x2f70], r14d
movsxd rax, dword [rdi + 0x31e4]
movss xmm1, dword [rdi + 0x18]
movaps xmm0, xmm1
subss xmm0, dword [rdi + rax*4 + 0x3004]
addss xmm0, dword [rdi + 0x31e8]
movss dword [rdi + 0x31e8], xmm0
movss dword [rdi + rax*4 + 0x3004], xmm1
mov eax, 0x88888889
mov ecx, dword [rdi + 0x31e4]
movss xmm1, dword [rdi + 0x31e8]
inc ecx
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x78
sub ecx, eax
comiss xmm1, xmm6
mov dword [rdi + 0x31e4], ecx
jbe 0x18001a2ac
divss xmm1, dword [0x18004dfcc]
movss xmm0, dword [0x18004d040]
divss xmm0, xmm1
jmp 0x18001a2af
movaps xmm0, xmm7
mov rax, qword [rdi + 0xa8]
movss dword [rdi + 0x3a8], xmm0
mov byte [rax], 1
mov rax, qword [0x18005be88]
mov rcx, qword [rax + 0xb8]
test rcx, rcx
jne 0x18001a2e2
mov rax, qword [rax + 0xa8]
mov rcx, qword [rax + 0x48]
mov rcx, qword [rcx]
call fcn.18001e690
movss xmm1, dword [rdi + 0x14]
lea rcx, [rdi + 0x1930]
movss xmm0, dword [rdi + 0x10]
mov eax, dword [rdi + 0x1614]
mov qword [rbp - 0x30], r14
movups xmm2, xmmword [rbp - 0x30]
mov dword [rdi + 0x1944], eax
shufps xmm2, xmm2, 0xd2
movss xmm2, xmm0
shufps xmm2, xmm2, 0x27
movss xmm2, xmm1
movss xmm1, dword [rdi + 0x1618]
shufps xmm2, xmm2, 0x39
movups xmmword [rbp - 0x30], xmm2
movups xmmword [rdi + 0x194c], xmm2
call fcn.180029750
mov eax, r14d
mov dword [rdi + 0x195c], r14d
cmp byte [rdi + 0x1610], r14b
je 0x18001a35a
mov dword [rdi + 0x195c], 1
mov eax, 1
cmp byte [rdi + 0x1611], r14b
je 0x18001a36c
or eax, 2
mov dword [rdi + 0x195c], eax
test byte [rdi + 0xc], 8
je 0x18001a37b
or eax, 4
mov dword [rdi + 0x195c], eax
lea rcx, [rdi + 0x1dc8]
call fcn.180024fd0
mov rdx, qword [rdi + 0xa8]
lea rcx, [rdi + 0x1dc8]
mov rdx, qword [rdx + 8]
call fcn.180028210
lea rcx, [rdi + 0x1dc8]
call fcn.180028150
lea rcx, [rdi + 0x1e70]
call fcn.180024fd0
mov rdx, qword [rdi + 0xa8]
lea rcx, [rdi + 0x1e70]
mov rdx, qword [rdx + 8]
call fcn.180028210
lea rcx, [rdi + 0x1e70]
call fcn.180028150
mov byte [rdi + 0x1d68], r14b
mov qword [rdi + 0x1d70], r14
mov qword [rdi + 0x1d7c], r14
mov dword [rdi + 0x1d78], r14d
mov qword [rdi + 0x1d94], r14
mov qword [rdi + 0x1d8c], r14
mov qword [rdi + 0x1d84], r14
cmp byte [rdi + 0x1f1c], r14b
je 0x18001a445
mov eax, dword [rdi + 0x1f3c]
cmp eax, dword [rdi + 0x1ac8]
jne 0x18001a445
mov rcx, qword [0x18005be88]
cmp dword [rcx + 0x1ac8], eax
jne 0x18001a436
mov dword [rcx + 0x1acc], eax
cmp dword [rcx + 0x1b08], eax
jne 0x18001a445
mov byte [rcx + 0x1b0c], 1
lea rax, [rdi + 0x1ab4]
mov ecx, dword [rax]
cmp dword [rdi + 0x1abc], r14d
jne 0x18001a460
mov dword [rdi + 0x1ac0], r14d
jmp 0x18001a471
mov edx, ecx
mov r8, rax
test ecx, ecx
je 0x18001a47d
cmp dword [rdi + 0x1ac8], ecx
jne 0x18001a47d
mov dword [rdi + 0x1ac4], r14d
mov edx, ecx
mov r8, rax
movss xmm1, dword [rdi + 0x18]
test edx, edx
je 0x18001a4b4
movaps xmm0, xmm1
addss xmm0, dword [rdi + 0x1ac0]
movss dword [rdi + 0x1ac0], xmm0
cmp dword [rdi + 0x1ac8], edx
je 0x18001a4b4
movaps xmm0, xmm1
addss xmm0, dword [rdi + 0x1ac4]
movss dword [rdi + 0x1ac4], xmm0
mov eax, dword [rdi + 0x1ac8]
movaps xmm2, xmm1
mov dword [rdi + 0x1abc], edx
mov dword [r8], r14d
mov byte [rdi + 0x1ab8], r14b
cmp dword [rdi + 0x1acc], eax
je 0x18001a4eb
cmp dword [rdi + 0x1b08], eax
jne 0x18001a4eb
test eax, eax
je 0x18001a4eb
call fcn.180011a40
movss xmm2, dword [rdi + 0x18]
mov ecx, dword [rdi + 0x1ac8]
test ecx, ecx
je 0x18001a508
movaps xmm0, xmm2
addss xmm0, dword [rdi + 0x1ad0]
movss dword [rdi + 0x1ad0], xmm0
mov rax, qword [rdi + 0x1af8]
addss xmm2, dword [rdi + 0x1b1c]
mov qword [rdi + 0x1b10], rax
movzx eax, byte [rdi + 0x1ad7]
mov byte [rdi + 0x1b0d], al
mov eax, dword [rdi + 0x2f20]
movss dword [rdi + 0x1b1c], xmm2
mov dword [rdi + 0x1b08], ecx
mov dword [rdi + 0x1acc], r14d
mov byte [rdi + 0x1ad8], r14b
mov byte [rdi + 0x1b0c], r14b
mov byte [rdi + 0x1ad4], r14b
test eax, eax
je 0x18001a56a
cmp ecx, eax
je 0x18001a56a
mov dword [rdi + 0x2f20], r14d
test ecx, ecx
jne 0x18001a57c
mov qword [rdi + 0x1adc], r14
mov qword [rdi + 0x1ae8], r14
mov eax, dword [rdi + 0x1f8c]
mov dword [rdi + 0x1f90], eax
mov eax, r14d
mov qword [rdi + 0x1f88], 0x7f7fffff
mov word [rdi + 0x1f1d], r14w
mov dword [rdi + 0x1f98], r14d
mov r8, qword [0x18005be88]
cmp byte [r8 + 0x148], r14b
setne al
mov ecx, eax
or ecx, 2
cmp byte [r8 + 0x149], r14b
cmove ecx, eax
mov edx, ecx
or edx, 4
cmp byte [r8 + 0x14a], r14b
cmove edx, ecx
lea rcx, [rdi + 0xca8]
mov eax, edx
or eax, 8
cmp byte [r8 + 0x14b], r14b
mov r8d, 0x800
cmove eax, edx
lea rdx, [rdi + 0x4a8]
mov dword [rdi + 0x3c8], eax
call fcn.180046d90
movss xmm1, dword [0x18004d764]
lea rdx, [rdi + 0x14d]
lea rax, [rdi + 0x4ac]
mov r8d, 0x80
nop
cmp byte [rdx - 1], r14b
je 0x18001a63c
movss xmm0, dword [rax - 4]
comiss xmm6, xmm0
jbe 0x18001a635
movaps xmm0, xmm6
jmp 0x18001a63f
addss xmm0, dword [rdi + 0x18]
jmp 0x18001a63f
movaps xmm0, xmm1
movss dword [rax - 4], xmm0
cmp byte [rdx], r14b
je 0x18001a65e
movss xmm0, dword [rax]
comiss xmm6, xmm0
jbe 0x18001a657
movaps xmm0, xmm6
jmp 0x18001a661
addss xmm0, dword [rdi + 0x18]
jmp 0x18001a661
movaps xmm0, xmm1
movss dword [rax], xmm0
cmp byte [rdx + 1], r14b
je 0x18001a681
movss xmm0, dword [rax + 4]
comiss xmm6, xmm0
jbe 0x18001a67a
movaps xmm0, xmm6
jmp 0x18001a684
addss xmm0, dword [rdi + 0x18]
jmp 0x18001a684
movaps xmm0, xmm1
movss dword [rax + 4], xmm0
cmp byte [rdx + 2], r14b
je 0x18001a6a5
movss xmm0, dword [rax + 8]
comiss xmm6, xmm0
jbe 0x18001a69e
movaps xmm0, xmm6
jmp 0x18001a6a8
addss xmm0, dword [rdi + 0x18]
jmp 0x18001a6a8
movaps xmm0, xmm1
movss dword [rax + 8], xmm0
add rdx, 4
add rax, 0x10
sub r8, 1
jne 0x18001a620
call fcn.180017700
call fcn.18001fde0
call fcn.18001f920
mov rbx, qword [0x18005be88]
mov r9, qword [rbx + 0x1a98]
test r9, r9
je 0x18001a7d3
mov eax, dword [rbx + 0x1ac8]
mov dword [rbx + 0x1acc], eax
cmp dword [rbx + 0x1b08], eax
jne 0x18001a700
mov byte [rbx + 0x1b0c], 1
mov r9, qword [r9 + 0x368]
cmp byte [rbx + 0x138], r14b
je 0x18001a7c5
mov rcx, qword [0x18005be88]
lea rax, [rbx + 0x130]
mov rdx, rax
test rax, rax
jne 0x18001a731
lea rdx, [rcx + 0x130]
movss xmm0, dword [rdx]
movss xmm1, dword [0x18004dfe0]
comiss xmm0, xmm1
movss xmm2, dword [rdx + 4]
jb 0x18001a7c5
comiss xmm2, xmm1
jb 0x18001a7c5
movss xmm1, dword [rax]
subss xmm1, dword [rbx + 0x1af0]
movss xmm2, dword [rax + 4]
subss xmm2, dword [rbx + 0x1af4]
movss xmm0, dword [r9 + 0x10]
ucomiss xmm0, xmm1
movss dword [rbp + 0x20], xmm1
movss dword [rbp + 0x24], xmm2
jp 0x18001a789
jne 0x18001a789
movss xmm0, dword [r9 + 0x14]
ucomiss xmm0, xmm2
jp 0x18001a789
je 0x18001a7b7
test dword [r9 + 0xc], 0x100
jne 0x18001a7a5
comiss xmm6, dword [rcx + 0x2f94]
jb 0x18001a7a5
mov eax, dword [rcx + 0x1c]
mov dword [rcx + 0x2f94], eax
mov r8d, 1
lea rdx, [rbp + 0x20]
mov rcx, r9
call fcn.18001ed90
mov rcx, qword [rbx + 0x1a98]
call fcn.180013c20
jmp 0x18001a80d
call fcn.180011a40
mov qword [rbx + 0x1a98], r14
jmp 0x18001a80d
mov rcx, qword [rbx + 0x1af8]
test rcx, rcx
je 0x18001a80d
mov eax, dword [rbx + 0x1ac8]
cmp dword [rcx + 0x4c], eax
jne 0x18001a80d
mov dword [rbx + 0x1acc], eax
cmp dword [rbx + 0x1b08], eax
jne 0x18001a7ff
mov byte [rbx + 0x1b0c], 1
cmp byte [rbx + 0x138], r14b
jne 0x18001a80d
call fcn.180011a40
mov r8, qword [0x18005be88]
mov eax, dword [r8 + 0x1bd8]
sub eax, 1
js 0x18001a85b
mov r8, qword [r8 + 0x1be0]
movsxd rdx, eax
add r8, 8
lea rcx, [rdx + rdx*2]
shl rcx, 4
add r8, rcx
nop dword [rax]
mov rax, qword [r8]
test rax, rax
je 0x18001a851
test dword [rax + 0xc], 0x8000000
jne 0x18001a871
sub r8, 0x30
sub rdx, 1
jns 0x18001a840
cmp qword [rdi + 0x1d18], r14
je 0x18001a890
movss xmm0, dword [rdi + 0x1d34]
comiss xmm0, xmm6
jbe 0x18001a890
movss xmm1, dword [rdi + 0x18]
mulss xmm1, dword [0x18004d734]
addss xmm1, dword [rdi + 0x1dc0]
minss xmm1, dword [0x18004d040]
jmp 0x18001a8ad
movss xmm0, dword [rdi + 0x18]
mulss xmm0, dword [0x18004d738]
movss xmm1, dword [rdi + 0x1dc0]
subss xmm1, xmm0
maxss xmm1, xmm6
movss dword [rdi + 0x1dc0], xmm1
mov dword [rdi + 0x1f18], r14d
mov qword [rdi + 0x31f0], 0xffffffffffffffff
mov dword [rdi + 0x31ec], 0xffffffff
mov dword [rdi + 0x2f80], 0x3f800000
mov dword [rdi + 0x2f84], 0x3f800000
call fcn.1800203c0
mov rbx, qword [0x18005be88]
mov rsi, qword [rbx + 0x1bf8]
test rsi, rsi
je 0x18001a92b
cmp byte [rsi + 0x7e], r14b
je 0x18001a92b
test dword [rsi + 0xc], 0x40000
jne 0x18001a92b
cmp byte [rbx + 0x148], r14b
jne 0x18001a92b
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x18001a92b
mov dl, 1
call fcn.180015ed0
test al, al
je 0x18001a92b
mov al, 1
jmp 0x18001a92d
xor al, al
mov byte [rbx + 0x1d60], al
cmp dword [rbx + 0x1ac8], r14d
jne 0x18001a993
test al, al
je 0x18001a993
mov qword [rbx + 0x1d48], rsi
mov dword [rbx + 0x1d58], 0x7fffffff
cmp dword [rbx + 0x1c00], r14d
je 0x18001a982
mov ecx, dword [rbx + 0x1c48]
cmp ecx, 0x7fffffff
je 0x18001a982
cmp byte [rbx + 0x149], r14b
mov eax, 2
cmovne eax, r14d
add eax, ecx
mov dword [rbx + 0x1d5c], eax
jmp 0x18001a993
movzx eax, byte [rbx + 0x149]
neg al
sbb ecx, ecx
mov dword [rbx + 0x1d5c], ecx
mov r8, qword [rbx + 0x1d48]
mov qword [rbx + 0x1d40], r14
mov dword [rbx + 0x1d54], 0x7fffffff
mov dword [rbx + 0x1d50], 0x7fffffff
test r8, r8
je 0x18001aa28
mov eax, dword [rbx + 0x1d58]
mov qword [rbx + 0x1d40], r8
cmp eax, 0x7fffffff
je 0x18001a9e7
mov ecx, dword [r8 + 0x1b0]
cmp ecx, 0xffffffff
je 0x18001a9e7
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [rbx + 0x1d50], edx
mov eax, dword [rbx + 0x1d5c]
cmp eax, 0x7fffffff
je 0x18001aa0d
mov ecx, dword [r8 + 0x1b4]
cmp ecx, 0xffffffff
je 0x18001aa0d
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [rbx + 0x1d54], edx
mov qword [rbx + 0x1d48], r14
mov dword [rbx + 0x1d5c], 0x7fffffff
mov dword [rbx + 0x1d58], 0x7fffffff
mov dword [rbx + 0x1c48], 0x7fffffff
movss xmm0, dword [rdi + 0xd0]
comiss xmm0, xmm6
jb 0x18001aa4f
movsd xmm7, qword [rdi + 0x1a00]
cvtpd2ps xmm7, xmm7
subss xmm7, xmm0
mov ebx, r14d
cmp dword [rdi + 0x1a28], r14d
je 0x18001aaae
mov rsi, r14
nop
mov rax, qword [rdi + 0x1a30]
mov rcx, qword [rsi + rax]
movzx eax, byte [rcx + 0x7e]
mov byte [rcx + 0x7f], al
mov word [rcx + 0x8a], r14w
mov byte [rcx + 0x7e], r14b
mov byte [rcx + 0x80], r14b
test al, al
jne 0x18001aaa0
cmp byte [rcx + 0x3b0], r14b
jne 0x18001aaa0
comiss xmm7, dword [rcx + 0x27c]
jbe 0x18001aaa0
call fcn.180013f10
inc ebx
add rsi, 8
cmp ebx, dword [rdi + 0x1a28]
jne 0x18001aa60
mov rax, qword [rdi + 0x1bf8]
test rax, rax
je 0x18001ab8c
cmp byte [rax + 0x7f], r14b
jne 0x18001ab8c
mov r11, qword [0x18005be88]
mov eax, dword [r11 + 0x1a38]
sub eax, 1
js 0x18001ab2a
movsxd r9, eax
mov rax, qword [r11 + 0x1a40]
lea r10, [rax + r9*8]
nop dword [rax]
mov r8, qword [r10]
test r8, r8
je 0x18001ab20
cmp byte [r8 + 0x7f], r14b
je 0x18001ab20
mov eax, dword [r8 + 0xc]
and eax, 0x40200
cmp eax, 0x40200
setne cl
bt dword [r8 + 0xc], 0x18
setae al
test al, cl
jne 0x18001acc5
sub r10, 8
sub r9, 1
jns 0x18001aaf0
cmp qword [r11 + 0x1bf8], r14
je 0x18001ab5d
mov qword [r11 + 0x1bf8], r14
mov byte [r11 + 0x1c51], r14b
mov qword [r11 + 0x1c00], r14
mov byte [r11 + 0x1c4c], r14b
mov dword [r11 + 0x1c44], r14d
mov r11, qword [0x18005be88]
lea rbx, [r11 + 0x1bd8]
cmp dword [rbx], 1
jl 0x18001ab8c
mov ecx, dword [rbx + 4]
test ecx, ecx
jns 0x18001ab89
mov eax, ecx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.180021f30
mov dword [rbx], r14d
mov ecx, dword [rdi + 0x1a5c]
test ecx, ecx
jns 0x18001abb3
mov eax, ecx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x1a58]
test eax, eax
cmovg edx, eax
call fcn.180021e90
mov dword [rdi + 0x1a58], r14d
mov ecx, dword [rdi + 0x1bec]
test ecx, ecx
jns 0x18001abe1
mov eax, ecx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, ecx
lea rcx, [rdi + 0x1be8]
test eax, eax
cmovg edx, eax
call fcn.180021f30
mov dword [rdi + 0x1be8], r14d
xor edx, edx
mov rcx, qword [rdi + 0x1bf8]
call fcn.180011d90
call fcn.18001f670
movzx ecx, word [0x18004dd5c]
xor r8d, r8d
movzx edx, byte [0x18004dd5e]
movsd xmm0, qword [str.uWQAR]
xor dl, 0x3f
movsd qword [rbp - 0x30], xmm0
xor byte [rbp - 0x2f], 0x32
xor byte [rbp - 0x2e], 0x33
xor byte [rbp - 0x2d], 0x34
xor byte [rbp - 0x2c], 0x35
xor byte [rbp - 0x2b], 0x36
xor byte [rbp - 0x2a], 0x37
xor byte [rbp - 0x29], 0x38
mov byte [rdi + 0x1a15], 1
mov rax, qword [0x18005be88]
mov word [rbp - 0x24], cx
xor cl, 0x3d
xor byte [rbp - 0x23], 0x3e
mov byte [rbp - 0x24], cl
lea rcx, [rbp - 0x30]
or dword [rax + 0x1b20], 2
mov dword [rax + 0x1b40], 0x43c80000
mov dword [rax + 0x1b44], 0x43c80000
mov dword [rax + 0x1b28], 4
mov eax, dword [0x18004dd58]
mov dword [rbp - 0x28], eax
xor al, 0x39
xor byte [rbp - 0x27], 0x3a
xor byte [rbp - 0x26], 0x3b
xor byte [rbp - 0x25], 0x3c
mov byte [rbp - 0x22], dl
xor edx, edx
mov byte [rbp - 0x28], al
mov byte [rbp - 0x30], 0x44
call fcn.18000dc40
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
mov rax, qword [r8 + 0x380]
test rax, rax
cmovne r8, rax
mov rcx, r8
call fcn.180013c20
jmp 0x18001ab8c