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

Disassembly:
mov eax, 0x1008a164
call fcn.10089d9c
sub esp, 0x538
push ebx
push esi
push edi
push 0x1008e96c
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 0x10005ab6
push 0x1008e97c
lea ecx, [ebp - 0x54]
call fcn.100066ef
and dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.100074c3
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.10006be8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10006abd
push 0x1008e9b4
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, edi
jne 0x10005b0c
push str.steam_api64.dll
lea ecx, [ebp - 0x6c]
call fcn.100066ef
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.100074c3
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.10006be8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.10006abd
push 0x1008ea04
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, edi
jne 0x10005b6f
push str.sdkencryptedappticket.dll
lea ecx, [ebp - 0x84]
call fcn.100066ef
lea eax, [ebp - 0x84]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.100074c3
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.10006be8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.10006abd
push 0x1008ea88
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, edi
jne 0x10005bcf
push str.sdkencryptedappticket64.dll
lea ecx, [ebp - 0x9c]
call fcn.100066ef
lea eax, [ebp - 0x9c]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.100074c3
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.10006be8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.10006abd
mov dword [ebp - 0x18], 0x30
xor edx, edx
mov byte [ebp - 0x14], 0x76
mov byte [ebp - 0x13], 0x71
mov byte [ebp - 0x12], 0x7b
mov byte [ebp - 0x11], 0x75
mov byte [ebp - 0x10], 0x63
mov al, byte [ebp - 0x14]
mov byte [ebp - 0xf], 0
mov al, byte [ebp + edx - 0x14]
mov ecx, dword [ebp - 0x18]
xor cl, al
mov byte [ebp + edx - 0x14], cl
inc edx
cmp edx, 5
jb 0x10005bf3
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
mov byte [ebp - 0xf], 0
call fcn.100546a9
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x10005d30
xor edx, edx
call fcn.1005460d
jmp 0x10005d23
lea eax, [ebp - 0x134]
mov edx, edi
push 0x80
push eax
call fcn.10001e5c
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.100066ef
lea eax, [ebp - 0xb4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.100074c3
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.10006be8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.10006abd
mov esi, dword [ebp - 0x1c]
mov edx, esi
mov ecx, dword [ebp - 0x20]
call fcn.1005460d
inc esi
mov dword [ebp - 0x1c], esi
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
jne 0x10005c2e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4