Function at 0x100f9cf0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [sym.imp.tier0_s.dll_g_VProfProfilesRunningCount]
sub esp, 0x14
cmp dword [eax], 0
jne 0x100f9d04
xor eax, eax
jmp 0x100f9d18
lea eax, [ebp - 0x10]
push eax
push 7
push str.CCrypto::Base64Encode
call dword [sym.imp.tier0_s.dll_VProfInternalEnterScopeCurrentThread]
add esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
push edi
test esi, esi
jne 0x100f9dae
mov eax, dword [ebp + 0x14]
cmp dword [eax], esi
je 0x100f9d4d
push str.NULL_output_buffer_with_non_zero_size_passed_to_Base64Encode
push 0xc4
push str.c:_buildslave_steam_rel_client_win32_build_srccommoncrypto_textencode.cpp
call dword [sym.imp.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__]
add esp, 0xc
test al, al
jne 0x100f9d4d
int3
mov ecx, dword [ebp + 0xc]
mov eax, 0xaaaaaaab
mov esi, dword [ebp + 0x18]
lea ecx, [ecx + 2]
mul ecx
mov edi, edx
shr edi, 1
test esi, esi
je 0x100f9d97
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100f9d68
sub esi, ecx
mov eax, 0x38e38e39
lea ecx, [edi - 1]
mov bl, 1
mul ecx
mov ecx, dword [ebp + 0x14]
shr edx, 2
inc edx
imul edx, esi
lea esi, [edi*4 + 1]
add esi, edx
mov dword [ecx], esi
jmp 0x100f9fcb
mov ecx, dword [ebp + 0x14]
lea esi, [edi*4 + 1]
xor edx, edx
mov bl, 1
add esi, edx
mov dword [ecx], esi
jmp 0x100f9fcb
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x100f9dd1
mov edi, ebx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100f9dc6
sub edi, edx
jmp 0x100f9dd3
xor edi, edi
test edi, edi
mov edx, 0x12
mov eax, 0x7fffffff
cmovne eax, edx
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
mov edx, dword [edx]
test edx, edx
je 0x100f9f5e
mov ecx, dword [ebp + 8]
dec edx
cmp dword [ebp + 0xc], 3
mov dword [ebp - 8], edx
jl 0x100f9eb3
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
lea esp, [esp]
lea ecx, [edi + 4]
cmp edx, ecx
jb 0x100f9f5e
test eax, eax
jne 0x100f9e38
push edi
push ebx
push esi
call fcn.101ad380
mov edx, dword [ebp - 8]
add esp, 0xc
add esi, edi
mov dword [ebp + 0x10], 0x12
sub edx, edi
mov eax, dword [ebp + 8]
sub edx, 4
sub dword [ebp - 4], 3
mov dword [ebp - 8], edx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov eax, dword [ebp + 8]
shl ecx, 8
add dword [ebp + 8], 3
movzx eax, byte [eax + 2]
or ecx, eax
mov eax, ecx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov eax, ecx
shr eax, 6
and ecx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
mov eax, dword [ebp + 0x10]
dec eax
cmp dword [ebp - 4], 3
mov dword [ebp + 0x10], eax
jge 0x100f9e10
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
je 0x100f9f3a
lea ecx, [edi + 4]
cmp edx, ecx
jb 0x100f9f5e
test eax, eax
jne 0x100f9edd
push edi
push ebx
push esi
call fcn.101ad380
mov edx, dword [ebp - 8]
add esp, 0xc
add esi, edi
sub edx, edi
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
inc eax
shl ecx, 0x10
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp - 0xc]
je 0x100f9ef7
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 0x10], eax
je 0x100f9f2b
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x100f9f2d
mov al, 0x3d
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
add esi, 4
sub edx, 4
test edi, edi
je 0x100f9f4f
cmp edx, edi
jb 0x100f9f5e
push edi
push ebx
push esi
call fcn.101ad380
add esp, 0xc
add esi, edi
mov ecx, dword [ebp + 0x14]
mov bl, 1
mov byte [esi], 0
sub esi, dword [ebp - 0x14]
mov dword [ecx], esi
jmp 0x100f9fcb
mov ecx, dword [ebp + 0xc]
mov eax, 0xaaaaaaab
mov byte [esi], 0
lea ecx, [ecx + 2]
mul ecx
mov esi, edx
shr esi, 1
test ebx, ebx
je 0x100f9f9c
lea ecx, [ebx + 1]
lea esp, [esp]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x100f9f80
sub ebx, ecx
mov eax, 0x38e38e39
lea ecx, [esi - 1]
mul ecx
shr edx, 2
inc edx
imul edx, ebx
jmp 0x100f9f9e
xor edx, edx
mov ecx, dword [ebp + 0x14]
lea eax, [esi*4 + 1]
push str.CCrypto::Base64Encode:_insufficient_output_buffer__up_to_n4_35_bytes_required__plus_linebreaks_
add eax, edx
push 0x11f
push str.c:_buildslave_steam_rel_client_win32_build_srccommoncrypto_textencode.cpp
mov dword [ecx], eax
call dword [sym.imp.tier0_s.dll_public:_static_bool___cdecl_AssertMsgHelper_1_::AssertFailed_char_const___unsigned_int__char_const__]
add esp, 0xc
test al, al
jne 0x100f9fc9
int3
xor bl, bl
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100f9fdc
push ecx
call dword [sym.imp.tier0_s.dll_CVProfile_ExitScope]
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret