Function at 0x4aeff0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xaaaaaaab
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x124], esi
lea ecx, [edi*4 + 8]
mul ecx
mov eax, dword [ebp - 0x11c]
mov ecx, edx
shr ecx, 1
cmp dword [eax + 4], 0
je 0x4af057
mov ebx, dword [ebp - 0x11c]
lea eax, [ecx + ecx]
xor edx, edx
div dword [ebx + 4]
mov ebx, dword [ebp - 0x118]
add eax, ecx
jmp 0x4af059
mov eax, ecx
add eax, 3
mov ecx, esi
push eax
call fcn.00498ac0
test al, al
je 0x4af30e
test edi, edi
je 0x4af2f9
test ebx, ebx
je 0x4af2f9
xor edx, edx
mov dword [ebp - 0x114], 0
mov eax, 0xaaaaaaab
mov dword [ebp - 0x120], edx
mul edi
xor ecx, ecx
xor ebx, ebx
mov eax, edx
shr eax, 1
mov dword [ebp - 0x110], eax
je 0x4af1b5
nop dword [eax]
mov eax, dword [ebp - 0x114]
mov edi, dword [ebp - 0x118]
movzx esi, byte [edi + eax]
movzx edx, byte [edi + eax + 1]
movzx edi, byte [edi + eax + 2]
add eax, 3
mov dword [ebp - 0x114], eax
mov eax, esi
shr eax, 2
and esi, 3
shl esi, 4
mov al, byte [eax + 0x647570]
mov byte [ebp + ecx - 0x10c], al
mov eax, edx
shr eax, 4
and edx, 0xf
or esi, eax
shl edx, 2
mov al, byte [esi + 0x647570]
mov byte [ebp + ecx - 0x10b], al
mov eax, edi
shr eax, 6
and edi, 0x3f
or eax, edx
mov edx, dword [ebp - 0x11c]
mov al, byte [eax + 0x647570]
mov byte [ebp + ecx - 0x10a], al
mov al, byte [edi + 0x647570]
mov byte [ebp + ecx - 0x109], al
add ecx, 4
mov eax, dword [ebp - 0x120]
add eax, 4
mov dword [ebp - 0x120], eax
cmp eax, dword [edx + 4]
jb 0x4af15b
xor edx, edx
mov word [ebp + ecx - 0x10c], 0xa0d
mov dword [ebp - 0x120], edx
add ecx, 2
mov esi, dword [ebp - 0x124]
cmp ecx, 0x100
jl 0x4af182
push ecx
lea eax, [ebp - 0x10c]
mov ecx, esi
push eax
call fcn.00495ba0
test al, al
je 0x4af30e
xor ecx, ecx
mov eax, dword [ebp - 0x110]
inc ebx
cmp ebx, eax
jb 0x4af0b0
test ecx, ecx
je 0x4af1b2
push ecx
lea eax, [ebp - 0x10c]
mov ecx, esi
push eax
call fcn.00495ba0
test al, al
je 0x4af30e
mov eax, dword [ebp - 0x110]
mov edi, dword [ebp + 0xc]
lea eax, [eax + eax*2]
mov bl, 1
sub edi, eax
sub edi, 0
je 0x4af2b1
sub edi, 1
je 0x4af24e
sub edi, 1
jne 0x4af2cb
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x114]
movzx edi, byte [ecx + eax]
movzx eax, byte [ecx + eax + 1]
mov ecx, esi
mov dword [ebp - 0x110], eax
mov eax, edi
shr eax, 2
movzx eax, byte [eax + 0x647570]
push eax
call fcn.004952a0
mov bl, al
test bl, bl
je 0x4af2cb
mov eax, dword [ebp - 0x110]
and edi, 3
shr eax, 4
mov ecx, esi
shl edi, 4
or eax, edi
movzx eax, byte [eax + 0x647570]
push eax
call fcn.004952a0
mov bl, al
test bl, bl
je 0x4af2cb
mov eax, dword [ebp - 0x110]
and eax, 0xf
movzx eax, byte [eax*4 + 0x647570]
push eax
jmp 0x4af295
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x118]
movzx edi, byte [ecx + eax]
mov ecx, esi
mov eax, edi
shr eax, 2
movzx eax, byte [eax + 0x647570]
push eax
call fcn.004952a0
mov bl, al
test bl, bl
je 0x4af2cb
and edi, 3
mov ecx, esi
shl edi, 4
movzx eax, byte [edi + 0x647570]
push eax
call fcn.004952a0
mov bl, al
test bl, bl
je 0x4af2cb
push 0x3d
mov ecx, esi
call fcn.004952a0
mov bl, al
test bl, bl
je 0x4af2cb
push 0x3d
mov ecx, esi
call fcn.004952a0
mov bl, al
test bl, bl
je 0x4af2cb
push 0xd
mov ecx, esi
call fcn.004952a0
mov bl, al
test bl, bl
je 0x4af2cb
push 0xa
mov ecx, esi
call fcn.004952a0
mov bl, al
push str._r_n_r_n
mov ecx, esi
call fcn.00498780
test al, al
je 0x4af2e4
push 2
mov ecx, esi
call fcn.0049b9e0
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00622073
mov esp, ebp
pop ebp
ret 0xc