Function at 0x10005c24
Capabilities:
Check if file exists
Encode data using xor

Disassembly:
mov eax, 0x1008ac24
call fcn.1008a85c
sub esp, 0x538
push ebx
push esi
push edi
push 0x1008f96c
lea ebx, [ecx + 0x1a4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
xor edi, edi
inc edi
mov dword [ebp - 0x1c], edi
cmp eax, edi
jne 0x10005c9a
push 0x1008f97c
lea ecx, [ebp - 0x54]
call fcn.10006ae1
and dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.100078b5
push str.steam_api.tnk
mov esi, dword [eax]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push str.steam_api.tnk
lea ecx, [esi + 0x20]
call fcn.10006fda
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10006eaf
push 0x1008f9b4
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, edi
jne 0x10005cf0
push str.steam_api64.dll
lea ecx, [ebp - 0x6c]
call fcn.10006ae1
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.100078b5
push str.steam_api64.tnk
mov esi, dword [eax]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push str.steam_api64.tnk
lea ecx, [esi + 0x20]
call fcn.10006fda
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.10006eaf
push 0x1008fa04
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, edi
jne 0x10005d53
push str.sdkencryptedappticket.dll
lea ecx, [ebp - 0x84]
call fcn.10006ae1
lea eax, [ebp - 0x84]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.100078b5
push str.sdkencryptedappticket.tnk
mov esi, dword [eax]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push str.sdkencryptedappticket.tnk
lea ecx, [esi + 0x20]
call fcn.10006fda
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.10006eaf
push 0x1008fa88
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, edi
jne 0x10005db3
push str.sdkencryptedappticket64.dll
lea ecx, [ebp - 0x9c]
call fcn.10006ae1
lea eax, [ebp - 0x9c]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.100078b5
mov edi, str.sdkencryptedappticket64.tnk
push edi
mov esi, dword [eax]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push edi
lea ecx, [esi + 0x20]
call fcn.10006fda
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.10006eaf
mov dword [ebp - 0x18], 3
mov eax, dword [ebp - 0x18]
xor al, 0x46
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x18]
inc al
xor al, 0x41
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x18]
add al, 2
xor al, 0x4b
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 0x18]
add al, 3
xor al, 0x45
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x18]
add al, 4
mov byte [ebp - 0xf], 0
xor al, 0x53
xor edx, edx
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0x14]
mov al, byte [ebp + edx - 0x14]
mov ecx, dword [ebp - 0x18]
add cl, dl
xor cl, al
mov byte [ebp + edx - 0x14], cl
inc edx
cmp edx, 5
jb 0x10005df3
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
mov byte [ebp - 0xf], 0
call fcn.100551dc
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x10005f32
xor edx, edx
call fcn.10055140
jmp 0x10005f25
lea eax, [ebp - 0x134]
mov edx, edi
push 0x80
push eax
call fcn.10001f6c
push edi
call dword [sym.imp.msvcrt.dll_strlen]
mov esi, eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.msvcrt.dll_strlen]
push 0x208
mov edi, eax
lea eax, [ebp - 0x544]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x33c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x28
lea eax, [ebp - 0x544]
push 0x104
push eax
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
call esi
push 0x104
lea eax, [ebp - 0x33c]
push eax
push edi
lea eax, [ebp - 0x134]
push eax
push 0
push 0
call esi
lea eax, [ebp - 0x544]
push eax
lea ecx, [ebp - 0xb4]
call fcn.10006ae1
lea eax, [ebp - 0xb4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.100078b5
mov esi, dword [eax]
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x33c]
push eax
lea ecx, [esi + 0x20]
call fcn.10006fda
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.10006eaf
mov esi, dword [ebp - 0x1c]
mov edx, esi
mov ecx, dword [ebp - 0x20]
call fcn.10055140
inc esi
mov dword [ebp - 0x1c], esi
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
jne 0x10005e30
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4