Function at 0x46ad28
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x46ad30
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053a8
xor eax, eax
push ebp
push 0x46a41a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00408ff4
mov edx, dword [ebp - 0x1c]
mov eax, 0x46a430
call fcn.004054fc
test eax, eax
jle 0x46afdb
mov ebx, 1
mov edx, dword [ebp - 4]
mov eax, 0x46a440
call fcn.004054fc
mov esi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.004051c0
mov ecx, eax
sub ecx, esi
inc ecx
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00405418
cmp ebx, 1
jne 0x46adcd
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x46a440
call fcn.004054fc
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405418
jmp 0x46addf
cmp ebx, 2
jne 0x46addf
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov dl, byte [edx]
call fcn.004050e8
inc ebx
cmp ebx, 4
jne 0x46ad7a
mov edx, 0x46a44c
mov eax, dword [ebp - 8]
call fcn.004091a4
test al, al
je 0x46afa1
mov ebx, 1
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x5f
jne 0x46ae1b
lea eax, [ebp - 0x10]
mov edx, 0x46a458
call fcn.004051c8
jmp 0x46aebd
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x3d
jne 0x46aea3
mov edx, 0x46a45c
lea eax, [ebp - 0x28]
call fcn.004038f8
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov cl, 2
call fcn.004038c8
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x30]
call fcn.004038f8
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx + 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
mov cl, 3
call fcn.004038c8
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x24]
call fcn.00405164
mov eax, dword [ebp - 0x24]
call fcn.004094bc
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.004050e8
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.004051c8
add ebx, 2
jmp 0x46aebd
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
call fcn.004050e8
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x10]
call fcn.004051c8
inc ebx
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x3f
jne 0x46adff
mov eax, dword [ebp - 4]
cmp byte [eax + ebx], 0x3d
jne 0x46adff
jmp 0x46afb2
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.0046ad10
mov byte [ebp - 0x17], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 1]
call fcn.0046ad10
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 2]
call fcn.0046ad10
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 3]
call fcn.0046ad10
mov byte [ebp - 0x14], al
mov dl, byte [ebp - 0x17]
shl edx, 2
mov al, byte [ebp - 0x16]
xor ecx, ecx
mov cl, al
shr ecx, 4
or dl, cl
mov byte [ebp - 0x13], dl
shl eax, 4
mov dl, byte [ebp - 0x15]
xor ecx, ecx
mov cl, dl
shr ecx, 2
or al, cl
mov byte [ebp - 0x12], al
shl edx, 6
xor eax, eax
mov al, byte [ebp - 0x14]
shr eax, 0
or dl, al
mov byte [ebp - 0x11], dl
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.004051c0
mov ecx, eax
mov edx, 5
mov eax, dword [ebp - 4]
call fcn.00405418
push dword [ebp - 0x10]
lea eax, [ebp - 0x38]
mov dl, byte [ebp - 0x13]
call fcn.004050e8
push dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
mov dl, byte [ebp - 0x12]
call fcn.004050e8
push dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
mov dl, byte [ebp - 0x11]
call fcn.004050e8
push dword [ebp - 0x40]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405280
mov eax, dword [ebp - 4]
call fcn.004051c0
cmp eax, 4
jge 0x46aede
mov edx, 0x46a468
mov eax, dword [ebp - 0xc]
call fcn.004091a4
test al, al
je 0x46afcf
mov edx, edi
mov eax, dword [ebp - 0x10]
call fcn.0046b074
jmp 0x46afe5
mov eax, edi
mov edx, dword [ebp - 0x10]
call fcn.00404f5c
jmp 0x46afe5
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404f5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a421
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.00404f2c
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404f2c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404f2c
ret