Function at 0x4188e0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, 0x4d83ac
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
mov ebp, dword [esp + 0x2c]
push 1
not ecx
dec ecx
mov esi, ecx
mov ecx, ebp
push esi
mov dword [esp + 0x18], esi
call fcn.00410dd0
test al, al
je 0x418932
mov edi, dword [ebp + 4]
mov ecx, esi
mov eax, ecx
mov esi, 0x4d83ac
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
mov ecx, ebp
call fcn.00410db0
mov eax, dword [esp + 0x28]
xor edi, edi
test eax, eax
jle 0x418c54
mov edx, dword [esp + 0x24]
mov ecx, ebx
mov al, byte [edi + edx]
inc edi
sub ecx, 0
je 0x418990
dec ecx
je 0x41896e
dec ecx
jne 0x4189ac
mov dl, byte [esp + 0x1a]
mov cl, al
shr cl, 6
or dl, cl
and al, 0x3f
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1b], al
xor ebx, ebx
jmp 0x4189b4
mov bl, byte [esp + 0x19]
mov dl, al
shr dl, 4
and al, 0xf
or bl, dl
shl al, 2
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], al
mov ebx, 2
jmp 0x418a93
mov cl, al
and al, 3
shr cl, 2
shl al, 4
mov byte [esp + 0x18], cl
mov byte [esp + 0x19], al
mov ebx, 1
jmp 0x418a93
test ebx, ebx
jne 0x418a93
mov edx, dword [esp + 0x18]
push edx
call fcn.00418510
mov byte [esp + 0x14], al
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, ebp
push eax
push 1
call fcn.00418c60
mov ecx, dword [esp + 0x19]
push ecx
call fcn.00418510
mov byte [esp + 0x18], al
add esp, 4
mov edx, dword [esp + 0x14]
mov ecx, ebp
push edx
push 1
call fcn.00418c60
mov eax, dword [esp + 0x1a]
push eax
call fcn.00418510
mov ecx, dword [0x4b49e8]
mov edx, dword [ebp + 8]
sub ecx, edx
add esp, 4
cmp ecx, 1
mov byte [esp + 0x2c], al
ja 0x418a18
call fcn.00483624
mov esi, dword [ebp + 8]
push 0
inc esi
mov ecx, ebp
push esi
call fcn.00410dd0
test al, al
je 0x418a43
movsx edx, byte [esp + 0x2c]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
add eax, ecx
mov dh, dl
push esi
mov ecx, ebp
mov byte [eax], dl
call fcn.00410db0
mov edx, dword [esp + 0x1b]
push edx
call fcn.00418510
mov edx, dword [ebp + 8]
mov byte [esp + 0x30], al
mov eax, dword [0x4b49e8]
add esp, 4
sub eax, edx
cmp eax, 1
ja 0x418a68
call fcn.00483624
mov esi, dword [ebp + 8]
push 0
inc esi
mov ecx, ebp
push esi
call fcn.00410dd0
test al, al
je 0x418a93
movsx ecx, byte [esp + 0x2c]
mov edx, dword [ebp + 4]
mov eax, dword [ebp + 8]
add edx, eax
mov ch, cl
push esi
mov byte [edx], cl
mov ecx, ebp
call fcn.00410db0
cmp edi, dword [esp + 0x28]
jl 0x418940
test ebx, ebx
jle 0x418c54
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00418510
mov edx, dword [0x4b49e8]
mov ecx, dword [ebp + 8]
sub edx, ecx
add esp, 4
cmp edx, 1
mov byte [esp + 0x28], al
ja 0x418acb
call fcn.00483624
mov esi, dword [ebp + 8]
push 0
inc esi
mov ecx, ebp
push esi
call fcn.00410dd0
test al, al
je 0x418af6
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
movsx eax, byte [esp + 0x28]
add ecx, edx
mov ah, al
push esi
mov byte [ecx], al
mov ecx, ebp
call fcn.00410db0
mov eax, dword [esp + 0x19]
push eax
call fcn.00418510
mov ecx, dword [0x4b49e8]
mov edx, dword [ebp + 8]
sub ecx, edx
add esp, 4
cmp ecx, 1
mov byte [esp + 0x28], al
ja 0x418b1c
call fcn.00483624
mov esi, dword [ebp + 8]
push 0
inc esi
mov ecx, ebp
push esi
call fcn.00410dd0
test al, al
je 0x418b47
movsx edx, byte [esp + 0x28]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
add eax, ecx
mov dh, dl
push esi
mov ecx, ebp
mov byte [eax], dl
call fcn.00410db0
cmp ebx, 1
jne 0x418bcb
mov edx, dword [0x4b49e8]
mov ecx, dword [ebp + 8]
sub edx, ecx
cmp edx, ebx
ja 0x418b60
call fcn.00483624
mov esi, dword [ebp + 8]
push 0
inc esi
mov ecx, ebp
push esi
call fcn.00410dd0
test al, al
je 0x418b85
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
add eax, ecx
push esi
mov ecx, ebp
mov byte [eax], 0x3d
call fcn.00410db0
mov ecx, dword [0x4b49e8]
mov edx, dword [ebp + 8]
sub ecx, edx
cmp ecx, 1
ja 0x418b9a
call fcn.00483624
mov esi, dword [ebp + 8]
push 0
inc esi
mov ecx, ebp
push esi
call fcn.00410dd0
test al, al
je 0x418c54
mov edx, dword [ebp + 4]
mov ecx, dword [ebp + 8]
add edx, ecx
push esi
mov ecx, ebp
mov byte [edx], 0x3d
call fcn.00410db0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x1a]
push eax
call fcn.00418510
mov ecx, dword [0x4b49e8]
mov edx, dword [ebp + 8]
sub ecx, edx
add esp, 4
cmp ecx, 1
mov bl, al
ja 0x418bef
call fcn.00483624
mov esi, dword [ebp + 8]
push 0
inc esi
mov ecx, ebp
push esi
call fcn.00410dd0
test al, al
je 0x418c18
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
movsx edx, bl
add eax, ecx
mov dh, dl
push esi
mov ecx, ebp
mov byte [eax], dl
call fcn.00410db0
mov edx, dword [0x4b49e8]
mov ecx, dword [ebp + 8]
sub edx, ecx
cmp edx, 1
ja 0x418c2d
call fcn.00483624
mov esi, dword [ebp + 8]
push 0
inc esi
mov ecx, ebp
push esi
call fcn.00410dd0
test al, al
je 0x418c54
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
add eax, ecx
mov byte [eax], 0x3d
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], esi
mov byte [ecx + esi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret