Function at 0x406220
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438bc9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x44c074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], edi
cmp dword [eax + 0x14], 0x10
jb 0x406262
mov edx, dword [eax]
jmp 0x406264
mov edx, eax
mov ecx, dword [eax + 0x10]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x40628d
mov eax, dword [edi]
jmp 0x40628f
mov eax, edi
mov byte [eax], 0
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
test ecx, ecx
je 0x406565
nop word [eax + eax]
mov al, byte [edx]
dec ecx
mov byte [ebp + ebx - 0x14], al
inc edx
mov al, byte [ebp - 0x12]
inc ebx
mov ah, byte [ebp - 0x13]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x14]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov byte [ebp - 0xd], ah
mov byte [ebp - 0xe], al
cmp ebx, 3
jne 0x4063b2
mov cl, byte [ebp - 0xe]
mov dl, byte [ebp - 0xf]
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ah
shl cl, 4
shr al, 4
add cl, al
mov al, dl
mov byte [ebp - 0x17], cl
mov cl, ah
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, dl
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
xor ebx, ebx
cmp dword [0x44cf90], 0x10
mov eax, 0x44cf7c
movzx ecx, byte [ebp + ebx - 0x18]
cmovae eax, dword [0x44cf7c]
mov dl, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov eax, ecx
not eax
mov byte [ebp - 0x19], dl
cmp eax, 1
jbe 0x4063e4
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4063e4
cmp dword [edi + 0x14], esi
jae 0x40636d
push ecx
push esi
mov ecx, edi
call fcn.00402e37
mov dl, byte [ebp - 0x19]
test esi, esi
je 0x4063a0
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x406388
mov eax, dword [edi]
jmp 0x40638a
test esi, esi
jne 0x406360
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x406381
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x4063a0
mov eax, edi
mov byte [eax], 0
jmp 0x4063a0
mov eax, edi
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x40639a
mov eax, dword [edi]
jmp 0x40639c
mov eax, edi
mov byte [eax + esi], 0
inc ebx
cmp ebx, 4
jl 0x406311
mov ecx, dword [ebp - 0x24]
xor ebx, ebx
mov edx, dword [ebp - 0x28]
test ecx, ecx
jne 0x4062b0
test ebx, ebx
je 0x406565
mov eax, ebx
cmp ebx, 3
jge 0x4063f3
cmp eax, 3
jae 0x4063ee
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x4063cc
mov ah, byte [ebp - 0x12]
mov cl, byte [ebp - 0x13]
mov dl, byte [ebp - 0x14]
jmp 0x4063fc
push str.string_too_long
call fcn.00419b31
call fcn.0041ade8
mov cl, byte [ebp - 0xd]
mov dl, byte [ebp - 0xe]
mov ah, byte [ebp - 0xf]
mov al, dl
and dl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, cl
shr al, 4
and cl, 0xf
shl dl, 4
add dl, al
shl cl, 2
mov al, ah
mov byte [ebp - 0x17], dl
shr al, 6
and ah, 0x3f
add cl, al
mov byte [ebp - 0x15], ah
xor edx, edx
mov byte [ebp - 0x16], cl
lea eax, [ebx + 1]
mov dword [ebp - 0x14], edx
test eax, eax
jle 0x4064e4
nop word [eax + eax]
cmp dword [0x44cf90], 0x10
mov eax, 0x44cf7c
movzx ecx, byte [ebp + edx - 0x18]
cmovae eax, dword [0x44cf7c]
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp - 0xd], al
mov eax, ecx
not eax
cmp eax, 1
jbe 0x4063e4
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4063e4
cmp dword [edi + 0x14], esi
jae 0x40649c
push ecx
push esi
mov ecx, edi
call fcn.00402e37
mov edx, dword [ebp - 0x14]
test esi, esi
je 0x4064d5
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x4064b7
mov eax, dword [edi]
jmp 0x4064b9
test esi, esi
jne 0x40648f
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x4064b0
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x4064d5
mov eax, edi
mov byte [eax], 0
jmp 0x4064d5
mov eax, edi
mov dl, byte [ebp - 0xd]
mov byte [ecx + eax], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x4064cc
mov eax, dword [edi]
jmp 0x4064ce
mov eax, edi
mov edx, dword [ebp - 0x14]
mov byte [esi + eax], 0
inc edx
lea eax, [ebx + 1]
mov dword [ebp - 0x14], edx
cmp edx, eax
jl 0x406440
cmp ebx, 3
jge 0x406565
nop dword [eax]
mov ecx, dword [edi + 0x10]
inc ebx
mov eax, ecx
not eax
cmp eax, 1
jbe 0x4063e4
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4063e4
cmp dword [edi + 0x14], esi
jae 0x40652c
push ecx
push esi
mov ecx, edi
call fcn.00402e37
test esi, esi
je 0x406560
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x406547
mov eax, dword [edi]
jmp 0x406549
test esi, esi
jne 0x40651f
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x406540
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x406560
mov eax, edi
mov byte [eax], 0
jmp 0x406560
mov eax, edi
mov byte [ecx + eax], 0x3d
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x40655a
mov eax, dword [edi]
jmp 0x40655c
mov eax, edi
mov byte [eax + esi], 0
cmp ebx, 3
jl 0x4064f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret