Function at 0x4212e6
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.0041111c
test al, al
je 0x421315
pop ecx
push ebx
pop eax
push esp
push edx
push esp
pop eax
pop esp
pop ebp
push esi
pop edi
push eax
pop edi
push eax
pop esi
push ebp
push ebx
push eax
pop esi
push edx
pop ebx
pop ecx
push ebx
push esi
pop ebx
pop edx
push edx
push ebp
push eax
push ebx
push esp
call fcn.004110d7
test al, al
je 0x42133c
pop eax
push edi
pop ebx
push esp
pop edi
push esp
pop ebp
push ecx
pop ecx
push edi
push ecx
pop edi
push eax
pop esp
push edx
push ecx
pop esi
push eax
pop ecx
push ebx
pop edi
push ebp
push ecx
push ecx
push eax
pop esp
pop esp
pop esp
push eax
push ebx
call fcn.00411680
test al, al
je 0x421360
push ebp
pop ebx
push esi
pop edx
pop eax
push esp
push edx
pop edx
push ebp
push eax
pop ecx
push edi
pop esp
pop edx
pop esp
pop edi
push ebx
pop edi
pop edx
pop ebx
push ebx
pop eax
push ebx
push edx
push edi
push esp
push edx
xor ecx, ecx
xor edx, edx
xor esi, esi
cmp dword [ebp + 0xc], ecx
jle 0x4214a3
mov edi, dword [ebp + 8]
mov al, byte [ecx + edi]
cmp al, 0x3d
jne 0x42137f
inc esi
cmp esi, 2
jg 0x4213c0
cmp al, 0x7f
ja 0x4213c0
movzx eax, al
mov al, byte [eax + 0x59e5a8]
cmp al, 0x7f
je 0x4213c0
cmp al, 0x40
jae 0x421398
test esi, esi
jne 0x4213c0
inc edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp + 0xc]
jl 0x421372
test edx, edx
je 0x4214a3
mov ecx, dword [ebp + 0x14]
imul eax, edx, 6
add eax, 7
sar eax, 3
cmp dword [ecx], eax
jge 0x4213c8
mov dword [ecx], eax
push 0xfffffffffffffff0
jmp 0x4213c2
push 0xffffffffffffffee
pop eax
jmp 0x4214a5
call fcn.00411863
test al, al
je 0x4213e6
pop eax
push ebx
pop ecx
push ebx
pop ebp
push edx
pop ebp
pop edx
pop edi
pop eax
pop esp
push edi
push ecx
push edx
push ebx
push eax
push esp
pop esi
pop ecx
push edx
push esp
call fcn.0041111c
test al, al
je 0x421401
pop edi
push ebp
push edx
pop esp
push esp
pop esi
pop ebx
pop ebp
pop eax
pop ebx
pop esp
pop edi
pop edx
pop edx
pop ebx
pop ebx
push ebx
push ebp
call fcn.004118a8
test al, al
je 0x421428
pop esi
push edi
pop edi
pop edi
pop ebx
push eax
push ebx
pop edi
push edi
push esi
push eax
pop ebx
push ebp
push ecx
push ebp
push ebp
push ecx
pop ecx
pop edx
pop ebp
pop eax
pop eax
pop edx
push edi
push ebx
push eax
push edx
push ecx
pop esp
push edi
mov esi, dword [ebp - 4]
xor eax, eax
mov edx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp + 0xc], eax
push 3
pop edi
test esi, esi
jle 0x42149b
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov cl, byte [eax + 0x59e5a8]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub edi, eax
movzx eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 0x3f
or ebx, eax
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, 4
jne 0x42148f
xor eax, eax
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x42147a
mov eax, ebx
shr eax, 0x10
mov byte [edx], al
inc edx
cmp edi, 1
jle 0x421487
mov eax, ebx
shr eax, 8
mov byte [edx], al
inc edx
cmp edi, 2
jle 0x42148f
mov byte [edx], bl
inc edx
mov eax, dword [ebp + 8]
dec esi
inc eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x42143f
mov eax, dword [ebp + 0x14]
sub edx, dword [ebp + 0x10]
mov dword [eax], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret