Function at 0x40a3b0
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
sub esp, 0x120
test ecx, ecx
push ebx
push ebp
push esi
push edi
jne 0x40a3d9
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x13c], ecx
mov esi, dword [esp + 0x134]
mov dword [esp + 0x14], edx
lea eax, [ecx - 3]
mov ebx, esi
xor edx, edx
mov dword [esp + 0x18], ebx
test eax, eax
jle 0x40a52e
lea ecx, [eax + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
mov dword [esp + 0x10], edx
lea edx, [edx + edx*2]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x14]
mov ecx, 0x10
mov esi, 0x47e1ac
lea edi, [esp + 0xec]
mov eax, dword [eax]
rep movsd dword es:[edi], dword [esi]
mov ebx, eax
shr ebx, 2
and ebx, 0x3f
movsb byte es:[edi], byte [esi]
jl 0x40a440
cmp ebx, 0x40
jge 0x40a440
mov bl, byte [esp + ebx + 0xec]
jmp 0x40a442
mov bl, 0x3d
movsx ebp, bl
mov ebx, eax
mov ecx, eax
shr ebx, 0xc
and ecx, 3
and ebx, 0xf
shl ecx, 4
or ebx, ecx
mov ecx, 0x10
mov esi, 0x47e1ac
lea edi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x40a475
cmp ebx, 0x40
jge 0x40a475
mov bl, byte [esp + ebx + 0x64]
jmp 0x40a477
mov bl, 0x3d
movsx edx, bl
mov ebx, eax
mov ecx, eax
shr ebx, 8
and ebx, 0xf
mov esi, 0x47e1ac
shr ecx, 0x16
shl ebx, 2
and ecx, 3
lea edi, [esp + 0xa8]
or ebx, ecx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x40a4b3
cmp ebx, 0x40
jge 0x40a4b3
mov bl, byte [esp + ebx + 0xa8]
jmp 0x40a4b5
mov bl, 0x3d
mov ecx, 0x10
mov esi, 0x47e1ac
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
shr eax, 0x10
and eax, 0x3f
movsx ebx, bl
movsb byte es:[edi], byte [esi]
jl 0x40a4dc
cmp eax, 0x40
jge 0x40a4dc
mov al, byte [esp + eax + 0x20]
jmp 0x40a4de
mov al, 0x3d
movsx ecx, al
shl ecx, 8
mov eax, dword [esp + 0x18]
or ecx, ebx
shl ecx, 8
or ecx, edx
add eax, 4
shl ecx, 8
or ecx, ebp
mov dword [esp + 0x18], eax
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ecx, 3
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jne 0x40a40e
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x13c]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x134]
cmp edx, ecx
jge 0x40a632
sub ecx, edx
xor eax, eax
mov ebp, ecx
mov dword [esp + 0x10], eax
test ebp, ebp
jle 0x40a55e
mov esi, dword [esp + 0x14]
mov edx, ecx
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov ecx, 0x10
mov esi, 0x47e1ac
lea edi, [esp + 0x20]
mov edx, eax
rep movsd dword es:[edi], dword [esi]
shr edx, 2
and edx, 0x3f
movsb byte es:[edi], byte [esi]
jl 0x40a584
cmp edx, 0x40
jge 0x40a584
mov dl, byte [esp + edx + 0x20]
jmp 0x40a586
mov dl, 0x3d
mov byte [ebx], dl
mov edx, eax
mov ecx, eax
mov esi, 0x47e1ac
shr edx, 0xc
and ecx, 3
and edx, 0xf
shl ecx, 4
or edx, ecx
mov ecx, 0x10
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x40a5b8
cmp edx, 0x40
jge 0x40a5b8
mov dl, byte [esp + edx + 0x20]
jmp 0x40a5ba
mov dl, 0x3d
cmp ebp, 1
mov byte [ebx + 1], dl
jle 0x40a5f5
mov edx, eax
mov ecx, eax
shr edx, 8
and edx, 0xf
mov esi, 0x47e1ac
shr ecx, 0x16
shl edx, 2
and ecx, 3
lea edi, [esp + 0x20]
or edx, ecx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jl 0x40a5f5
cmp edx, 0x40
jge 0x40a5f5
mov dl, byte [esp + edx + 0x20]
jmp 0x40a5f7
mov dl, 0x3d
cmp ebp, 2
mov byte [ebx + 2], dl
jle 0x40a623
mov ecx, 0x10
mov esi, 0x47e1ac
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
shr eax, 0x10
and eax, 0x3f
movsb byte es:[edi], byte [esi]
jl 0x40a623
cmp eax, 0x40
jge 0x40a623
mov al, byte [esp + eax + 0x20]
jmp 0x40a625
mov al, 0x3d
mov esi, dword [esp + 0x134]
mov byte [ebx + 3], al
add ebx, 4
push 0x47e1a8
push esi
mov byte [ebx], 0
call fcn.00441f40
add esp, 8
test eax, eax
jne 0x40a66f
push 0x47e1a4
push esi
call fcn.00441f40
add esp, 8
test eax, eax
jne 0x40a66f
push 0x47e1a0
push esi
call fcn.00441f40
add esp, 8
test eax, eax
je 0x40a711
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xc7
push ecx
call fcn.00460f0e
mov edx, eax
add esp, 4
mov dword [edx], 0
mov cl, byte [esi]
test cl, cl
je 0x40a6da
mov cl, byte [esi]
cmp cl, 0x2b
jne 0x40a6ab
mov byte [eax], 0x25
inc eax
mov byte [eax], 0x32
inc eax
mov byte [eax], 0x62
jmp 0x40a6d1
cmp cl, 0x3d
jne 0x40a6bd
mov byte [eax], 0x25
inc eax
mov byte [eax], 0x33
inc eax
mov byte [eax], 0x64
jmp 0x40a6d1
cmp cl, 0x2f
jne 0x40a6cf
mov byte [eax], 0x25
inc eax
mov byte [eax], 0x32
inc eax
mov byte [eax], 0x66
jmp 0x40a6d1
mov byte [eax], cl
mov cl, byte [esi + 1]
inc eax
inc esi
test cl, cl
jne 0x40a697
mov byte [eax], 0
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x138]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00460f37
mov esi, dword [esp + 0x138]
add esp, 4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x120
ret