Function at 0x46aff0
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x4c4896
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x508e4c]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
mov dword [esp + 0x30], eax
mov al, byte [0x50d44c]
push edi
mov edi, dword [esp + 0x48]
xor esi, esi
test al, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
jne 0x46b072
or dword [0x50d44c], 1
push 0x40
push 0x4d7440
mov ecx, 0x50d430
mov dword [esp + 0x48], esi
mov dword [0x50d448], 0xf
mov dword [0x50d444], esi
mov byte [0x50d434], 0
call fcn.004016f0
push 0x4c4e50
call fcn.004a90a6
add esp, 4
mov ebp, dword [ebx + 0x14]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], esi
mov byte [esp + 0x1c], 0
lea ecx, [ebp*8]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
inc edx
cmp edx, 0xf
mov dword [esp + 0x40], 1
je 0x46b0d3
push 1
push edx
lea ecx, [esp + 0x20]
call fcn.004013b0
test al, al
je 0x46b0d3
mov eax, dword [esp + 0x30]
mov ecx, 0x10
cmp eax, ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], esi
jae 0x46b0ce
lea eax, [esp + 0x1c]
mov byte [eax], 0
jmp 0x46b0d8
mov ecx, 0x10
cmp ebp, esi
jbe 0x46b23e
lea edi, [ebx + 4]
jmp 0x46b0f0
mov ecx, 0x10
lea ebx, [ebx]
cmp dword [ebx + 0x18], ecx
jb 0x46b0f9
mov eax, dword [edi]
jmp 0x46b0fb
mov eax, edi
mov al, byte [eax + esi]
mov edx, dword [0x50d448]
sar al, 2
and al, 0x3f
cmp edx, ecx
mov ecx, dword [0x50d434]
jae 0x46b118
mov ecx, 0x50d434
movsx edx, al
xor eax, eax
mov al, byte [edx + ecx]
lea ecx, [esp + 0x18]
push eax
push 1
call fcn.004015e0
mov ecx, dword [ebx + 0x18]
cmp ecx, 0x10
jb 0x46b138
mov eax, dword [edi]
jmp 0x46b13a
mov eax, edi
mov al, byte [eax + esi]
and al, 3
shl al, 4
inc esi
cmp esi, ebp
jae 0x46b15d
cmp ecx, 0x10
jb 0x46b150
mov ecx, dword [edi]
jmp 0x46b152
mov ecx, edi
mov cl, byte [ecx + esi]
sar cl, 4
and cl, 0xf
or al, cl
cmp dword [0x50d448], 0x10
mov ecx, dword [0x50d434]
jae 0x46b171
mov ecx, 0x50d434
movsx edx, al
xor eax, eax
mov al, byte [edx + ecx]
lea ecx, [esp + 0x18]
push eax
push 1
call fcn.004015e0
cmp esi, ebp
jae 0x46b1d9
mov ecx, dword [ebx + 0x18]
cmp ecx, 0x10
jb 0x46b195
mov eax, dword [edi]
jmp 0x46b197
mov eax, edi
mov al, byte [eax + esi]
and al, 0xf
shl al, 2
inc esi
cmp esi, ebp
jae 0x46b1ba
cmp ecx, 0x10
jb 0x46b1ad
mov ecx, dword [edi]
jmp 0x46b1af
mov ecx, edi
mov cl, byte [ecx + esi]
sar cl, 6
and cl, 3
or al, cl
cmp dword [0x50d448], 0x10
mov ecx, dword [0x50d434]
jae 0x46b1ce
mov ecx, 0x50d434
movsx edx, al
xor eax, eax
mov al, byte [edx + ecx]
push eax
jmp 0x46b1dc
inc esi
push 0x3d
lea ecx, [esp + 0x1c]
push 1
call fcn.004015e0
cmp esi, ebp
jae 0x46b222
mov eax, dword [ebx + 0x18]
mov ecx, 0x10
cmp eax, ecx
jb 0x46b1fb
mov eax, dword [edi]
jmp 0x46b1fd
mov eax, edi
mov al, byte [eax + esi]
mov edx, dword [0x50d448]
and al, 0x3f
cmp edx, ecx
mov ecx, dword [0x50d434]
jae 0x46b217
mov ecx, 0x50d434
movsx edx, al
xor eax, eax
mov al, byte [edx + ecx]
push eax
jmp 0x46b224
push 0x3d
lea ecx, [esp + 0x1c]
push 1
call fcn.004015e0
inc esi
cmp esi, ebp
jb 0x46b0e5
mov edi, dword [esp + 0x10]
xor esi, esi
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x20]
push ecx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], esi
mov ecx, edi
mov byte [edi + 4], 0
call fcn.00401280
cmp dword [esp + 0x30], 0x10
jb 0x46b26f
mov edx, dword [esp + 0x1c]
push edx
call fcn.004a7e92
add esp, 4
mov ecx, dword [esp + 0x38]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
pop ebx
xor ecx, esp
call fcn.004a8b15
add esp, 0x34
ret