Function at 0x46a128
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x46a130
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004047a8
xor eax, eax
push ebp
push 0x46a41a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004083f4
mov edx, dword [ebp - 0x1c]
mov eax, 0x46a430
call fcn.004048fc
test eax, eax
jle 0x46a3db
mov ebx, 1
mov edx, dword [ebp - 4]
mov eax, 0x46a440
call fcn.004048fc
mov esi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.004045c0
mov ecx, eax
sub ecx, esi
inc ecx
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00404818
cmp ebx, 1
jne 0x46a1cd
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x46a440
call fcn.004048fc
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404818
jmp 0x46a1df
cmp ebx, 2
jne 0x46a1df
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov dl, byte [edx]
call fcn.004044e8
inc ebx
cmp ebx, 4
jne 0x46a17a
mov edx, 0x46a44c
mov eax, dword [ebp - 8]
call fcn.004085a4
test al, al
je 0x46a3a1
mov ebx, 1
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x5f
jne 0x46a21b
lea eax, [ebp - 0x10]
mov edx, 0x46a458
call fcn.004045c8
jmp 0x46a2bd
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x3d
jne 0x46a2a3
mov edx, 0x46a45c
lea eax, [ebp - 0x28]
call fcn.00402cf8
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov cl, 2
call fcn.00402cc8
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x30]
call fcn.00402cf8
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx + 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x30]
mov cl, 3
call fcn.00402cc8
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x24]
call fcn.00404564
mov eax, dword [ebp - 0x24]
call fcn.004088bc
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.004044e8
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.004045c8
add ebx, 2
jmp 0x46a2bd
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
call fcn.004044e8
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x10]
call fcn.004045c8
inc ebx
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x3f
jne 0x46a1ff
mov eax, dword [ebp - 4]
cmp byte [eax + ebx], 0x3d
jne 0x46a1ff
jmp 0x46a3b2
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.0046a110
mov byte [ebp - 0x17], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 1]
call fcn.0046a110
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 2]
call fcn.0046a110
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 3]
call fcn.0046a110
mov byte [ebp - 0x14], al
mov dl, byte [ebp - 0x17]
shl edx, 2
mov al, byte [ebp - 0x16]
xor ecx, ecx
mov cl, al
shr ecx, 4
or dl, cl
mov byte [ebp - 0x13], dl
shl eax, 4
mov dl, byte [ebp - 0x15]
xor ecx, ecx
mov cl, dl
shr ecx, 2
or al, cl
mov byte [ebp - 0x12], al
shl edx, 6
xor eax, eax
mov al, byte [ebp - 0x14]
shr eax, 0
or dl, al
mov byte [ebp - 0x11], dl
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.004045c0
mov ecx, eax
mov edx, 5
mov eax, dword [ebp - 4]
call fcn.00404818
push dword [ebp - 0x10]
lea eax, [ebp - 0x38]
mov dl, byte [ebp - 0x13]
call fcn.004044e8
push dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
mov dl, byte [ebp - 0x12]
call fcn.004044e8
push dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
mov dl, byte [ebp - 0x11]
call fcn.004044e8
push dword [ebp - 0x40]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404680
mov eax, dword [ebp - 4]
call fcn.004045c0
cmp eax, 4
jge 0x46a2de
mov edx, 0x46a468
mov eax, dword [ebp - 0xc]
call fcn.004085a4
test al, al
je 0x46a3cf
mov edx, edi
mov eax, dword [ebp - 0x10]
call fcn.0046a474
jmp 0x46a3e5
mov eax, edi
mov edx, dword [ebp - 0x10]
call fcn.0040435c
jmp 0x46a3e5
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.0040435c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a421
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.0040432c
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040432c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040432c
ret