Function at 0x10338750
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x10364cb9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x105be7d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x24], 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov dword [esp + 0x2c], esi
mov byte [esi], 0
mov dword [esp + 0x38], 0
xor ebx, ebx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x24], 1
test ebp, ebp
je 0x103389fe
lea esp, [esp]
mov al, byte [edx]
dec ebp
mov byte [esp + ebx + 0x18], al
inc edx
mov ah, byte [esp + 0x1a]
inc ebx
mov ch, byte [esp + 0x19]
mov cl, byte [esp + 0x18]
mov dword [esp + 0x28], edx
mov byte [esp + 0x17], ah
mov byte [esp + 0x22], ch
mov byte [esp + 0x23], cl
cmp ebx, 3
jne 0x1033885b
mov al, cl
and cl, 3
shr al, 2
mov byte [esp + 0x1c], al
mov al, ch
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [esp + 0x1d], cl
mov cl, ch
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ah
and al, 0x3f
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], al
xor edi, edi
cmp dword [0x105dacb4], 0x10
mov ecx, 0x105daca0
movzx eax, byte [esp + edi + 0x1c]
cmovae ecx, dword [0x105daca0]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
push 1
call fcn.10168b90
inc edi
cmp edi, 4
jl 0x10338821
mov edx, dword [esp + 0x28]
xor ebx, ebx
mov ch, byte [esp + 0x22]
mov cl, byte [esp + 0x23]
test ebp, ebp
jne 0x103387c0
test ebx, ebx
je 0x103389fe
mov eax, ebx
cmp ebx, 3
jge 0x10338895
cmp eax, 3
jae 0x10338890
mov byte [esp + eax + 0x18], 0
inc eax
cmp eax, 3
jl 0x10338875
mov dl, byte [esp + 0x1a]
mov ch, byte [esp + 0x19]
mov cl, byte [esp + 0x18]
jmp 0x10338899
call fcn.1033d7c4
mov dl, byte [esp + 0x17]
mov al, cl
xor ebp, ebp
shr al, 2
and cl, 3
mov byte [esp + 0x1c], al
mov al, ch
shr al, 4
and ch, 0xf
shl cl, 4
add cl, al
shl ch, 2
mov al, dl
mov byte [esp + 0x1d], cl
shr al, 6
and dl, 0x3f
add ch, al
mov byte [esp + 0x1f], dl
lea eax, [ebx + 1]
mov byte [esp + 0x1e], ch
test eax, eax
jle 0x1033897f
jmp 0x103388e0
cmp dword [0x105dacb4], 0x10
mov ecx, 0x105daca0
movzx eax, byte [esp + ebp + 0x1c]
cmovae ecx, dword [0x105daca0]
mov dl, byte [eax + ecx]
or eax, 0xffffffff
mov ecx, dword [esi + 0x10]
sub eax, ecx
mov byte [esp + 0x17], dl
cmp eax, 1
jbe 0x103389bb
lea edi, [ecx + 1]
cmp edi, 0xfffffffe
ja 0x103389bb
mov eax, dword [esi + 0x14]
cmp eax, edi
jae 0x10338941
push ecx
push edi
mov ecx, esi
call fcn.100cc680
mov dl, byte [esp + 0x17]
test edi, edi
je 0x10338973
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x1033895b
mov eax, dword [esi]
jmp 0x1033895d
test edi, edi
jne 0x10338934
mov dword [esi + 0x10], edi
cmp eax, 0x10
jb 0x10338954
mov eax, dword [esi]
mov byte [eax], 0
jmp 0x10338973
mov eax, esi
mov byte [eax], 0
jmp 0x10338973
mov eax, esi
mov byte [eax + ecx], dl
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x1033896d
mov eax, dword [esi]
jmp 0x1033896f
mov eax, esi
mov byte [eax + edi], 0
inc ebp
lea eax, [ebx + 1]
cmp ebp, eax
jl 0x103388e0
cmp ebx, 3
jge 0x103389fe
mov ecx, dword [esi + 0x10]
or eax, 0xffffffff
sub eax, ecx
inc ebx
cmp eax, 1
jbe 0x103389bb
lea edi, [ecx + 1]
cmp edi, 0xfffffffe
ja 0x103389bb
mov eax, dword [esi + 0x14]
cmp eax, edi
jae 0x103389c6
push ecx
push edi
mov ecx, esi
call fcn.100cc680
test edi, edi
je 0x103389f9
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
jb 0x103389e0
mov eax, dword [esi]
jmp 0x103389e2
push str.string_too_long
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
test edi, edi
jne 0x103389ae
mov dword [esi + 0x10], edi
cmp eax, 0x10
jb 0x103389d9
mov eax, dword [esi]
mov byte [eax], 0
jmp 0x103389f9
mov eax, esi
mov byte [eax], 0
jmp 0x103389f9
mov eax, esi
mov byte [eax + ecx], 0x3d
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], edi
jb 0x103389f3
mov eax, dword [esi]
jmp 0x103389f5
mov eax, esi
mov byte [eax + edi], 0
cmp ebx, 3
jl 0x10338984
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret