Function at 0x4081e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420da9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x42d058]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov dword [ebp - 0x2c], ebx
mov word [ebx], ax
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], 1
test eax, eax
je 0x408536
dec eax
mov dword [ebp + 8], eax
mov ax, word [esi]
add esi, 2
mov word [ebp + edx*2 - 0x18], ax
inc edx
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x24], esi
cmp edx, 3
jne 0x408364
mov ecx, dword [ebp - 0x16]
mov eax, edi
shr eax, 2
and eax, 0x3f
shr ecx, 4
mov word [ebp - 0x20], ax
and ecx, 0xf
mov eax, edi
and eax, 3
shl eax, 4
add ecx, eax
mov eax, dword [ebp - 0x16]
mov word [ebp - 0x1e], cx
and eax, 0xf
mov ecx, dword [ebp - 0x14]
shr ecx, 6
and ecx, 3
lea eax, [ecx + eax*4]
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x14]
and eax, 0x3f
xor edi, edi
mov word [ebp - 0x1a], ax
lea ebx, [ebx]
cmp dword [0x42e434], 8
mov ecx, 0x42e420
movzx eax, word [ebp + edi*2 - 0x20]
cmovae ecx, dword [0x42e420]
movzx edx, word [ecx + eax*2]
or eax, 0xffffffff
mov ecx, dword [ebx + 0x10]
sub eax, ecx
mov dword [ebp - 0x10], edx
cmp eax, 1
jbe 0x40844b
lea esi, [ecx + 1]
cmp esi, 0x7ffffffe
ja 0x40844b
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x408313
push ecx
push esi
mov ecx, ebx
call fcn.00402210
mov edx, dword [ebp - 0x10]
test esi, esi
je 0x40834c
cmp dword [ebx + 0x14], 8
mov ecx, dword [ebx + 0x10]
jb 0x408331
mov eax, dword [ebx]
jmp 0x408333
test esi, esi
jne 0x408306
mov dword [ebx + 0x10], esi
cmp eax, 8
jb 0x408328
mov eax, dword [ebx]
xor ecx, ecx
mov word [eax], cx
jmp 0x40834c
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
jmp 0x40834c
mov eax, ebx
mov word [eax + ecx*2], dx
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], esi
jb 0x408344
mov eax, dword [ebx]
jmp 0x408346
mov eax, ebx
xor ecx, ecx
mov word [eax + esi*2], cx
inc edi
cmp edi, 4
jl 0x4082b0
mov esi, dword [ebp - 0x24]
xor edx, edx
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
test eax, eax
jne 0x408240
test edx, edx
je 0x408536
cmp edx, 3
jge 0x40839d
mov ecx, 3
lea edi, [ebp - 0x18]
sub ecx, edx
lea edi, [edi + edx*2]
shr ecx, 1
mov eax, 0x2f002f
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x16]
mov eax, edi
shr eax, 2
and edi, 3
and eax, 0x3f
shl edi, 4
mov word [ebp - 0x20], ax
mov eax, esi
shr eax, 4
and esi, 0xf
and eax, 0xf
add eax, edi
xor edi, edi
mov word [ebp - 0x1e], ax
mov eax, ecx
shr eax, 6
and ecx, 0x3f
and eax, 3
mov word [ebp - 0x1a], cx
lea eax, [eax + esi*4]
mov word [ebp - 0x1c], ax
lea eax, [edx + 1]
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x40849b
lea esp, [esp]
cmp dword [0x42e434], 8
mov ecx, 0x42e420
movzx eax, word [ebp + edi*2 - 0x20]
cmovae ecx, dword [0x42e420]
movzx edx, word [ecx + eax*2]
or eax, 0xffffffff
mov ecx, dword [ebx + 0x10]
sub eax, ecx
mov dword [ebp - 0x24], edx
cmp eax, 1
jbe 0x40844b
lea esi, [ecx + 1]
cmp esi, 0x7ffffffe
ja 0x40844b
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x408455
push ecx
push esi
mov ecx, ebx
call fcn.00402210
mov edx, dword [ebp - 0x24]
test esi, esi
je 0x40848e
cmp dword [ebx + 0x14], 8
mov ecx, dword [ebx + 0x10]
jb 0x408473
mov eax, dword [ebx]
jmp 0x408475
push str.string_too_long
call fcn.0040d814
test esi, esi
jne 0x40843e
mov dword [ebx + 0x10], esi
cmp eax, 8
jb 0x40846a
mov eax, dword [ebx]
xor ecx, ecx
mov word [eax], cx
jmp 0x40848e
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
jmp 0x40848e
mov eax, ebx
mov word [eax + ecx*2], dx
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], esi
jb 0x408486
mov eax, dword [ebx]
jmp 0x408488
mov eax, ebx
xor ecx, ecx
mov word [eax + esi*2], cx
inc edi
cmp edi, dword [ebp - 0x14]
jl 0x4083f0
mov edx, dword [ebp - 0x10]
cmp edx, 3
jge 0x408536
mov edi, 0x3d
lea esp, [esp]
mov ecx, dword [ebx + 0x10]
or eax, 0xffffffff
inc edx
sub eax, ecx
mov dword [ebp - 0x10], edx
cmp eax, 1
jbe 0x40844b
lea esi, [ecx + 1]
cmp esi, 0x7ffffffe
ja 0x40844b
mov eax, dword [ebx + 0x14]
cmp eax, esi
jae 0x4084f4
push ecx
push esi
mov ecx, ebx
call fcn.00402210
mov edx, dword [ebp - 0x10]
test esi, esi
je 0x40852d
cmp dword [ebx + 0x14], 8
mov ecx, dword [ebx + 0x10]
jb 0x408512
mov eax, dword [ebx]
jmp 0x408514
test esi, esi
jne 0x4084e7
mov dword [ebx + 0x10], esi
cmp eax, 8
jb 0x408509
mov eax, dword [ebx]
xor ecx, ecx
mov word [eax], cx
jmp 0x40852d
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
jmp 0x40852d
mov eax, ebx
mov word [eax + ecx*2], di
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], esi
jb 0x408525
mov eax, dword [ebx]
jmp 0x408527
mov eax, ebx
xor ecx, ecx
mov word [eax + esi*2], cx
cmp edx, 3
jl 0x4084b0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret