Function at 0x4a1724
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x4a172c
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b98
xor eax, eax
push ebp
push 0x4a1c88
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
push 0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.00408b68
mov edx, dword [ebp - 0x38]
mov ecx, 1
mov eax, 0x4a1c9c
call fcn.004a1604
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4a179d
push ebp
push 0
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00408b68
mov edx, dword [ebp - 0x3c]
mov ecx, 1
mov eax, 0x4a1cac
call fcn.004a1604
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jle 0x4a1c27
mov byte [ebp - 0x31], 1
push ebp
push 0
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.00408b68
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
add ecx, 5
mov eax, 0x4a1cc0
call fcn.004a1604
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4a17da
mov byte [ebp - 0x31], 0
cmp byte [ebp - 0x31], 0
je 0x4a180d
push ebp
push 0
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.00408b68
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x2c]
inc ecx
mov eax, 0x4a1cc0
call fcn.004a1604
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4a180d
mov byte [ebp - 0x31], 0
cmp byte [ebp - 0x31], 0
je 0x4a1bb3
push ebp
push 0
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.00408b68
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x2c]
inc ecx
mov eax, 0x4a1ccc
call fcn.004a1604
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jle 0x4a1bb3
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x28]
add ecx, 2
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00404c08
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 0x30]
mov eax, 0x4a1cc0
call fcn.00404cec
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x30]
call fcn.004049a8
mov ecx, eax
sub ecx, dword [ebp - 0x10]
inc ecx
mov edx, dword [ebp - 0x10]
inc edx
mov eax, dword [ebp - 0x30]
call fcn.00404c08
cmp dword [ebp - 0xc], 1
jne 0x4a18ba
lea eax, [ebp - 0x18]
push eax
mov edx, dword [ebp - 0x30]
mov eax, 0x4a1cc0
call fcn.00404cec
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x30]
call fcn.00404c08
jmp 0x4a18d6
cmp dword [ebp - 0xc], 2
jne 0x4a18d6
lea eax, [ebp - 0x14]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x30]
call fcn.00404c08
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
jne 0x4a1863
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x30]
call fcn.004049a8
mov edx, eax
dec edx
mov ecx, 2
mov eax, dword [ebp - 0x30]
call fcn.00404c08
mov eax, dword [ebp - 0x4c]
mov edx, 0x4a1ccc
call fcn.00404af4
je 0x4a190e
mov byte [ebp - 0x31], 0
mov edx, 0x4a1cd8
mov eax, dword [ebp - 0x14]
call fcn.00408e30
test al, al
je 0x4a1a50
cmp byte [ebp - 0x31], 0
je 0x4a1a50
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x1c]
call fcn.004046cc
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0x5f
jne 0x4a195b
lea eax, [ebp - 0x1c]
mov edx, 0x4a1ce4
call fcn.004049b0
jmp 0x4a1a27
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0x3d
jne 0x4a1a0a
mov eax, dword [ebp - 0x30]
call fcn.004049a8
mov edx, dword [ebp - 0xc]
add edx, 2
add edx, 2
cmp eax, edx
jl 0x4a1a0a
mov edx, 0x4a1ce8
lea eax, [ebp - 0x58]
call fcn.00403040
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov cl, 2
call fcn.00403010
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x60]
call fcn.00403040
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx + 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x60]
mov cl, 3
call fcn.00403010
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x54]
call fcn.00404930
mov eax, dword [ebp - 0x54]
call fcn.00409694
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.004048b4
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x1c]
call fcn.004049b0
add dword [ebp - 0xc], 2
jmp 0x4a1a27
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx - 1]
call fcn.004048b4
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x1c]
call fcn.004049b0
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0x3f
jne 0x4a193c
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx], 0x3d
jne 0x4a193c
jmp 0x4a1b35
cmp byte [ebp - 0x31], 0
je 0x4a1b35
jmp 0x4a1b24
mov eax, dword [ebp - 0x30]
mov al, byte [eax]
call fcn.004a15cc
mov byte [ebp - 0x23], al
mov eax, dword [ebp - 0x30]
mov al, byte [eax + 1]
call fcn.004a15cc
mov byte [ebp - 0x22], al
mov eax, dword [ebp - 0x30]
mov al, byte [eax + 2]
call fcn.004a15cc
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0x30]
mov al, byte [eax + 3]
call fcn.004a15cc
mov byte [ebp - 0x20], al
mov al, byte [ebp - 0x23]
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 0x22]
shr edx, 4
or al, dl
mov byte [ebp - 0x1f], al
mov al, byte [ebp - 0x22]
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 0x21]
shr edx, 2
or al, dl
mov byte [ebp - 0x1e], al
mov al, byte [ebp - 0x21]
shl eax, 6
xor edx, edx
mov dl, byte [ebp - 0x20]
shr edx, 0
or al, dl
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x30]
call fcn.004049a8
mov ecx, eax
mov edx, 5
mov eax, dword [ebp - 0x30]
call fcn.00404c08
push dword [ebp - 0x1c]
lea eax, [ebp - 0x68]
mov dl, byte [ebp - 0x1f]
call fcn.004048b4
push dword [ebp - 0x68]
lea eax, [ebp - 0x6c]
mov dl, byte [ebp - 0x1e]
call fcn.004048b4
push dword [ebp - 0x6c]
lea eax, [ebp - 0x70]
mov dl, byte [ebp - 0x1d]
call fcn.004048b4
push dword [ebp - 0x70]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404a68
mov eax, dword [ebp - 0x30]
call fcn.004049a8
cmp eax, 4
jge 0x4a1a5f
cmp byte [ebp - 0x31], 0
je 0x4a1bb3
mov edx, 0x4a1cf4
mov eax, dword [ebp - 0x18]
call fcn.00408e30
test al, al
je 0x4a1b59
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
call fcn.004a1d0c
jmp 0x4a1b64
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
call fcn.00404764
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x28]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404c08
push dword [ebp - 0x74]
push dword [ebp - 0x30]
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 4]
call fcn.004049a8
mov ecx, eax
mov edx, dword [ebp - 0x2c]
add edx, 2
mov eax, dword [ebp - 4]
call fcn.00404c08
push dword [ebp - 0x78]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404a68
lea eax, [ebp - 0x30]
call fcn.004046cc
push ebp
push 0
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
call fcn.00408b68
mov edx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x28]
inc ecx
mov eax, 0x4a1c9c
call fcn.004a1604
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4a1bff
push ebp
push 0
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 4]
call fcn.00408b68
mov edx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x28]
inc ecx
mov eax, 0x4a1cac
call fcn.004a1604
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jg 0x4a17a7
jmp 0x4a1c27
mov edx, dword [ebp - 4]
mov eax, 0x4a1d08
call fcn.00404cec
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00404c48
mov edx, dword [ebp - 4]
mov eax, 0x4a1d08
call fcn.00404cec
test eax, eax
jg 0x4a1c0b
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404720
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1c8f
lea eax, [ebp - 0x80]
mov edx, 8
call fcn.004046f0
lea eax, [ebp - 0x54]
mov edx, 8
call fcn.004046f0
lea eax, [ebp - 0x30]
call fcn.004046cc
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004046f0
lea eax, [ebp - 4]
call fcn.004046cc
ret