Function at 0x420350
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420360
sub eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42037b
mov eax, 0x458408
mov esp, ebp
pop ebp
ret 8
push ebx
push esi
lea eax, [eax + eax*2 + 0x80]
push edi
push eax
call fcn.004375a9
mov esi, dword [ebp + 8]
mov ebx, eax
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 4]
add esp, 4
mov dword [ebp - 4], ebx
cmp ecx, eax
jae 0x4203cf
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 4]
cmp ecx, edx
ja 0x4203cf
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 0x18]
jne 0x4203be
lea eax, [esi + 0x10]
call fcn.00429ec0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4203e5
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + edi*4]
mov dword [eax], edx
jmp 0x4203e5
cmp eax, dword [esi + 0x18]
jne 0x4203dc
lea eax, [esi + 0x10]
call fcn.00429ec0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4203e5
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add dword [esi + 0x14], 4
mov dword [ebp + 0xc], eax
lea eax, [ecx - 3]
xor edx, edx
test eax, eax
jle 0x4204bf
lea ecx, [eax - 1]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
mov dword [ebp + 8], edx
lea edx, [edx + edx*2]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, ecx
shr eax, 2
and eax, 0x3f
cmp eax, 0x3f
ja 0x42042f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x420431
mov al, 0x3d
movsx edx, al
mov eax, ecx
shr eax, 0xc
mov esi, ecx
and esi, 3
and eax, 0xf
shl esi, 4
or eax, esi
cmp eax, 0x3f
ja 0x420453
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x420455
mov al, 0x3d
movsx edi, al
mov eax, ecx
shr eax, 8
and eax, 0xf
add eax, eax
mov esi, ecx
shr esi, 0x16
add eax, eax
and esi, 3
or eax, esi
cmp eax, 0x3f
ja 0x42047b
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x42047d
mov al, 0x3d
shr ecx, 0x10
and ecx, 0x3f
movsx esi, al
cmp ecx, 0x3f
ja 0x420493
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x420495
mov al, 0x3d
add dword [ebp + 0xc], 3
movsx ecx, al
shl ecx, 8
or ecx, esi
shl ecx, 8
or ecx, edi
shl ecx, 8
or ecx, edx
mov dword [ebx], ecx
add ebx, 4
dec dword [ebp + 8]
jne 0x420415
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp edx, ecx
jge 0x420572
sub ecx, edx
mov esi, ecx
xor ecx, ecx
mov dword [ebp + 8], ecx
test esi, esi
jle 0x4204e8
mov edx, dword [ebp + 0xc]
push esi
push edx
lea eax, [ebp + 8]
push eax
call fcn.004376a0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, ecx
shr eax, 2
and eax, 0x3f
cmp eax, 0x3f
ja 0x4204fd
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4204ff
mov al, 0x3d
mov byte [ebx], al
mov eax, ecx
shr eax, 0xc
mov edx, ecx
and edx, 3
and eax, 0xf
shl edx, 4
or eax, edx
cmp eax, 0x3f
ja 0x420520
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x420522
mov al, 0x3d
mov byte [ebx + 1], al
cmp esi, 1
jle 0x42054d
mov eax, ecx
shr eax, 8
and eax, 0xf
add eax, eax
mov edx, ecx
shr edx, 0x16
add eax, eax
and edx, 3
or eax, edx
cmp eax, 0x3f
ja 0x42054d
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x42054f
mov al, 0x3d
mov byte [ebx + 2], al
cmp esi, 2
jle 0x42056a
shr ecx, 0x10
and ecx, 0x3f
cmp ecx, 0x3f
ja 0x42056a
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x42056c
mov al, 0x3d
mov byte [ebx + 3], al
add ebx, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
mov byte [ebx], 0
pop ebx
mov esp, ebp
pop ebp
ret 8