Function at 0x4646d4
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a0cc
xor eax, eax
push ebp
push 0x46497d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409d90
mov ecx, 3
cdq
idiv ecx
mov byte [ebp - 0x10], dl
cmp byte [ebp - 0x10], 0
jne 0x464730
mov eax, dword [ebp - 4]
call fcn.00409d90
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
mov dword [ebp - 0x14], eax
jmp 0x464750
mov eax, dword [ebp - 4]
call fcn.00409d90
add eax, 3
movzx edx, byte [ebp - 0x10]
sub eax, edx
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x463108]
call fcn.00409f44
add esp, 4
xor esi, esi
xor edi, edi
jmp 0x464810
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi]
mov byte [ebp - 0xf], al
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi + 1]
mov byte [ebp - 0xe], al
mov eax, dword [ebp - 4]
movzx ebx, byte [eax + edi + 2]
mov byte [ebp - 0xd], bl
movzx eax, byte [ebp - 0xf]
shr eax, 2
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 8]
mov byte [edx + esi], al
movzx eax, byte [ebp - 0xf]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [ebp - 0xe]
shr edx, 4
and edx, 0xf
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 8]
mov byte [edx + esi + 1], al
movzx eax, byte [ebp - 0xe]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
movzx edx, bl
shr edx, 6
and edx, 3
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 8]
mov byte [edx + esi + 2], al
and bl, 0x3f
movzx eax, bl
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 8]
mov byte [edx + esi + 3], al
add esi, 4
add edi, 3
mov eax, dword [ebp - 4]
call fcn.00409d90
movzx edx, byte [ebp - 0x10]
sub eax, edx
cmp edi, eax
jl 0x464773
cmp byte [ebp - 0x10], 1
jne 0x4648a3
mov eax, dword [ebp - 4]
call fcn.00409d90
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
mov byte [ebp - 0xf], al
xor edx, edx
mov byte [ebp - 0xe], dl
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
lea ebx, [ecx + ebx - 4]
movzx eax, byte [ebp - 0xf]
movzx ecx, al
shr ecx, 2
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], cl
and al, 3
movzx eax, al
shl eax, 4
movzx edx, dl
shr edx, 4
and edx, 0xf
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov byte [edx + ecx - 3], al
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov byte [eax + edx - 2], 0x3d
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov byte [eax + edx - 1], 0x3d
jmp 0x464951
cmp byte [ebp - 0x10], 2
jne 0x464951
mov eax, dword [ebp - 4]
call fcn.00409d90
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 2]
mov byte [ebp - 0xf], al
mov eax, dword [ebp - 4]
call fcn.00409d90
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
mov byte [ebp - 0xe], al
xor ecx, ecx
mov byte [ebp - 0xd], cl
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
lea ebx, [edx + ebx - 4]
movzx eax, byte [ebp - 0xf]
movzx edx, al
shr edx, 2
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], dl
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [ebp - 0xe]
movzx ebx, dl
shr ebx, 4
and ebx, 0xf
or eax, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
mov byte [ebx + esi - 3], al
and dl, 0xf
movzx eax, dl
add eax, eax
add eax, eax
movzx edx, cl
shr edx, 6
and edx, 3
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov byte [edx + ecx - 2], al
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov byte [eax + edx - 1], 0x3d
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00464248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464984
lea eax, [ebp - 8]
mov edx, dword [0x463108]
mov ecx, 2
call fcn.0040946c
ret