Function at 0x47b624
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x47b62d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x38]
push ecx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop ecx
mov byte [ebp - 1], cl
mov ebx, eax
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x1c]
xor eax, eax
push ebp
push 0x47bb27
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00403f44
cmp byte [ebp + 0x14], 0
je 0x47b679
cmp edi, 0x19
jge 0x47b679
mov edi, 0x19
mov eax, esi
call fcn.00404204
cmp eax, 2
jge 0x47b6ae
push 0x47bb40
push esi
push 0
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.004042c4
mov ecx, dword [ebp - 0x3c]
mov dl, 1
mov eax, dword [0x407038]
call fcn.0040bb68
call fcn.00403960
mov al, byte [ebp - 1]
sub al, 0x42
je 0x47b6ef
sub al, 0xf
je 0x47b6ef
push 0x47bb78
lea eax, [ebp - 0x44]
mov dl, byte [ebp - 1]
call fcn.0040412c
push dword [ebp - 0x44]
push 0
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.004042c4
mov ecx, dword [ebp - 0x40]
mov dl, 1
mov eax, dword [0x407038]
call fcn.0040bb68
call fcn.00403960
lea eax, [ebp - 0x14]
call fcn.00403f44
push 0x47bbb0
lea edx, [ebp - 0x48]
mov eax, esi
call fcn.0045a48c
push dword [ebp - 0x48]
push 0x47bbbc
lea eax, [ebp - 0x4c]
mov dl, byte [ebp - 1]
call fcn.0040412c
push dword [ebp - 0x4c]
push 0x47bbbc
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.004042c4
mov eax, ebx
call fcn.00404204
mov esi, eax
mov dword [ebp - 8], 1
cmp byte [ebp - 1], 0x51
jne 0x47b8a9
cmp esi, dword [ebp - 8]
jl 0x47b894
push 1
lea eax, [ebp - 8]
push eax
mov al, byte [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov al, byte [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404204
mov edx, edi
sub edx, eax
sub edx, 2
push edx
push edi
lea esi, [ebp - 0x38]
lea edi, [ebp - 0x6c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
lea eax, [ebp - 0x6c]
mov edx, 0x4875d8
mov cl, 0x20
call fcn.00402d1c
lea ecx, [ebp - 0x6c]
mov eax, ebx
pop edx
call fcn.0047bbe4
mov eax, dword [ebp - 0x14]
call fcn.00404204
test eax, eax
je 0x47baef
mov eax, dword [ebp - 0x14]
call fcn.00404204
mov edx, dword [ebp - 0x14]
cmp byte [edx + eax - 1], 0x3d
jne 0x47b7d5
mov eax, dword [ebp - 0x14]
call fcn.00404204
mov edx, eax
dec edx
lea eax, [ebp - 0x14]
call fcn.00404590
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x47bbc8
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.004042c4
jmp 0x47b894
push 1
lea eax, [ebp - 8]
push eax
mov al, byte [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov al, byte [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404204
mov edx, edi
sub edx, eax
sub edx, 2
push edx
push edi
lea esi, [ebp - 0x38]
lea edi, [ebp - 0x6c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
lea eax, [ebp - 0x6c]
mov edx, 0x4875d8
mov cl, 0x20
call fcn.00402d1c
lea ecx, [ebp - 0x6c]
mov eax, ebx
pop edx
call fcn.0047bbe4
mov eax, dword [ebp - 0x14]
call fcn.00404204
test eax, eax
jle 0x47b894
mov eax, dword [ebp - 0x14]
call fcn.00404204
mov edx, dword [ebp - 0x14]
cmp byte [edx + eax - 1], 0x3d
jne 0x47b872
mov eax, dword [ebp - 0x14]
call fcn.00404204
mov edx, eax
dec edx
lea eax, [ebp - 0x14]
call fcn.00404590
mov eax, dword [ebp + 8]
push dword [eax]
push 0x47bbd4
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x47bbc8
mov eax, dword [ebp + 8]
mov edx, 5
call fcn.004042c4
mov eax, ebx
call fcn.00404204
cmp eax, dword [ebp - 8]
jge 0x47b7f2
jmp 0x47baef
cmp byte [ebp + 0x14], 0
jne 0x47b8b4
mov edi, 0x3fe
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.0040420c
mov eax, dword [ebp - 0x10]
call fcn.00404204
add eax, 2
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jl 0x47badf
cmp byte [ebp + 0xc], 0
je 0x47b923
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0045a930
sub eax, dword [ebp - 8]
shl eax, 2
add eax, dword [ebp - 0xc]
cmp edi, eax
jge 0x47b958
push dword [ebp - 0x14]
push 0x47bbc8
push 0x47bbd4
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004042c4
mov eax, dword [ebp - 0x10]
call fcn.00404204
add eax, 2
mov dword [ebp - 0xc], eax
jmp 0x47b958
mov eax, dword [ebp - 0xc]
add eax, 4
cmp edi, eax
jge 0x47b958
push dword [ebp - 0x14]
push 0x47bbc8
push 0x47bbd4
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004042c4
mov eax, dword [ebp - 0x10]
call fcn.00404204
add eax, 2
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x70]
mov edx, dword [ebp - 8]
mov dl, byte [ebx + edx - 1]
and dl, 0xfc
and edx, 0xff
shr edx, 2
mov dl, byte [edx + 0x48766c]
call fcn.0040412c
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x14]
call fcn.0040420c
mov eax, dword [ebp - 8]
inc eax
cmp esi, eax
jl 0x47ba82
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 8]
mov dl, byte [ebx + edx - 1]
and dl, 3
and edx, 0xff
shl edx, 4
mov ecx, dword [ebp - 8]
mov cl, byte [ebx + ecx]
and cl, 0xf0
and ecx, 0xff
shr ecx, 4
add edx, ecx
mov dl, byte [edx + 0x48766c]
call fcn.0040412c
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x14]
call fcn.0040420c
mov eax, dword [ebp - 8]
add eax, 2
cmp esi, eax
jl 0x47ba48
lea eax, [ebp - 0x78]
mov edx, dword [ebp - 8]
mov dl, byte [ebx + edx]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov ecx, dword [ebp - 8]
mov cl, byte [ebx + ecx + 1]
and cl, 0xc0
and ecx, 0xff
shr ecx, 6
add edx, ecx
mov dl, byte [edx + 0x48766c]
call fcn.0040412c
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x14]
call fcn.0040420c
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 8]
mov dl, byte [ebx + edx + 1]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x48766c]
call fcn.0040412c
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x14]
call fcn.0040420c
jmp 0x47bace
lea eax, [ebp - 0x80]
mov edx, dword [ebp - 8]
mov dl, byte [ebx + edx]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov dl, byte [edx + 0x48766c]
call fcn.0040412c
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x14]
call fcn.0040420c
lea eax, [ebp - 0x14]
mov edx, 0x47bbe0
call fcn.0040420c
jmp 0x47bace
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 8]
mov dl, byte [ebx + edx - 1]
and dl, 3
and edx, 0xff
shl edx, 4
mov dl, byte [edx + 0x48766c]
call fcn.0040412c
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x14]
call fcn.0040420c
push dword [ebp - 0x14]
push 0x47bbe0
push 0x47bbe0
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004042c4
add dword [ebp - 0xc], 4
add dword [ebp - 8], 3
cmp esi, dword [ebp - 8]
jge 0x47b8d6
mov ecx, 0x47bbc8
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
call fcn.00404250
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bb2e
lea eax, [ebp - 0x84]
mov edx, 6
call fcn.00403f68
lea eax, [ebp - 0x4c]
mov edx, 5
call fcn.00403f68
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403f68
ret