Function at 0x46e850
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x4f3dc9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
mov eax, dword [0x52f4a8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [edi], ebx
mov dword [edi + 0x1c], 0xf
mov dword [edi + 0x18], ebx
mov dword [esp + 0x20], edi
mov byte [edi + 8], bl
xor ebp, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x38], ebx
je 0x46eb58
mov eax, dword [esp + 0x34]
mov cl, byte [eax]
dec dword [esp + 0x38]
mov byte [esp + ebp + 0x10], cl
inc ebp
inc eax
mov dword [esp + 0x34], eax
cmp ebp, 3
jne 0x46e9a5
mov al, byte [esp + 0x10]
mov dl, al
shr dl, 2
mov cl, al
mov al, byte [esp + 0x11]
and cl, 3
mov byte [esp + 0x14], dl
shl cl, 4
mov dl, al
shr dl, 4
add cl, dl
mov byte [esp + 0x15], cl
mov cl, al
mov al, byte [esp + 0x12]
and cl, 0xf
add cl, cl
mov dl, al
add cl, cl
shr dl, 6
add cl, dl
and al, 0x3f
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], al
xor ebp, ebp
jmp 0x46e910
movzx esi, byte [esp + ebp + 0x14]
call fcn.00467120
mov bl, byte [eax]
or eax, 0xffffffff
sub eax, dword [edi + 0x18]
cmp eax, 1
ja 0x46e92c
call fcn.004742d0
mov esi, dword [edi + 0x18]
inc esi
cmp esi, 0xfffffffe
jbe 0x46e93a
call fcn.004742d0
mov eax, dword [edi + 0x1c]
cmp eax, esi
jae 0x46e963
mov ecx, dword [edi + 0x18]
push ecx
push esi
mov ecx, edi
call fcn.00402330
test esi, esi
jbe 0x46e999
mov ecx, dword [edi + 0x18]
mov edx, 0x10
cmp dword [edi + 0x1c], edx
jb 0x46e97f
mov eax, dword [edi + 8]
jmp 0x46e982
test esi, esi
jne 0x46e94f
mov dword [edi + 0x18], esi
cmp eax, 0x10
jb 0x46e977
mov eax, dword [edi + 8]
mov byte [eax], 0
jmp 0x46e999
lea eax, [edi + 8]
mov byte [eax], 0
jmp 0x46e999
lea eax, [edi + 8]
mov byte [eax + ecx], bl
mov dword [edi + 0x18], esi
cmp dword [edi + 0x1c], edx
jb 0x46e992
mov eax, dword [edi + 8]
jmp 0x46e995
lea eax, [edi + 8]
mov byte [eax + esi], 0
inc ebp
cmp ebp, 4
jl 0x46e910
xor ebp, ebp
xor ebx, ebx
cmp dword [esp + 0x38], ebx
jne 0x46e8a7
cmp ebp, ebx
je 0x46eb58
cmp ebp, 3
jge 0x46e9d4
mov edx, 3
sub edx, ebp
push edx
lea eax, [esp + ebp + 0x14]
push ebx
push eax
call fcn.00488970
add esp, 0xc
mov cl, byte [esp + 0x10]
mov al, cl
shr al, 2
mov byte [esp + 0x14], al
mov al, byte [esp + 0x11]
mov dl, al
and cl, 3
shl cl, 4
shr dl, 4
add cl, dl
and al, 0xf
mov byte [esp + 0x15], cl
mov cl, byte [esp + 0x12]
add al, al
mov dl, cl
add al, al
shr dl, 6
add al, dl
mov byte [esp + 0x16], al
and cl, 0x3f
lea eax, [ebp + 1]
cmp eax, ebx
mov byte [esp + 0x17], cl
mov dword [esp + 0x10], ebx
jle 0x46eac2
movzx esi, byte [esp + ebx + 0x14]
call fcn.00467120
mov al, byte [eax]
or ecx, 0xffffffff
sub ecx, dword [edi + 0x18]
mov byte [esp + 0x18], al
cmp ecx, 1
ja 0x46ea41
call fcn.004742d0
mov esi, dword [edi + 0x18]
inc esi
cmp esi, 0xfffffffe
jbe 0x46ea4f
call fcn.004742d0
mov eax, dword [edi + 0x1c]
cmp eax, esi
jae 0x46ea76
mov edx, dword [edi + 0x18]
push edx
push esi
mov ecx, edi
call fcn.00402330
test esi, esi
jbe 0x46eab2
cmp dword [edi + 0x1c], 0x10
mov ecx, dword [edi + 0x18]
lea edx, [edi + 8]
jb 0x46ea92
mov eax, dword [edx]
jmp 0x46ea94
test esi, esi
jne 0x46ea64
mov dword [edi + 0x18], esi
cmp eax, 0x10
jb 0x46ea8a
mov eax, dword [edi + 8]
mov byte [eax], 0
jmp 0x46eab2
lea eax, [edi + 8]
mov byte [eax], 0
jmp 0x46eab2
mov eax, edx
mov bl, byte [esp + 0x18]
mov byte [eax + ecx], bl
cmp dword [edi + 0x1c], 0x10
mov dword [edi + 0x18], esi
jb 0x46eaa8
mov eax, dword [edx]
jmp 0x46eaaa
mov eax, edx
mov ebx, dword [esp + 0x10]
mov byte [eax + esi], 0
inc ebx
lea eax, [ebp + 1]
cmp ebx, eax
mov dword [esp + 0x10], ebx
jl 0x46ea21
cmp ebp, 3
jge 0x46eb58
mov ebx, 3
sub ebx, ebp
or eax, 0xffffffff
sub eax, dword [edi + 0x18]
cmp eax, 1
ja 0x46eae2
call fcn.004742d0
mov esi, dword [edi + 0x18]
inc esi
cmp esi, 0xfffffffe
jbe 0x46eaf0
call fcn.004742d0
mov eax, dword [edi + 0x1c]
cmp eax, esi
jae 0x46eb1b
mov ecx, dword [edi + 0x18]
push ecx
push esi
mov ecx, edi
call fcn.00402330
test esi, esi
jbe 0x46eb4f
mov ecx, dword [edi + 0x18]
mov ebp, 0x10
lea edx, [edi + 8]
cmp dword [edi + 0x1c], ebp
jb 0x46eb37
mov eax, dword [edx]
jmp 0x46eb39
test esi, esi
jne 0x46eb05
mov dword [edi + 0x18], esi
cmp eax, 0x10
jb 0x46eb2f
mov eax, dword [edi + 8]
mov byte [eax], 0
jmp 0x46eb4f
lea eax, [edi + 8]
mov byte [eax], 0
jmp 0x46eb4f
mov eax, edx
mov byte [eax + ecx], 0x3d
mov dword [edi + 0x18], esi
cmp dword [edi + 0x1c], ebp
jb 0x46eb49
mov eax, dword [edx]
jmp 0x46eb4b
mov eax, edx
mov byte [eax + esi], 0
sub ebx, 1
jne 0x46ead2
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8