Function at 0x4949a8
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, edi
test eax, eax
je 0x4949c3
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor ebx, ebx
mov edx, dword [ebp - 4]
add edx, 3
mov eax, dword [ebp + 8]
call fcn.00406bfc
jmp 0x494be4
inc ebx
cmp byte [ebp + 0xc], 0
je 0x494a95
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x494a11
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x18], 0
je 0x494a05
mov eax, dword [ebp - 0x18]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
setle byte [ebp - 0x19]
jmp 0x494a15
mov byte [ebp - 0x19], 0
cmp byte [ebp - 0x19], 0
jne 0x494a2f
mov ecx, 0x4e4
mov edx, 0x494c0c
mov eax, 0x494c44
call fcn.004063f8
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x10], 0
jne 0x494a52
mov eax, dword [ebp - 0x10]
movzx eax, byte [edi + eax - 1]
mov edx, dword [0x50f924]
movzx eax, al
bt dword [edx], eax
jae 0x494a7a
mov eax, edi
call fcn.0040696c
add eax, dword [ebp - 0x10]
dec eax
mov edx, dword [ebp + 0x10]
call fcn.004935ac
push eax
mov eax, edi
call fcn.0040696c
add eax, dword [ebp - 0x10]
dec eax
pop edx
sub edx, eax
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [esi]
lea eax, [eax + eax*2]
add eax, ebx
cmp eax, dword [ebp - 4]
jle 0x494aa0
dec ebx
jmp 0x494bef
cmp ebx, dword [ebp - 4]
jle 0x494aa0
dec ebx
jmp 0x494bef
mov eax, dword [ebp + 8]
call fcn.004069cc
mov edx, dword [esi]
movzx edx, byte [edi + edx - 1]
and dl, 0xfc
movzx edx, dl
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
mov eax, dword [esi]
inc eax
cmp eax, dword [ebp - 8]
jg 0x494ba1
inc ebx
mov eax, dword [ebp + 8]
call fcn.004069cc
lea eax, [eax + ebx - 1]
push eax
mov eax, dword [esi]
movzx eax, byte [edi + eax - 1]
and al, 3
movzx eax, al
shl eax, 4
mov edx, dword [esi]
movzx edx, byte [edi + edx]
and dl, 0xf0
movzx edx, dl
shr edx, 4
add eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
pop edx
mov byte [edx], al
mov eax, dword [esi]
add eax, 2
cmp eax, dword [ebp - 8]
jg 0x494b6d
inc ebx
mov eax, dword [ebp + 8]
call fcn.004069cc
lea eax, [eax + ebx - 1]
push eax
mov eax, dword [esi]
movzx eax, byte [edi + eax]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
mov edx, dword [esi]
movzx edx, byte [edi + edx + 1]
and dl, 0xc0
movzx edx, dl
shr edx, 6
add eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
pop edx
mov byte [edx], al
inc ebx
mov eax, dword [ebp + 8]
call fcn.004069cc
mov edx, dword [esi]
movzx edx, byte [edi + edx + 1]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
jmp 0x494be1
inc ebx
mov eax, dword [ebp + 8]
call fcn.004069cc
mov edx, dword [esi]
movzx edx, byte [edi + edx]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, dword [ebp + 8]
call fcn.004069cc
mov byte [eax + ebx - 1], 0x3d
jmp 0x494be1
inc ebx
mov eax, dword [ebp + 8]
call fcn.004069cc
mov edx, dword [esi]
movzx edx, byte [edi + edx - 1]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, dword [ebp + 8]
call fcn.004069cc
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, dword [ebp + 8]
call fcn.004069cc
mov byte [eax + ebx - 1], 0x3d
add dword [esi], 3
mov eax, dword [esi]
cmp eax, dword [ebp - 8]
jle 0x4949db
mov eax, dword [ebp + 8]
mov edx, ebx
call fcn.00406bfc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc