Function at 0x40a1a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4435a9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x459054]
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 0x40a1e2
mov edx, dword [eax]
jmp 0x40a1e4
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 0x40a20d
mov eax, dword [edi]
jmp 0x40a20f
mov eax, edi
mov byte [eax], 0
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
test ecx, ecx
je 0x40a4e5
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 0x40a332
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 [0x45a0e8], 0x10
mov eax, 0x45a0d4
movzx ecx, byte [ebp + ebx - 0x18]
cmovae eax, dword [0x45a0d4]
mov dl, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov eax, ecx
not eax
mov byte [ebp - 0x19], dl
cmp eax, 1
jbe 0x40a364
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x40a364
cmp dword [edi + 0x14], esi
jae 0x40a2ed
push ecx
push esi
mov ecx, edi
call fcn.004078f0
mov dl, byte [ebp - 0x19]
test esi, esi
je 0x40a320
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x40a308
mov eax, dword [edi]
jmp 0x40a30a
test esi, esi
jne 0x40a2e0
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x40a301
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x40a320
mov eax, edi
mov byte [eax], 0
jmp 0x40a320
mov eax, edi
mov byte [eax + ecx], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x40a31a
mov eax, dword [edi]
jmp 0x40a31c
mov eax, edi
mov byte [eax + esi], 0
inc ebx
cmp ebx, 4
jl 0x40a291
mov ecx, dword [ebp - 0x24]
xor ebx, ebx
mov edx, dword [ebp - 0x28]
test ecx, ecx
jne 0x40a230
test ebx, ebx
je 0x40a4e5
mov eax, ebx
cmp ebx, 3
jge 0x40a373
cmp eax, 3
jae 0x40a36e
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 3
jl 0x40a34c
mov ah, byte [ebp - 0x12]
mov cl, byte [ebp - 0x13]
mov dl, byte [ebp - 0x14]
jmp 0x40a37c
push str.string_too_long
call fcn.00425f08
call fcn.00425040
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 0x40a464
nop word [eax + eax]
cmp dword [0x45a0e8], 0x10
mov eax, 0x45a0d4
movzx ecx, byte [ebp + edx - 0x18]
cmovae eax, dword [0x45a0d4]
mov al, byte [eax + ecx]
mov ecx, dword [edi + 0x10]
mov byte [ebp - 0xd], al
mov eax, ecx
not eax
cmp eax, 1
jbe 0x40a364
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x40a364
cmp dword [edi + 0x14], esi
jae 0x40a41c
push ecx
push esi
mov ecx, edi
call fcn.004078f0
mov edx, dword [ebp - 0x14]
test esi, esi
je 0x40a455
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x40a437
mov eax, dword [edi]
jmp 0x40a439
test esi, esi
jne 0x40a40f
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x40a430
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x40a455
mov eax, edi
mov byte [eax], 0
jmp 0x40a455
mov eax, edi
mov dl, byte [ebp - 0xd]
mov byte [ecx + eax], dl
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x40a44c
mov eax, dword [edi]
jmp 0x40a44e
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 0x40a3c0
cmp ebx, 3
jge 0x40a4e5
nop dword [eax]
mov ecx, dword [edi + 0x10]
inc ebx
mov eax, ecx
not eax
cmp eax, 1
jbe 0x40a364
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x40a364
cmp dword [edi + 0x14], esi
jae 0x40a4ac
push ecx
push esi
mov ecx, edi
call fcn.004078f0
test esi, esi
je 0x40a4e0
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x40a4c7
mov eax, dword [edi]
jmp 0x40a4c9
test esi, esi
jne 0x40a49f
mov dword [edi + 0x10], esi
cmp dword [edi + 0x14], 0x10
jb 0x40a4c0
mov eax, dword [edi]
mov byte [eax], 0
jmp 0x40a4e0
mov eax, edi
mov byte [eax], 0
jmp 0x40a4e0
mov eax, edi
mov byte [ecx + eax], 0x3d
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], esi
jb 0x40a4da
mov eax, dword [edi]
jmp 0x40a4dc
mov eax, edi
mov byte [eax + esi], 0
cmp ebx, 3
jl 0x40a470
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