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

Disassembly:
mov eax, 0x1008acf7
call fcn.1008a92c
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 0x10005e55
push 0x1008f97c
lea ecx, [ebp - 0x54]
call fcn.10006af4
and dword [ebp - 4], 0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.100078c8
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.10006fed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.10006ec2
push 0x1008f9b4
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, edi
jne 0x10005eab
push str.steam_api64.dll
lea ecx, [ebp - 0x6c]
call fcn.10006af4
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.100078c8
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.10006fed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.10006ec2
push 0x1008fa04
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, edi
jne 0x10005f0e
push str.sdkencryptedappticket.dll
lea ecx, [ebp - 0x84]
call fcn.10006af4
lea eax, [ebp - 0x84]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.100078c8
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.10006fed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.10006ec2
push 0x1008fa88
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, edi
jne 0x10005f6e
push str.sdkencryptedappticket64.dll
lea ecx, [ebp - 0x9c]
call fcn.10006af4
lea eax, [ebp - 0x9c]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.100078c8
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.10006fed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.10006ec2
mov dword [ebp - 0x18], 0x31
xor edx, edx
mov byte [ebp - 0x14], 0x77
mov byte [ebp - 0x13], 0x70
mov byte [ebp - 0x12], 0x7a
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0x10], 0x62
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 0x10005f92
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
mov byte [ebp - 0xf], 0
call fcn.10054fa0
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x100060cf
xor edx, edx
call fcn.10054f04
jmp 0x100060c2
lea eax, [ebp - 0x134]
mov edx, edi
push 0x80
push eax
call fcn.10001f4c
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.10006af4
lea eax, [ebp - 0xb4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.100078c8
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.10006fed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.10006ec2
mov esi, dword [ebp - 0x1c]
mov edx, esi
mov ecx, dword [ebp - 0x20]
call fcn.10054f04
inc esi
mov dword [ebp - 0x1c], esi
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
jne 0x10005fcd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4