Function at 0x45c4a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 0x50]
cmp eax, 1
jb 0x45c6ec
cmp eax, 3
ja 0x45c6ec
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x45c6ec
cmp eax, 1
je 0x45c4e4
add eax, 0xfffffffe
cmp eax, 1
ja 0x45c50c
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x14], eax
jmp 0x45c50c
push ecx
call fcn.004a437c
add esp, 4
mov edi, eax
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x14], edi
jb 0x45c4fc
mov ecx, dword [ebx]
jmp 0x45c4fe
mov ecx, ebx
push ecx
push dword [ebx + 0x4c]
push edi
call dword [sym.imp.MSVCR120.dll_strcpy_s]
add esp, 0xc
push esi
mov esi, dword [ebx + 0x4c]
mov eax, 0xaaaaaaab
mul esi
cmp byte [ebx + 0x60], 0
mov dword [ebp - 0x1c], esi
je 0x45c54c
mov ecx, edx
mov eax, 0x2f684bdb
mul esi
mov eax, esi
shr ecx, 1
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
lea edi, [ecx*4 + 5]
add edi, eax
push edi
call fcn.004a437c
mov esi, eax
mov dword [ebp - 0x20], eax
jmp 0x45c560
shr edx, 1
lea edi, [edx*4 + 5]
push edi
call fcn.004a437c
mov esi, eax
mov dword [ebp - 0x20], esi
push edi
push 0
push esi
call sub.MSVCR120.dll_memset
mov edi, dword [ebp - 0x14]
xor eax, eax
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x1c], eax
jbe 0x45c697
mov dword [ebp - 8], 2
mov dword [ebp - 0x10], 1
mov edi, edi
mov cl, byte [edi + 1]
movzx edx, byte [edi]
mov eax, dword [ebx + 0x5c]
mov byte [ebp - 1], cl
mov cl, byte [edi + 2]
mov byte [ebp - 2], cl
mov ecx, edx
shr ecx, 2
and edx, 3
shl edx, 4
movzx eax, byte [ecx + eax]
movzx ecx, byte [ebp - 1]
mov byte [esi], al
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x24], ecx
shr ecx, 4
or ecx, edx
movzx eax, byte [ecx + eax]
mov byte [esi + 1], al
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x10], eax
jae 0x45c68e
cmp dword [ebp - 8], eax
jae 0x45c66b
movzx edx, byte [ebp - 2]
mov eax, dword [ebp - 0x24]
mov ecx, edx
add dword [ebp - 0x10], 2
and eax, 0xf
shl eax, 2
and edx, 0x3f
shr ecx, 6
or ecx, eax
mov eax, dword [ebx + 0x5c]
movzx eax, byte [ecx + eax]
mov ecx, dword [ebp - 8]
mov byte [esi + 2], al
add ecx, 2
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 8], ecx
movzx eax, byte [edx + eax]
mov edx, dword [ebp - 0x18]
mov byte [esi + 3], al
add edx, 4
mov eax, dword [ebp - 0xc]
add esi, 4
add eax, 2
mov dword [ebp - 0x18], edx
cmp byte [ebx + 0x60], 0
mov dword [ebp - 0xc], eax
je 0x45c652
mov eax, 0x38e38e39
mul edx
mov eax, dword [ebp - 0x18]
shr edx, 4
lea ecx, [edx + edx*8]
shl ecx, 3
sub eax, ecx
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jne 0x45c652
mov byte [esi], 0xa
inc esi
inc dword [ebp - 0x10]
inc eax
inc ecx
mov dword [ebp - 0xc], eax
add edi, 3
mov dword [ebp - 8], ecx
cmp eax, dword [ebp - 0x1c]
jb 0x45c590
jmp 0x45c697
movzx ecx, byte [ebp - 1]
movzx eax, byte [ebp - 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
mov eax, dword [ebx + 0x5c]
movzx eax, byte [ecx + eax]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
jmp 0x45c694
mov word [esi + 2], 0x3d3d
add esi, 4
mov byte [esi], 0
mov esi, dword [ebp - 0x20]
cmp byte [esi], 0
jne 0x45c6a6
xor ecx, ecx
jmp 0x45c6b9
mov ecx, esi
lea edx, [ecx + 1]
jmp 0x45c6b0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c6b0
sub ecx, edx
push ecx
push esi
lea ecx, [ebx + 0x18]
call fcn.0040f4f0
mov eax, dword [ebx + 0x28]
push esi
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov dword [ebx + 0x54], eax
call esi
add esp, 4
cmp dword [ebx + 0x50], 1
jne 0x45c6e3
push dword [ebp - 0x14]
call esi
add esp, 4
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret