Function at 0x4227dd
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov eax, edx
mov dword [ebp - 0x18], 0x13
mov edi, ecx
mov dword [ebp - 0x24], eax
push 3
xor edx, edx
mov dword [ebp - 4], edi
pop ecx
div ecx
push 0x4c
mov dword [ebp - 0xc], edx
xor esi, esi
mov dword [ebp - 0x1c], ecx
xor edx, edx
shl eax, 2
mov ebx, esi
pop ecx
div ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], eax
test edi, edi
je 0x4229a9
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4229a9
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4229a9
mov edx, dword [ebp - 0x24]
mov eax, dword [eax]
lea ecx, [edi + edx]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 8]
add eax, ecx
mov dword [ebp - 0x10], eax
mov eax, edx
shl eax, 2
xor edx, edx
div dword [ebp - 0x1c]
xor edx, edx
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
div dword [ebp - 0x14]
test edx, edx
je 0x42287a
push 3
pop eax
and edx, eax
je 0x42287a
push 4
pop eax
sub eax, edx
mov edx, dword [ebp - 8]
add edx, eax
jmp 0x42287d
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
cmp dword [eax], edx
jb 0x4229a2
mov edx, esi
cmp edx, dword [ebp - 0x20]
push 0x13
mov dword [ebp - 0x1c], edx
pop eax
jne 0x42289e
mov eax, dword [ebp - 0x28]
shr eax, 2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
test eax, eax
je 0x422908
mov edx, esi
mov dword [ebp - 8], esi
cmp edi, dword [ebp - 0x24]
jae 0x4229a9
movzx eax, byte [edi]
or edx, eax
mov eax, dword [ebp - 8]
inc edi
shl edx, 8
inc eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
cmp eax, 3
jl 0x4228aa
mov dword [ebp - 8], esi
cmp ecx, dword [ebp - 0x10]
jae 0x4229a2
mov eax, edx
shl edx, 6
shr eax, 0x1a
and eax, 0x3f
mov al, byte [eax + 0x4082b0]
mov byte [ecx], al
inc ecx
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 4
jb 0x4228ce
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
inc edx
mov dword [ebp - 0x14], edx
cmp edx, eax
jb 0x4228a5
mov edx, dword [ebp - 0x1c]
inc edx
lea ebx, [ebx + eax*4]
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x20]
jbe 0x422893
mov eax, dword [ebp - 0xc]
lea edi, [eax + 1]
test eax, eax
jne 0x422924
mov edi, esi
test edi, edi
je 0x42299b
mov edx, esi
mov dword [ebp - 0x20], esi
mov eax, esi
cmp eax, dword [ebp - 0xc]
jae 0x422947
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x24]
jae 0x4229a9
movzx eax, byte [eax]
or edx, eax
inc dword [ebp - 4]
mov eax, dword [ebp - 0x20]
shl edx, 8
inc eax
mov dword [ebp - 0x20], eax
cmp eax, 3
jb 0x42292f
mov dword [ebp - 0x24], esi
test edi, edi
je 0x42297e
cmp ecx, dword [ebp - 0x10]
jae 0x4229a2
mov eax, edx
shl edx, 6
shr eax, 0x1a
and eax, 0x3f
mov al, byte [eax + 0x4082b0]
mov byte [ecx], al
inc ecx
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, edi
jb 0x42295a
push 4
pop edx
add ebx, edi
mov eax, esi
sub edx, edi
je 0x422999
mov edi, dword [ebp - 0x10]
cmp ecx, edi
jae 0x4229a2
mov byte [ecx], 0x3d
inc ecx
inc eax
cmp eax, edx
jb 0x42298c
add ebx, edx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
jmp 0x4229ae
mov esi, 0x8007007a
jmp 0x4229ae
mov esi, 0x80070057
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc