Function at 0x49e650
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x49e659
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x40]
push ecx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop ecx
mov byte [ebp - 9], cl
mov ebx, eax
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
xor eax, eax
push ebp
push 0x49ebb5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.004047e0
cmp byte [ebp + 0x14], 0
je 0x49e6a6
cmp edi, 0x19
jge 0x49e6a6
mov edi, 0x19
mov eax, esi
call fcn.00404aa0
cmp eax, 2
jge 0x49e6db
push 0x49ebd0
push esi
push 0
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00404b60
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x407ddc]
call fcn.0040cca0
call fcn.004041ec
movzx eax, byte [ebp - 9]
sub al, 0x42
je 0x49e71e
sub al, 0xf
je 0x49e71e
push 0x49ec08
lea eax, [ebp - 0x4c]
movzx edx, byte [ebp - 9]
call fcn.004049c8
push dword [ebp - 0x4c]
push 0
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404b60
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x407ddc]
call fcn.0040cca0
call fcn.004041ec
lea eax, [ebp - 8]
call fcn.004047e0
push 0x49ec40
lea edx, [ebp - 0x50]
mov eax, esi
call fcn.00489758
push dword [ebp - 0x50]
push 0x49ec4c
lea eax, [ebp - 0x54]
movzx edx, byte [ebp - 9]
call fcn.004049c8
push dword [ebp - 0x54]
push 0x49ec4c
lea eax, [ebp - 4]
mov edx, 5
call fcn.00404b60
mov eax, ebx
call fcn.00404aa0
mov esi, eax
mov dword [ebp - 0x10], 1
cmp byte [ebp - 9], 0x51
jne 0x49e8dd
cmp esi, dword [ebp - 0x10]
jl 0x49e8c8
push 1
lea eax, [ebp - 0x10]
push eax
movzx eax, byte [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
movzx eax, byte [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404aa0
mov edx, edi
sub edx, eax
sub edx, 2
push edx
push edi
lea esi, [ebp - 0x40]
lea edi, [ebp - 0x74]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
lea eax, [ebp - 0x74]
mov edx, 0x4b03a4
mov cl, 0x20
call fcn.00403520
lea ecx, [ebp - 0x74]
mov eax, ebx
pop edx
call fcn.0049ec74
mov eax, dword [ebp - 8]
call fcn.00404aa0
test eax, eax
je 0x49eb7d
mov eax, dword [ebp - 8]
call fcn.00404aa0
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x3d
jne 0x49e807
mov eax, dword [ebp - 8]
call fcn.00404aa0
mov edx, eax
dec edx
lea eax, [ebp - 8]
call fcn.00404e2c
push dword [ebp - 4]
push dword [ebp - 8]
push 0x49ec58
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.00404b60
jmp 0x49e8c8
push 1
lea eax, [ebp - 0x10]
push eax
movzx eax, byte [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
movzx eax, byte [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404aa0
mov edx, edi
sub edx, eax
sub edx, 2
push edx
push edi
lea esi, [ebp - 0x40]
lea edi, [ebp - 0x74]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
lea eax, [ebp - 0x74]
mov edx, 0x4b03a4
mov cl, 0x20
call fcn.00403520
lea ecx, [ebp - 0x74]
mov eax, ebx
pop edx
call fcn.0049ec74
mov eax, dword [ebp - 8]
call fcn.00404aa0
test eax, eax
jle 0x49e8c8
mov eax, dword [ebp - 8]
call fcn.00404aa0
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x3d
jne 0x49e8a6
mov eax, dword [ebp - 8]
call fcn.00404aa0
mov edx, eax
dec edx
lea eax, [ebp - 8]
call fcn.00404e2c
mov eax, dword [ebp + 8]
push dword [eax]
push 0x49ec64
push dword [ebp - 4]
push dword [ebp - 8]
push 0x49ec58
mov eax, dword [ebp + 8]
mov edx, 5
call fcn.00404b60
mov eax, ebx
call fcn.00404aa0
cmp eax, dword [ebp - 0x10]
jge 0x49e824
jmp 0x49eb7d
cmp byte [ebp + 0x14], 0
jne 0x49e8e8
mov edi, 0x3fe
sub edi, 2
mov eax, dword [ebp - 4]
call fcn.00404aa0
add eax, 2
mov dword [ebp - 0x14], eax
cmp byte [ebp + 0xc], 0
je 0x49e993
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
sub edi, dword [ebp - 0x14]
cmp esi, dword [ebp - 0x18]
jl 0x49e983
push edi
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp + 0x10]
call fcn.0049e140
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jle 0x49e983
push dword [ebp - 8]
push dword [ebp - 4]
mov eax, ebx
call fcn.00404ca0
mov edx, dword [ebp - 0x1c]
dec edx
add eax, edx
lea ecx, [ebp - 0x78]
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x1c]
call fcn.0049de84
push dword [ebp - 0x78]
push 0x49ec58
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404b60
cmp esi, dword [ebp - 0x18]
jl 0x49e978
mov edx, 0x49ec64
lea eax, [ebp - 8]
call fcn.00404aa8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
cmp esi, dword [ebp - 0x18]
jge 0x49e917
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.00404834
jmp 0x49eb7d
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404aa8
cmp esi, dword [ebp - 0x10]
jl 0x49eb6d
mov eax, dword [ebp - 0x14]
add eax, 4
cmp edi, eax
jge 0x49e9dc
push dword [ebp - 8]
push 0x49ec58
push 0x49ec64
push dword [ebp - 4]
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404b60
mov eax, dword [ebp - 4]
call fcn.00404aa0
add eax, 2
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0x10]
movzx edx, byte [ebx + edx - 1]
and dl, 0xfc
movzx edx, dl
shr edx, 2
movzx edx, byte [edx + 0x4b0438]
call fcn.004049c8
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 8]
call fcn.00404aa8
mov eax, dword [ebp - 0x10]
inc eax
cmp esi, eax
jl 0x49eb11
lea eax, [ebp - 0x80]
mov edx, dword [ebp - 0x10]
movzx edx, byte [ebx + edx - 1]
and dl, 3
movzx edx, dl
shl edx, 4
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ebx + ecx]
and cl, 0xf0
movzx ecx, cl
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + 0x4b0438]
call fcn.004049c8
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 8]
call fcn.00404aa8
mov eax, dword [ebp - 0x10]
add eax, 2
cmp esi, eax
jl 0x49ead1
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0x10]
movzx edx, byte [ebx + edx]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ebx + ecx + 1]
and cl, 0xc0
movzx ecx, cl
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + 0x4b0438]
call fcn.004049c8
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 8]
call fcn.00404aa8
lea eax, [ebp - 0x88]
mov edx, dword [ebp - 0x10]
movzx edx, byte [ebx + edx + 1]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + 0x4b0438]
call fcn.004049c8
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 8]
call fcn.00404aa8
jmp 0x49eb5c
lea eax, [ebp - 0x8c]
mov edx, dword [ebp - 0x10]
movzx edx, byte [ebx + edx]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx edx, byte [edx + 0x4b0438]
call fcn.004049c8
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 8]
call fcn.00404aa8
lea eax, [ebp - 8]
mov edx, 0x49ec70
call fcn.00404aa8
jmp 0x49eb5c
lea eax, [ebp - 0x90]
mov edx, dword [ebp - 0x10]
movzx edx, byte [ebx + edx - 1]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + 0x4b0438]
call fcn.004049c8
mov edx, dword [ebp - 0x90]
lea eax, [ebp - 8]
call fcn.00404aa8
push dword [ebp - 8]
push 0x49ec70
push 0x49ec70
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404b60
add dword [ebp - 0x14], 4
add dword [ebp - 0x10], 3
cmp esi, dword [ebp - 0x10]
jge 0x49e9a7
mov ecx, 0x49ec58
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.00404aec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ebbc
lea eax, [ebp - 0x90]
mov edx, 7
call fcn.00404804
lea eax, [ebp - 0x54]
mov edx, 5
call fcn.00404804
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404804
ret