Function at 0x40a320
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b339
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x43a790]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0
call fcn.00405510
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
test eax, eax
je 0x40a5c2
lea ecx, [ecx]
dec eax
mov dword [ebp + 8], eax
mov ax, word [esi]
add esi, 2
mov word [ebp + edi*2 - 0x20], ax
inc edi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
cmp edi, 3
jne 0x40a468
mov ecx, dword [ebp - 0x1e]
mov eax, edx
shr eax, 2
and eax, 0x3f
shr ecx, 4
mov word [ebp - 0x28], ax
and ecx, 0xf
mov eax, edx
and eax, 3
shl eax, 4
add ecx, eax
mov eax, dword [ebp - 0x1e]
mov word [ebp - 0x26], cx
and eax, 0xf
mov ecx, dword [ebp - 0x1c]
shr ecx, 6
and ecx, 3
lea eax, [ecx + eax*4]
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0x1c]
and eax, 0x3f
xor esi, esi
mov word [ebp - 0x22], ax
lea ebx, [ebx]
mov ecx, 0x43cd0c
call fcn.004056d0
movzx ecx, word [ebp + esi*2 - 0x28]
movzx edi, word [eax + ecx*2]
lea eax, [eax + ecx*2]
mov ecx, dword [ebx + 0x10]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x40a5d6
lea eax, [ecx + 1]
mov ecx, ebx
push 0
push eax
mov dword [ebp - 0x18], eax
call fcn.00405b50
test al, al
je 0x40a454
mov eax, edi
mov ecx, ebx
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004056d0
lea eax, [eax + edi*2]
push eax
call fcn.00405c50
add esp, 8
mov ecx, ebx
push dword [ebp - 0x18]
call fcn.00405c70
inc esi
cmp esi, 4
jl 0x40a3f0
mov esi, dword [ebp - 0x10]
xor edi, edi
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40a380
test edi, edi
je 0x40a5c2
cmp edi, 3
jge 0x40a4a4
mov ecx, 3
lea edx, [ebp - 0x20]
sub ecx, edi
mov eax, 0x2f002f
lea edi, [edx + edi*2]
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1e]
mov eax, edx
shr eax, 2
and edx, 3
and eax, 0x3f
shl edx, 4
mov word [ebp - 0x28], ax
mov eax, esi
shr eax, 4
and esi, 0xf
and eax, 0xf
add eax, edx
mov word [ebp - 0x26], ax
mov eax, ecx
shr eax, 6
and ecx, 0x3f
and eax, 3
mov word [ebp - 0x22], cx
lea eax, [eax + esi*4]
xor esi, esi
mov word [ebp - 0x24], ax
lea eax, [edi + 1]
mov dword [ebp - 0x14], esi
test eax, eax
jle 0x40a568
lea esp, [esp]
mov ecx, 0x43cd0c
call fcn.004056d0
movzx ecx, word [ebp + esi*2 - 0x28]
lea eax, [eax + ecx*2]
mov ecx, dword [ebx + 0x10]
movzx eax, word [eax]
mov dword [ebp - 0x10], eax
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x40a5d6
lea eax, [ecx + 1]
mov ecx, ebx
push 0
push eax
mov dword [ebp - 0x18], eax
call fcn.00405b50
test al, al
je 0x40a55d
mov eax, dword [ebp - 0x10]
mov ecx, ebx
mov esi, dword [ebx + 0x10]
movzx eax, ax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004056d0
lea eax, [eax + esi*2]
push eax
call fcn.00405c50
add esp, 8
mov ecx, ebx
push dword [ebp - 0x18]
call fcn.00405c70
mov esi, dword [ebp - 0x14]
inc esi
lea eax, [edi + 1]
mov dword [ebp - 0x14], esi
cmp esi, eax
jl 0x40a4f0
cmp edi, 3
jge 0x40a5c2
lea ecx, [ecx]
mov ecx, dword [ebx + 0x10]
or eax, 0xffffffff
sub eax, ecx
inc edi
cmp eax, 1
jbe 0x40a5d6
lea eax, [ecx + 1]
mov ecx, ebx
push 0
push eax
mov dword [ebp - 0x18], eax
call fcn.00405b50
test al, al
je 0x40a5bd
mov esi, dword [ebx + 0x10]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
mov dword [ebp - 0x10], 0x3d
call fcn.004056d0
lea eax, [eax + esi*2]
push eax
call fcn.00405c50
add esp, 8
mov ecx, ebx
push dword [ebp - 0x18]
call fcn.00405c70
cmp edi, 3
jl 0x40a570
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
mov ecx, ebx
call fcn.00404550
int3