Function at 0x46f3d8
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x46f3e0
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c4c
xor eax, eax
push ebp
push 0x46f6ca
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00408918
mov edx, dword [ebp - 0x1c]
mov eax, 0x46f6e0
call fcn.00404da0
test eax, eax
jle 0x46f68b
mov ebx, 1
mov edx, dword [ebp - 4]
mov eax, 0x46f6f0
call fcn.00404da0
mov esi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.00404a64
mov ecx, eax
sub ecx, esi
inc ecx
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00404cbc
cmp ebx, 1
jne 0x46f47d
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x46f6f0
call fcn.00404da0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404cbc
jmp 0x46f48f
cmp ebx, 2
jne 0x46f48f
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov dl, byte [edx]
call fcn.0040498c
inc ebx
cmp ebx, 4
jne 0x46f42a
mov edx, 0x46f6fc
mov eax, dword [ebp - 8]
call fcn.00408b30
test al, al
je 0x46f651
mov ebx, 1
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x5f
jne 0x46f4cb
lea eax, [ebp - 0x10]
mov edx, 0x46f708
call fcn.00404a6c
jmp 0x46f56d
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x3d
jne 0x46f553
mov edx, 0x46f70c
lea eax, [ebp - 0x28]
call fcn.00402fc0
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.00402f90
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x30]
call fcn.00402fc0
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.00402f90
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x24]
call fcn.00404a08
mov eax, dword [ebp - 0x24]
call fcn.00408e48
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.0040498c
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.00404a6c
add ebx, 2
jmp 0x46f56d
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
call fcn.0040498c
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x10]
call fcn.00404a6c
inc ebx
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x3f
jne 0x46f4af
mov eax, dword [ebp - 4]
cmp byte [eax + ebx], 0x3d
jne 0x46f4af
jmp 0x46f662
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.0046f3c0
mov byte [ebp - 0x17], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 1]
call fcn.0046f3c0
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 2]
call fcn.0046f3c0
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 3]
call fcn.0046f3c0
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.00404a64
mov ecx, eax
mov edx, 5
mov eax, dword [ebp - 4]
call fcn.00404cbc
push dword [ebp - 0x10]
lea eax, [ebp - 0x38]
mov dl, byte [ebp - 0x13]
call fcn.0040498c
push dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
mov dl, byte [ebp - 0x12]
call fcn.0040498c
push dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
mov dl, byte [ebp - 0x11]
call fcn.0040498c
push dword [ebp - 0x40]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404b24
mov eax, dword [ebp - 4]
call fcn.00404a64
cmp eax, 4
jge 0x46f58e
mov edx, 0x46f718
mov eax, dword [ebp - 0xc]
call fcn.00408b30
test al, al
je 0x46f67f
mov edx, edi
mov eax, dword [ebp - 0x10]
call fcn.0046f724
jmp 0x46f695
mov eax, edi
mov edx, dword [ebp - 0x10]
call fcn.00404800
jmp 0x46f695
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404800
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f6d1
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.004047d0
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004047d0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004047d0
ret