Function at 0x4204d0
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 0x4204e0
sub eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4204fb
mov eax, 0x4595d0
mov esp, ebp
pop ebp
ret 8
push ebx
push esi
lea eax, [eax + eax*2 + 0x80]
push edi
push eax
call fcn.00438db9
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 0x42054f
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 4]
cmp ecx, edx
ja 0x42054f
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [esi + 0x18]
jne 0x42053e
lea eax, [esi + 0x10]
call fcn.00418800
mov eax, dword [esi + 0x14]
test eax, eax
je 0x420565
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + edi*4]
mov dword [eax], edx
jmp 0x420565
cmp eax, dword [esi + 0x18]
jne 0x42055c
lea eax, [esi + 0x10]
call fcn.00418800
mov eax, dword [esi + 0x14]
test eax, eax
je 0x420565
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 0x42063f
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 0x4205af
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4205b1
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 0x4205d3
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4205d5
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 0x4205fb
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4205fd
mov al, 0x3d
shr ecx, 0x10
and ecx, 0x3f
movsx esi, al
cmp ecx, 0x3f
ja 0x420613
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x420615
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 0x420595
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp edx, ecx
jge 0x4206f2
sub ecx, edx
mov esi, ecx
xor ecx, ecx
mov dword [ebp + 8], ecx
test esi, esi
jle 0x420668
mov edx, dword [ebp + 0xc]
push esi
push edx
lea eax, [ebp + 8]
push eax
call fcn.00438eb0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, ecx
shr eax, 2
and eax, 0x3f
cmp eax, 0x3f
ja 0x42067d
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x42067f
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 0x4206a0
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4206a2
mov al, 0x3d
mov byte [ebx + 1], al
cmp esi, 1
jle 0x4206cd
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 0x4206cd
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4206cf
mov al, 0x3d
mov byte [ebx + 2], al
cmp esi, 2
jle 0x4206ea
shr ecx, 0x10
and ecx, 0x3f
cmp ecx, 0x3f
ja 0x4206ea
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x4206ec
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