Function at 0x4057fc
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x405a28
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00402ffc
mov eax, esi
call fcn.00403174
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, 3
cdq
idiv ecx
test edx, edx
jne 0x405853
mov eax, dword [ebp - 8]
mov ecx, 3
cdq
idiv ecx
jmp 0x40585f
mov eax, dword [ebp - 8]
mov ecx, 3
cdq
idiv ecx
inc eax
dec eax
test eax, eax
jl 0x405a0d
inc eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea edx, [ebx + ebx*2]
mov eax, edx
add eax, 3
cmp eax, dword [ebp - 8]
jg 0x40590e
mov eax, edx
inc eax
movzx eax, byte [esi + eax - 1]
shr eax, 2
mov ecx, dword [0x40a0e4]
mov al, byte [ecx + eax]
mov byte [ebp - 9], al
lea eax, [ebx + ebx*2]
inc eax
mov al, byte [esi + eax - 1]
shl eax, 4
and al, 0x30
add edx, 2
movzx edx, byte [esi + edx - 1]
shr edx, 4
or al, dl
and eax, 0xff
mov edx, dword [0x40a0e4]
mov al, byte [edx + eax]
mov byte [ebp - 0xa], al
lea eax, [ebx + ebx*2]
add eax, 2
mov al, byte [esi + eax - 1]
shl eax, 2
and al, 0x3c
lea edx, [ebx + ebx*2]
add edx, 3
mov dl, byte [esi + edx - 1]
xor ecx, ecx
mov cl, dl
shr ecx, 6
or al, cl
and eax, 0xff
mov ecx, dword [0x40a0e4]
mov al, byte [ecx + eax]
mov byte [ebp - 0xb], al
mov eax, edx
and al, 0x3f
and eax, 0xff
mov edx, dword [0x40a0e4]
mov al, byte [edx + eax]
mov byte [ebp - 0xc], al
jmp 0x4059b9
mov eax, edx
add eax, 2
cmp eax, dword [ebp - 8]
jg 0x40597d
inc edx
xor eax, eax
mov al, byte [esi + edx - 1]
shr eax, 2
mov edx, dword [0x40a0e4]
mov al, byte [edx + eax]
mov byte [ebp - 9], al
lea eax, [ebx + ebx*2]
inc eax
mov al, byte [esi + eax - 1]
shl eax, 4
and al, 0x30
lea edx, [ebx + ebx*2]
add edx, 2
mov dl, byte [esi + edx - 1]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
and eax, 0xff
mov ecx, dword [0x40a0e4]
mov al, byte [ecx + eax]
mov byte [ebp - 0xa], al
mov eax, edx
shl eax, 2
and al, 0x3c
and eax, 0xff
mov edx, dword [0x40a0e4]
mov al, byte [edx + eax]
mov byte [ebp - 0xb], al
mov byte [ebp - 0xc], 0x3d
jmp 0x4059b9
inc edx
xor eax, eax
mov al, byte [esi + edx - 1]
shr eax, 2
mov edx, dword [0x40a0e4]
mov al, byte [edx + eax]
mov byte [ebp - 9], al
lea eax, [ebx + ebx*2]
inc eax
mov al, byte [esi + eax - 1]
shl eax, 4
and al, 0x30
and eax, 0xff
mov edx, dword [0x40a0e4]
mov al, byte [edx + eax]
mov byte [ebp - 0xa], al
mov byte [ebp - 0xb], 0x3d
mov byte [ebp - 0xc], 0x3d
mov eax, dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0x14]
mov dl, byte [ebp - 9]
call fcn.0040311c
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
mov dl, byte [ebp - 0xa]
call fcn.0040311c
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
mov dl, byte [ebp - 0xb]
call fcn.0040311c
push dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
mov dl, byte [ebp - 0xc]
call fcn.0040311c
push dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00403234
inc ebx
dec dword [ebp - 0x10]
jne 0x40586e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a2f
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00403020
ret