Function at 0x180021390
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 [0x180072b80]
movaps xmmword [rsp + 0x40], xmm6
mov rdi, rbx
movaps xmmword [rsp + 0x30], xmm7
cmp byte [rbx + 0xcb], 0
je 0x1800213d6
test byte [rbx + 0xc], 2
jne 0x1800213d6
mov byte [rbx + 0xcb], 0
mov rbx, qword [0x180072b80]
cmp byte [rbx + 0x2f90], 0
jne 0x1800213e6
mov byte [rbx + 0x2f90], 1
movss xmm0, dword [rbx + 0x2f94]
xorps xmm6, xmm6
xor r14d, r14d
comiss xmm0, xmm6
jbe 0x180021429
subss xmm0, dword [rbx + 0x18]
comiss xmm6, xmm0
movss dword [rbx + 0x2f94], xmm0
jb 0x180021429
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18002141b
call fcn.1800253c0
jmp 0x180021422
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 0x180021483
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.180029050
movss xmm7, dword [0x180065988]
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 0x18002150c
divss xmm1, dword [0x180064cf0]
movss xmm0, dword [0x1800640e8]
divss xmm0, xmm1
jmp 0x18002150f
movaps xmm0, xmm7
mov rax, qword [rdi + 0xa8]
movss dword [rdi + 0x3a8], xmm0
mov byte [rax], 1
mov rax, qword [0x180072b80]
mov rcx, qword [rax + 0xb8]
test rcx, rcx
jne 0x180021542
mov rax, qword [rax + 0xa8]
mov rcx, qword [rax + 0x48]
mov rcx, qword [rcx]
call fcn.1800258f0
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.1800309a0
mov eax, r14d
mov dword [rdi + 0x195c], r14d
cmp byte [rdi + 0x1610], r14b
je 0x1800215ba
mov dword [rdi + 0x195c], 1
mov eax, 1
cmp byte [rdi + 0x1611], r14b
je 0x1800215cc
or eax, 2
mov dword [rdi + 0x195c], eax
test byte [rdi + 0xc], 8
je 0x1800215db
or eax, 4
mov dword [rdi + 0x195c], eax
lea rcx, [rdi + 0x1dc8]
call fcn.18002c230
mov rdx, qword [rdi + 0xa8]
lea rcx, [rdi + 0x1dc8]
mov rdx, qword [rdx + 8]
call fcn.18002f460
lea rcx, [rdi + 0x1dc8]
call fcn.18002f3a0
lea rcx, [rdi + 0x1e70]
call fcn.18002c230
mov rdx, qword [rdi + 0xa8]
lea rcx, [rdi + 0x1e70]
mov rdx, qword [rdx + 8]
call fcn.18002f460
lea rcx, [rdi + 0x1e70]
call fcn.18002f3a0
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 0x1800216a5
mov eax, dword [rdi + 0x1f3c]
cmp eax, dword [rdi + 0x1ac8]
jne 0x1800216a5
mov rcx, qword [0x180072b80]
cmp dword [rcx + 0x1ac8], eax
jne 0x180021696
mov dword [rcx + 0x1acc], eax
cmp dword [rcx + 0x1b08], eax
jne 0x1800216a5
mov byte [rcx + 0x1b0c], 1
lea rax, [rdi + 0x1ab4]
mov ecx, dword [rax]
cmp dword [rdi + 0x1abc], r14d
jne 0x1800216c0
mov dword [rdi + 0x1ac0], r14d
jmp 0x1800216d1
mov edx, ecx
mov r8, rax
test ecx, ecx
je 0x1800216dd
cmp dword [rdi + 0x1ac8], ecx
jne 0x1800216dd
mov dword [rdi + 0x1ac4], r14d
mov edx, ecx
mov r8, rax
movss xmm1, dword [rdi + 0x18]
test edx, edx
je 0x180021714
movaps xmm0, xmm1
addss xmm0, dword [rdi + 0x1ac0]
movss dword [rdi + 0x1ac0], xmm0
cmp dword [rdi + 0x1ac8], edx
je 0x180021714
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 0x18002174b
cmp dword [rdi + 0x1b08], eax
jne 0x18002174b
test eax, eax
je 0x18002174b
call fcn.180018c60
movss xmm2, dword [rdi + 0x18]
mov ecx, dword [rdi + 0x1ac8]
test ecx, ecx
je 0x180021768
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 0x1800217ca
cmp ecx, eax
je 0x1800217ca
mov dword [rdi + 0x2f20], r14d
test ecx, ecx
jne 0x1800217dc
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 [0x180072b80]
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.1800520c0
movss xmm1, dword [0x180064d18]
lea rdx, [rdi + 0x14d]
lea rax, [rdi + 0x4ac]
mov r8d, 0x80
nop
cmp byte [rdx - 1], r14b
je 0x18002189c
movss xmm0, dword [rax - 4]
comiss xmm6, xmm0
jbe 0x180021895
movaps xmm0, xmm6
jmp 0x18002189f
addss xmm0, dword [rdi + 0x18]
jmp 0x18002189f
movaps xmm0, xmm1
movss dword [rax - 4], xmm0
cmp byte [rdx], r14b
je 0x1800218be
movss xmm0, dword [rax]
comiss xmm6, xmm0
jbe 0x1800218b7
movaps xmm0, xmm6
jmp 0x1800218c1
addss xmm0, dword [rdi + 0x18]
jmp 0x1800218c1
movaps xmm0, xmm1
movss dword [rax], xmm0
cmp byte [rdx + 1], r14b
je 0x1800218e1
movss xmm0, dword [rax + 4]
comiss xmm6, xmm0
jbe 0x1800218da
movaps xmm0, xmm6
jmp 0x1800218e4
addss xmm0, dword [rdi + 0x18]
jmp 0x1800218e4
movaps xmm0, xmm1
movss dword [rax + 4], xmm0
cmp byte [rdx + 2], r14b
je 0x180021905
movss xmm0, dword [rax + 8]
comiss xmm6, xmm0
jbe 0x1800218fe
movaps xmm0, xmm6
jmp 0x180021908
addss xmm0, dword [rdi + 0x18]
jmp 0x180021908
movaps xmm0, xmm1
movss dword [rax + 8], xmm0
add rdx, 4
add rax, 0x10
sub r8, 1
jne 0x180021880
call fcn.18001e960
call fcn.180027040
call fcn.180026b80
mov rbx, qword [0x180072b80]
mov r9, qword [rbx + 0x1a98]
test r9, r9
je 0x180021a33
mov eax, dword [rbx + 0x1ac8]
mov dword [rbx + 0x1acc], eax
cmp dword [rbx + 0x1b08], eax
jne 0x180021960
mov byte [rbx + 0x1b0c], 1
mov r9, qword [r9 + 0x368]
cmp byte [rbx + 0x138], r14b
je 0x180021a25
mov rcx, qword [0x180072b80]
lea rax, [rbx + 0x130]
mov rdx, rax
test rax, rax
jne 0x180021991
lea rdx, [rcx + 0x130]
movss xmm0, dword [rdx]
movss xmm1, dword [0x180065990]
comiss xmm0, xmm1
movss xmm2, dword [rdx + 4]
jb 0x180021a25
comiss xmm2, xmm1
jb 0x180021a25
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 0x1800219e9
jne 0x1800219e9
movss xmm0, dword [r9 + 0x14]
ucomiss xmm0, xmm2
jp 0x1800219e9
je 0x180021a17
test dword [r9 + 0xc], 0x100
jne 0x180021a05
comiss xmm6, dword [rcx + 0x2f94]
jb 0x180021a05
mov eax, dword [rcx + 0x1c]
mov dword [rcx + 0x2f94], eax
mov r8d, 1
lea rdx, [rbp + 0x20]
mov rcx, r9
call fcn.180025ff0
mov rcx, qword [rbx + 0x1a98]
call fcn.18001ae40
jmp 0x180021a6d
call fcn.180018c60
mov qword [rbx + 0x1a98], r14
jmp 0x180021a6d
mov rcx, qword [rbx + 0x1af8]
test rcx, rcx
je 0x180021a6d
mov eax, dword [rbx + 0x1ac8]
cmp dword [rcx + 0x4c], eax
jne 0x180021a6d
mov dword [rbx + 0x1acc], eax
cmp dword [rbx + 0x1b08], eax
jne 0x180021a5f
mov byte [rbx + 0x1b0c], 1
cmp byte [rbx + 0x138], r14b
jne 0x180021a6d
call fcn.180018c60
mov r8, qword [0x180072b80]
mov eax, dword [r8 + 0x1bd8]
sub eax, 1
js 0x180021abb
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 0x180021ab1
test dword [rax + 0xc], 0x8000000
jne 0x180021ad1
sub r8, 0x30
sub rdx, 1
jns 0x180021aa0
cmp qword [rdi + 0x1d18], r14
je 0x180021af0
movss xmm0, dword [rdi + 0x1d34]
comiss xmm0, xmm6
jbe 0x180021af0
movss xmm1, dword [rdi + 0x18]
mulss xmm1, dword [0x180064cdc]
addss xmm1, dword [rdi + 0x1dc0]
minss xmm1, dword [0x1800640e8]
jmp 0x180021b0d
movss xmm0, dword [rdi + 0x18]
mulss xmm0, dword [0x180064ce0]
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.180027620
mov rbx, qword [0x180072b80]
mov rsi, qword [rbx + 0x1bf8]
test rsi, rsi
je 0x180021b8b
cmp byte [rsi + 0x7e], r14b
je 0x180021b8b
test dword [rsi + 0xc], 0x40000
jne 0x180021b8b
cmp byte [rbx + 0x148], r14b
jne 0x180021b8b
mov ecx, dword [rbx + 0x3c]
test ecx, ecx
js 0x180021b8b
mov dl, 1
call fcn.18001d130
test al, al
je 0x180021b8b
mov al, 1
jmp 0x180021b8d
xor al, al
mov byte [rbx + 0x1d60], al
cmp dword [rbx + 0x1ac8], r14d
jne 0x180021bf3
test al, al
je 0x180021bf3
mov qword [rbx + 0x1d48], rsi
mov dword [rbx + 0x1d58], 0x7fffffff
cmp dword [rbx + 0x1c00], r14d
je 0x180021be2
mov ecx, dword [rbx + 0x1c48]
cmp ecx, 0x7fffffff
je 0x180021be2
cmp byte [rbx + 0x149], r14b
mov eax, 2
cmovne eax, r14d
add eax, ecx
mov dword [rbx + 0x1d5c], eax
jmp 0x180021bf3
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 0x180021c88
mov eax, dword [rbx + 0x1d58]
mov qword [rbx + 0x1d40], r8
cmp eax, 0x7fffffff
je 0x180021c47
mov ecx, dword [r8 + 0x1b0]
cmp ecx, 0xffffffff
je 0x180021c47
inc ecx
add eax, ecx
cdq
idiv ecx
mov dword [rbx + 0x1d50], edx
mov eax, dword [rbx + 0x1d5c]
cmp eax, 0x7fffffff
je 0x180021c6d
mov ecx, dword [r8 + 0x1b4]
cmp ecx, 0xffffffff
je 0x180021c6d
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 0x180021caf
movsd xmm7, qword [rdi + 0x1a00]
cvtpd2ps xmm7, xmm7
subss xmm7, xmm0
mov ebx, r14d
cmp dword [rdi + 0x1a28], r14d
je 0x180021d0e
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 0x180021d00
cmp byte [rcx + 0x3b0], r14b
jne 0x180021d00
comiss xmm7, dword [rcx + 0x27c]
jbe 0x180021d00
call fcn.18001b130
inc ebx
add rsi, 8
cmp ebx, dword [rdi + 0x1a28]
jne 0x180021cc0
mov rax, qword [rdi + 0x1bf8]
test rax, rax
je 0x180021dec
cmp byte [rax + 0x7f], r14b
jne 0x180021dec
mov r11, qword [0x180072b80]
mov eax, dword [r11 + 0x1a38]
sub eax, 1
js 0x180021d8a
movsxd r9, eax
mov rax, qword [r11 + 0x1a40]
lea r10, [rax + r9*8]
nop dword [rax]
mov r8, qword [r10]
test r8, r8
je 0x180021d80
cmp byte [r8 + 0x7f], r14b
je 0x180021d80
mov eax, dword [r8 + 0xc]
and eax, 0x40200
cmp eax, 0x40200
setne cl
bt dword [r8 + 0xc], 0x18
setae al
test al, cl
jne 0x180021f25
sub r10, 8
sub r9, 1
jns 0x180021d50
cmp qword [r11 + 0x1bf8], r14
je 0x180021dbd
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 [0x180072b80]
lea rbx, [r11 + 0x1bd8]
cmp dword [rbx], 1
jl 0x180021dec
mov ecx, dword [rbx + 4]
test ecx, ecx
jns 0x180021de9
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.180029190
mov dword [rbx], r14d
mov ecx, dword [rdi + 0x1a5c]
test ecx, ecx
jns 0x180021e13
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.1800290f0
mov dword [rdi + 0x1a58], r14d
mov ecx, dword [rdi + 0x1bec]
test ecx, ecx
jns 0x180021e41
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.180029190
mov dword [rdi + 0x1be8], r14d
xor edx, edx
mov rcx, qword [rdi + 0x1bf8]
call fcn.180018fb0
call fcn.1800268d0
movzx ecx, word [0x18006570c]
xor r8d, r8d
movzx edx, byte [0x18006570e]
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 [0x180072b80]
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 [0x180065708]
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.180014e60
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.18001ae40
jmp 0x180021dec