Function at 0x4f5640
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ba99
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5ed80c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx + edx*2]
mov ebx, edi
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ecx
sub ebx, eax
mov word [esi], dx
mov dword [ebp - 4], ecx
mov eax, edi
mov dword [ebp + 0x10], eax
fild dword [ebp + 0x10]
mov dword [ebp - 0x10], 1
test eax, eax
jns 0x4f56b1
fadd dword [0x5bdb78]
fmul qword [0x5bdb70]
mov ecx, dword [esi + 0x10]
fnstcw word [ebp + 0x12]
movzx eax, word [ebp + 0x12]
or eax, 0xc00
mov dword [ebp - 0x14], eax
fldcw word [ebp - 0x14]
fistp qword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
add eax, 4
fldcw word [ebp + 0x12]
mov dword [ebp + 0x10], ecx
cmp ecx, eax
ja 0x4f570a
cmp dword [esi + 0x14], eax
je 0x4f570a
push 1
push eax
mov ecx, esi
call fcn.00401950
test al, al
je 0x4f570a
cmp dword [esi + 0x14], 8
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x10], ecx
jb 0x4f5702
mov eax, dword [esi]
jmp 0x4f5704
mov eax, esi
xor edx, edx
mov word [eax + ecx*2], dx
sub edi, ebx
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
mov edi, dword [ebp + 0xc]
je 0x4f57ad
mov dword [ebp + 0x10], edx
movzx eax, byte [edi]
mov ecx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr eax, 2
movzx eax, word [ecx + eax*2]
push eax
push 1
mov ecx, esi
call fcn.00401a10
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
mov ecx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and edx, 3
shr eax, 4
shl edx, 4
add edx, eax
movzx eax, word [ecx + edx*2]
push eax
push 1
mov ecx, esi
call fcn.00401a10
movzx edx, byte [edi + 1]
movzx eax, byte [edi + 2]
and edx, 0xf
shr eax, 6
lea ecx, [eax + edx*4]
mov edx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx eax, word [edx + ecx*2]
push eax
push 1
mov ecx, esi
call fcn.00401a10
movzx eax, byte [edi + 2]
mov ecx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 0x3f
movzx eax, word [ecx + eax*2]
push eax
push 1
mov ecx, esi
call fcn.00401a10
add edi, 3
dec dword [ebp + 0x10]
jne 0x4f5721
test ebx, ebx
je 0x4f5877
push ebx
lea edx, [ebp + 0x10]
push edi
push edx
call fcn.0055ae50
add esp, 0xc
cmp ebx, 3
jae 0x4f57df
mov ecx, 3
sub ecx, ebx
push ecx
lea eax, [ebp + ebx + 0x10]
push 0
push eax
call fcn.0055bc50
add esp, 0xc
movzx edi, byte [ebp + 0x10]
mov eax, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, edi
shr edx, 2
movzx eax, word [eax + edx*2]
push eax
push 1
mov ecx, esi
call fcn.00401a10
movzx eax, byte [ebp + 0x11]
mov ecx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dword [ebp - 0x14], eax
shr eax, 4
and edi, 3
shl edi, 4
add eax, edi
movzx eax, word [ecx + eax*2]
push eax
push 1
mov ecx, esi
call fcn.00401a10
cmp ebx, 2
jne 0x4f5869
movzx edx, byte [ebp + 0x12]
mov eax, dword [ebp - 0x14]
mov ecx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 0xf
shr edx, 6
lea eax, [edx + eax*4]
movzx eax, word [ecx + eax*2]
push eax
push 1
mov ecx, esi
call fcn.00401a10
push 0x3d
push 1
mov ecx, esi
call fcn.00401a10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0x5bdb64
mov ecx, esi
call fcn.00405220
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret