Function at 0x47221c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x472544
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0xc], eax
mov byte [ebp - 0xd], 0x3d
mov dword [ebp - 0x24], 0x3e
lea eax, [ebp - 0x20]
call fcn.0040461c
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.00404c68
mov eax, dword [ebp - 0x20]
call fcn.00404adc
mov dword [ebp - 0x14], eax
mov cx, 2
xor edx, edx
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x14]
mov ecx, ebx
mov dl, 1
mov eax, dword [0x47206c]
call fcn.004720c8
mov dword [ebp - 0x1c], eax
xor ecx, ecx
push ebp
push 0x4724e6
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
cmp ebx, dword [ebp - 0x18]
jb 0x4722d7
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x1c]
call fcn.00472164
test al, al
je 0x4724d0
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov al, byte [ebx]
mov byte [ebp - 0xe], al
inc ebx
xor eax, eax
mov al, byte [ebp - 0xe]
shr eax, 2
mov al, byte [eax + 0x494bf4]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x14]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x472349
mov byte [ebp - 0xf], 0
mov al, byte [ebp - 0xe]
and al, 3
and eax, 0xff
shl eax, 4
mov dl, byte [ebp - 0xf]
and dl, 0xf0
and edx, 0xff
shr edx, 4
or eax, edx
mov al, byte [eax + 0x494bf4]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dl, byte [ebp - 0xd]
mov byte [eax], dl
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dl, byte [ebp - 0xd]
mov byte [eax], dl
inc dword [ebp - 0x14]
jmp 0x472454
cmp ebx, dword [ebp - 0x18]
jb 0x472371
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x1c]
call fcn.00472164
test al, al
je 0x4724d0
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov al, byte [ebx]
mov byte [ebp - 0xf], al
inc ebx
mov al, byte [ebp - 0xe]
and al, 3
and eax, 0xff
shl eax, 4
mov dl, byte [ebp - 0xf]
and dl, 0xf0
and edx, 0xff
shr edx, 4
or eax, edx
mov al, byte [eax + 0x494bf4]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x14]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x4723e6
xor edx, edx
mov al, byte [ebp - 0xf]
and al, 0xf
and eax, 0xff
shl eax, 2
and dl, 0xc0
and edx, 0xff
shr edx, 6
or eax, edx
mov al, byte [eax + 0x494bf4]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dl, byte [ebp - 0xd]
mov byte [eax], dl
inc dword [ebp - 0x14]
jmp 0x472454
cmp ebx, dword [ebp - 0x18]
jb 0x47240e
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x1c]
call fcn.00472164
test al, al
je 0x4724d0
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
mov dl, byte [ebx]
inc ebx
mov al, byte [ebp - 0xf]
and al, 0xf
and eax, 0xff
shl eax, 2
mov ecx, edx
and cl, 0xc0
and ecx, 0xff
shr ecx, 6
or eax, ecx
mov al, byte [eax + 0x494bf4]
mov ecx, dword [ebp - 0x14]
mov byte [ecx], al
inc dword [ebp - 0x14]
inc dword [ebp - 8]
and dl, 0x3f
xor eax, eax
mov al, dl
mov al, byte [eax + 0x494bf4]
mov edx, dword [ebp - 0x14]
mov byte [edx], al
inc dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, 0x2d
cdq
idiv ecx
test edx, edx
je 0x472472
mov eax, dword [ebp - 0x14]
dec eax
mov al, byte [eax]
cmp al, byte [ebp - 0xd]
jne 0x4722af
mov eax, dword [ebp - 0x14]
dec eax
mov al, byte [eax]
cmp al, byte [ebp - 0xd]
je 0x472497
mov eax, dword [ebp - 0x14]
mov byte [eax], 0xd
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov byte [eax], 0xa
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
jmp 0x4724ab
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.00404c68
mov eax, dword [ebp - 0x20]
call fcn.00404adc
mov edx, eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
call fcn.00404adc
mov dword [ebp - 0x14], eax
jmp 0x4722af
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4724ed
mov eax, dword [ebp - 0x1c]
call fcn.00403848
ret