Function at 0x46b360
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x4c48c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x508e4c]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
mov dword [esp + 0x30], eax
mov al, byte [0x50d44c]
push edi
mov edi, dword [esp + 0x48]
xor esi, esi
test al, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
jne 0x46b3e2
or dword [0x50d44c], 1
push 0x40
push 0x4d7520
mov ecx, 0x50d430
mov dword [esp + 0x48], esi
mov dword [0x50d448], 0xf
mov dword [0x50d444], esi
mov byte [0x50d434], 0
call fcn.004016c0
push 0x4c4ea0
call fcn.004a9436
add esp, 4
mov ebp, dword [ebx + 0x14]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], esi
mov byte [esp + 0x1c], 0
lea ecx, [ebp*8]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
inc edx
cmp edx, 0xf
mov dword [esp + 0x40], 1
je 0x46b443
push 1
push edx
lea ecx, [esp + 0x20]
call fcn.00401380
test al, al
je 0x46b443
mov eax, dword [esp + 0x30]
mov ecx, 0x10
cmp eax, ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], esi
jae 0x46b43e
lea eax, [esp + 0x1c]
mov byte [eax], 0
jmp 0x46b448
mov ecx, 0x10
cmp ebp, esi
jbe 0x46b5ae
lea edi, [ebx + 4]
jmp 0x46b460
mov ecx, 0x10
lea ebx, [ebx]
cmp dword [ebx + 0x18], ecx
jb 0x46b469
mov eax, dword [edi]
jmp 0x46b46b
mov eax, edi
mov al, byte [eax + esi]
mov edx, dword [0x50d448]
sar al, 2
and al, 0x3f
cmp edx, ecx
mov ecx, dword [0x50d434]
jae 0x46b488
mov ecx, 0x50d434
movsx edx, al
xor eax, eax
mov al, byte [edx + ecx]
lea ecx, [esp + 0x18]
push eax
push 1
call fcn.004015b0
mov ecx, dword [ebx + 0x18]
cmp ecx, 0x10
jb 0x46b4a8
mov eax, dword [edi]
jmp 0x46b4aa
mov eax, edi
mov al, byte [eax + esi]
and al, 3
shl al, 4
inc esi
cmp esi, ebp
jae 0x46b4cd
cmp ecx, 0x10
jb 0x46b4c0
mov ecx, dword [edi]
jmp 0x46b4c2
mov ecx, edi
mov cl, byte [ecx + esi]
sar cl, 4
and cl, 0xf
or al, cl
cmp dword [0x50d448], 0x10
mov ecx, dword [0x50d434]
jae 0x46b4e1
mov ecx, 0x50d434
movsx edx, al
xor eax, eax
mov al, byte [edx + ecx]
lea ecx, [esp + 0x18]
push eax
push 1
call fcn.004015b0
cmp esi, ebp
jae 0x46b549
mov ecx, dword [ebx + 0x18]
cmp ecx, 0x10
jb 0x46b505
mov eax, dword [edi]
jmp 0x46b507
mov eax, edi
mov al, byte [eax + esi]
and al, 0xf
shl al, 2
inc esi
cmp esi, ebp
jae 0x46b52a
cmp ecx, 0x10
jb 0x46b51d
mov ecx, dword [edi]
jmp 0x46b51f
mov ecx, edi
mov cl, byte [ecx + esi]
sar cl, 6
and cl, 3
or al, cl
cmp dword [0x50d448], 0x10
mov ecx, dword [0x50d434]
jae 0x46b53e
mov ecx, 0x50d434
movsx edx, al
xor eax, eax
mov al, byte [edx + ecx]
push eax
jmp 0x46b54c
inc esi
push 0x3d
lea ecx, [esp + 0x1c]
push 1
call fcn.004015b0
cmp esi, ebp
jae 0x46b592
mov eax, dword [ebx + 0x18]
mov ecx, 0x10
cmp eax, ecx
jb 0x46b56b
mov eax, dword [edi]
jmp 0x46b56d
mov eax, edi
mov al, byte [eax + esi]
mov edx, dword [0x50d448]
and al, 0x3f
cmp edx, ecx
mov ecx, dword [0x50d434]
jae 0x46b587
mov ecx, 0x50d434
movsx edx, al
xor eax, eax
mov al, byte [edx + ecx]
push eax
jmp 0x46b594
push 0x3d
lea ecx, [esp + 0x1c]
push 1
call fcn.004015b0
inc esi
cmp esi, ebp
jb 0x46b455
mov edi, dword [esp + 0x10]
xor esi, esi
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x20]
push ecx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], esi
mov ecx, edi
mov byte [edi + 4], 0
call fcn.00401250
cmp dword [esp + 0x30], 0x10
jb 0x46b5df
mov edx, dword [esp + 0x1c]
push edx
call fcn.004a8222
add esp, 4
mov ecx, dword [esp + 0x38]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
pop ebx
xor ecx, esp
call fcn.004a8ea5
add esp, 0x34
ret