Function at 0x49d3f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor edx, edx
mov dword [ecx + 0xc], 0
mov dword [ebp - 4], edx
mov eax, 0x55555556
push esi
mov esi, dword [ebp + 0xc]
imul esi
mov dword [ebp - 0x14], ecx
add ecx, 0x10
mov ebx, edx
mov dword [ebp + 0xc], ecx
shr ebx, 0x1f
add ebx, edx
mov edx, esi
push edi
mov dword [ebp - 8], ebx
lea eax, [ebx + ebx*2]
sub edx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edx
add eax, esi
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0xc], eax
test edx, edx
je 0x49d444
mov eax, dword [ecx]
push edx
call dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], 0
lea eax, [ebx + ebx*2]
lea edi, [eax*4 + 0xa]
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov eax, 0x40
mov esi, dword [ecx + 0x18]
test esi, esi
cmovle esi, eax
mov eax, edi
cdq
idiv esi
mov eax, dword [ecx]
sub esi, edx
add esi, edi
push esi
call dword [eax]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x14], edi
mov edi, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], esi
test ebx, ebx
jle 0x49d52e
mov bl, byte [edi]
mov dl, byte [edi + 1]
mov bh, byte [edi + 2]
add edi, 3
movzx ecx, bl
shr ecx, 2
mov byte [ebp + 0xb], dl
movzx edx, dl
shr edx, 4
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax], cx
mov cl, bl
shl cl, 4
or edx, ecx
movzx esi, bh
and edx, 0x3f
movzx ecx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dl, byte [ebp + 0xb]
mov word [eax + 2], cx
mov ecx, esi
shr ecx, 6
and esi, 0x3f
shl dl, 2
or edx, ecx
and edx, 0x3f
movzx ecx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 4]
mov word [eax + 4], cx
movzx ecx, word [esi*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax + 6], cx
add eax, 8
lea ecx, [edx + 8]
cmp ecx, 0x4c
jle 0x49d51e
cmp edi, dword [ebp - 0xc]
jae 0x49d51a
mov dword [eax], 0xa000d
add eax, 4
xor edx, edx
jmp 0x49d521
add edx, 4
sub dword [ebp - 8], 1
mov dword [ebp - 4], edx
jne 0x49d495
mov ecx, dword [ebp - 0x10]
cmp ecx, 1
jne 0x49d567
mov dl, byte [edi]
movzx ecx, dl
and dl, 3
shr ecx, 2
shl dl, 4
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax], cx
movzx ecx, dl
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax + 2], cx
mov dword [eax + 4], 0x3d003d
jmp 0x49d5bd
cmp ecx, 2
jne 0x49d5c0
mov dl, byte [edi]
mov bl, byte [edi + 1]
movzx ecx, dl
and dl, 3
shr ecx, 2
shl dl, 4
movzx edx, dl
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax], cx
movzx ecx, bl
and bl, 0xf
shr ecx, 4
or edx, ecx
shl bl, 2
movzx ecx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax + 2], cx
movzx ecx, bl
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax + 4], cx
mov ecx, 0x3d
mov word [eax + 6], cx
add eax, 8
mov esi, dword [ebp - 0x14]
xor ecx, ecx
mov word [eax], cx
add eax, 2
cmp dword [esi + 0x24], ecx
je 0x49d5d3
mov ecx, dword [esi + 0x1c]
sub eax, ecx
mov ecx, dword [ebp + 0xc]
push eax
call fcn.004992e0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10