Function at 0x473988
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
push ebp
push 0x473c53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040504c
mov eax, esi
call fcn.00405338
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, 3
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov ecx, 3
cdq
idiv ecx
mov dword [ebp - 0x1c], edx
mov ebx, 1
xor edi, edi
xor eax, eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x10], 0
jg 0x473a1e
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.0040a794
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x473c6c
call fcn.00405384
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x40907c]
call fcn.0040efb0
call fcn.004049c0
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x1c], 2
jl 0x473a33
add dword [ebp - 0x14], 2
jmp 0x473a3d
cmp dword [ebp - 0x1c], 1
jl 0x473a3d
add dword [ebp - 0x14], 3
cmp byte [ebp - 1], 1
jne 0x473a56
mov eax, dword [ebp - 0x14]
sub eax, 2
mov ecx, 0x4c
cdq
idiv ecx
add eax, eax
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
inc eax
call fcn.0040b98c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x473c31
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov byte [eax + edx], 0
cmp dword [ebp - 0x18], 0
jle 0x473b57
xor eax, eax
mov al, byte [esi + ebx - 1]
shr eax, 2
mov edx, dword [0x5e40a4]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0xc]
mov byte [edx + edi], al
mov al, byte [esi + ebx - 1]
and al, 3
and eax, 0xff
shl eax, 4
xor edx, edx
mov dl, byte [esi + ebx]
shr edx, 4
or eax, edx
mov edx, dword [0x5e40a4]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0xc]
mov byte [edx + edi + 1], al
mov al, byte [esi + ebx]
and al, 0xf
and eax, 0xff
shl eax, 2
xor edx, edx
mov dl, byte [esi + ebx + 1]
shr edx, 6
or eax, edx
mov edx, dword [0x5e40a4]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0xc]
mov byte [edx + edi + 2], al
mov al, byte [esi + ebx + 1]
and al, 0x3f
and eax, 0xff
mov edx, dword [0x5e40a4]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0xc]
mov byte [edx + edi + 3], al
add ebx, 3
add edi, 4
add dword [ebp - 0x20], 4
dec dword [ebp - 0x18]
cmp byte [ebp - 1], 1
jne 0x473b4d
mov eax, dword [ebp - 0x20]
mov ecx, 0x4c
cdq
idiv ecx
test edx, edx
jne 0x473b4d
cmp dword [ebp - 0x18], 0
jg 0x473b3b
cmp dword [ebp - 0x1c], 0
jle 0x473b4d
mov eax, dword [ebp - 0xc]
mov byte [eax + edi], 0xd
mov eax, dword [ebp - 0xc]
mov byte [eax + edi + 1], 0xa
add edi, 2
cmp dword [ebp - 0x18], 0
jg 0x473a8a
cmp dword [ebp - 0x1c], 2
jl 0x473bc4
xor eax, eax
mov al, byte [esi + ebx - 1]
shr eax, 2
mov edx, dword [0x5e40a4]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0xc]
mov byte [edx + edi], al
mov al, byte [esi + ebx - 1]
and al, 3
and eax, 0xff
shl eax, 4
xor edx, edx
mov dl, byte [esi + ebx]
shr edx, 4
or eax, edx
mov edx, dword [0x5e40a4]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0xc]
mov byte [edx + edi + 1], al
mov al, byte [esi + ebx]
and al, 0xf
and eax, 0xff
shl eax, 2
mov edx, dword [0x5e40a4]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0xc]
mov byte [edx + edi + 2], al
mov eax, dword [ebp - 0xc]
mov byte [eax + edi + 3], 0x3d
jmp 0x473c10
cmp dword [ebp - 0x1c], 1
jl 0x473c10
xor eax, eax
mov al, byte [esi + ebx - 1]
shr eax, 2
mov edx, dword [0x5e40a4]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0xc]
mov byte [edx + edi], al
mov al, byte [esi + ebx - 1]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [0x5e40a4]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0xc]
mov byte [edx + edi + 1], al
mov eax, dword [ebp - 0xc]
mov byte [eax + edi + 2], 0x3d
mov eax, dword [ebp - 0xc]
mov byte [eax + edi + 3], 0x3d
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0040b978
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473c38
mov eax, dword [ebp - 0xc]
call fcn.0040b9e8
ret