Function at 0x10049220
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x100ad139
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
mov eax, dword [0x100e18d0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], esi
mov dword [esp + 0x20], edi
mov byte [edi + 4], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x38], esi
je 0x1004945e
mov eax, dword [esp + 0x34]
mov cl, byte [eax]
dec dword [esp + 0x38]
mov byte [esp + esi + 0x14], cl
mov bl, byte [esp + 0x15]
inc esi
inc eax
mov dword [esp + 0x34], eax
cmp esi, 3
jne 0x10049310
mov al, byte [esp + 0x14]
mov dl, al
shr dl, 2
and al, 3
shl al, 4
mov byte [esp + 0x10], dl
mov cl, bl
shr cl, 4
add al, cl
mov byte [esp + 0x11], al
mov al, byte [esp + 0x16]
mov dl, bl
and dl, 0xf
add dl, dl
mov cl, al
add dl, dl
shr cl, 6
add dl, cl
and al, 0x3f
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], al
xor esi, esi
movzx ebp, byte [esp + esi + 0x10]
cmp ebp, dword [0x100e3b78]
jbe 0x100492e0
call fcn.100815e3
cmp dword [0x100e3b7c], 0x10
mov eax, dword [0x100e3b68]
jae 0x100492f3
mov eax, 0x100e3b68
mov dl, byte [eax + ebp]
mov byte [esp + 0x18], dl
mov eax, dword [esp + 0x18]
push eax
push 1
mov ecx, edi
call fcn.1000d950
inc esi
cmp esi, 4
jl 0x100492ce
xor esi, esi
cmp dword [esp + 0x38], 0
jne 0x10049274
test esi, esi
je 0x1004945e
cmp esi, 3
jge 0x10049343
mov ecx, 3
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x18]
push 0
push eax
call fcn.10083840
mov bl, byte [esp + 0x21]
add esp, 0xc
mov al, byte [esp + 0x14]
mov dl, al
mov cl, bl
and al, 3
shl al, 4
shr cl, 4
add al, cl
shr dl, 2
and bl, 0xf
mov byte [esp + 0x11], al
mov al, byte [esp + 0x16]
add bl, bl
mov byte [esp + 0x10], dl
mov dl, al
add bl, bl
shr dl, 6
add bl, dl
mov byte [esp + 0x12], bl
and al, 0x3f
lea ebp, [esi + 1]
xor ebx, ebx
mov byte [esp + 0x13], al
test ebp, ebp
jle 0x100493ca
movzx eax, byte [esp + ebx + 0x10]
cmp eax, dword [0x100e3b78]
jbe 0x10049397
call fcn.100815e3
cmp dword [0x100e3b7c], 0x10
mov ecx, dword [0x100e3b68]
jae 0x100493ab
mov ecx, 0x100e3b68
movzx eax, byte [esp + ebx + 0x10]
mov al, byte [ecx + eax]
mov byte [esp + 0x18], al
mov ecx, dword [esp + 0x18]
push ecx
push 1
mov ecx, edi
call fcn.1000d950
inc ebx
cmp ebx, ebp
jl 0x10049385
cmp esi, 3
jge 0x1004945e
mov ebp, 3
sub ebp, esi
lea ebx, [ebx]
or edx, 0xffffffff
sub edx, dword [edi + 0x14]
cmp edx, 1
ja 0x100493f0
call fcn.1009cc5e
mov esi, dword [edi + 0x14]
inc esi
cmp esi, 0xfffffffe
jbe 0x100493fe
call fcn.1009cc5e
mov eax, dword [edi + 0x18]
cmp eax, esi
jae 0x10049429
mov eax, dword [edi + 0x14]
push eax
push esi
mov ecx, edi
call fcn.10010200
test esi, esi
jbe 0x10049459
mov edx, dword [edi + 0x14]
mov ebx, 0x10
lea eax, [edi + 4]
cmp dword [edi + 0x18], ebx
jb 0x10049445
mov ecx, dword [eax]
jmp 0x10049447
test esi, esi
jne 0x10049413
mov dword [edi + 0x14], esi
cmp eax, 0x10
jb 0x1004943d
mov eax, dword [edi + 4]
mov byte [eax], 0
jmp 0x10049459
lea eax, [edi + 4]
mov byte [eax], 0
jmp 0x10049459
mov ecx, eax
mov byte [ecx + edx], 0x3d
mov dword [edi + 0x14], esi
cmp dword [edi + 0x18], ebx
jb 0x10049455
mov eax, dword [eax]
mov byte [eax + esi], 0
sub ebp, 1
jne 0x100493e0
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x20
ret