Function at 0x10007ae0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x1006100c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [esp + 0x10], esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], edi
test esi, esi
jne 0x10007b14
push str.ISteamUser::GetEncryptedAppTicket_____Ticket_Pointer_is_nullptr__r_n
jmp 0x10007d2a
test ebx, ebx
jne 0x10007b25
push str.ISteamUser::GetEncryptedAppTicket_____cbMaxTicket_is_0__r_n
nop dword [eax]
jmp 0x10007d2a
test edi, edi
jne 0x10007b33
push str.ISteamUser::GetEncryptedAppTicket_____Ticket_size_Pointer_is_nullptr__r_n
jmp 0x10007d2a
push dword ds:[edi]
push ebx
push str.ISteamUser::GetEncryptedAppTicket______d______d_r_n
call fcn.10002100
add esp, 0xc
cmp byte [0x100641c5], 1
jne 0x10007b7b
cmp dword [0x10070d00], 0
je 0x10007b7b
push edi
push ebx
push esi
call dword [0x10065484]
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1002a802
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x10066aa0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10007d25
push str.ISteamUser::GetEncryptedAppTicket_____Ticket_file_successfully_opened__r_n
call fcn.10002100
add esp, 4
mov dword [esp + 0x20], 0
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10007c03
push str.ISteamUser::GetEncryptedAppTicket_____Unable_to_get_ticket_size__r_n
nop dword [eax + eax]
call fcn.10002100
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1002a802
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x20]
push esi
call fcn.1002ad6f
push esi
mov esi, eax
push 0
push esi
call fcn.1002c2e0
add esp, 0x10
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push 0
push eax
push dword [esp + 0x28]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10007c5a
push str.ISteamUser::GetEncryptedAppTicket_____Unable_to_read_ticket_file__r_n
nop
call fcn.10002100
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1002a815
jmp 0x10007d2f
mov eax, dword ds:[esp + 0x1c]
cmp ebx, eax
jae 0x10007c6b
push str.ISteamUser::GetEncryptedAppTicket_____Ticket_buffer_is_too_small__r_n
jmp 0x10007c3f
push eax
push str.ISteamUser::GetEncryptedAppTicket_____Ticket_file_size______d_r_n
call fcn.10002100
push str.ISteamUser::GetEncryptedAppTicket_____Copying_ticket_to_memory..._r_n
nop dword [eax + eax]
call fcn.10002100
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, ebx
mov eax, edx
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10007c90
mov eax, dword ds:[esp + 0x1c]
test eax, eax
je 0x10007cb3
cmp ebx, eax
jb 0x10007cee
push eax
push esi
push edx
call fcn.1002c4a0
add esp, 0xc
push str.ISteamUser::GetEncryptedAppTicket_____Ticket_successfully_copied_to_memory__r_n
call fcn.10002100
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1002a815
mov ecx, dword [esp + 0x1c]
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1002a802
mov esp, ebp
pop ebp
ret
push ebx
push 0
push edx
call fcn.1002c2e0
add esp, 0xc
cmp ebx, dword [esp + 0x1c]
jae 0x10007d16
call fcn.10034e40
mov dword [eax], 0x22
call fcn.10034706
push str.ISteamUser::GetEncryptedAppTicket_____Failed_to_copy_ticket_to_memory__r_n
nop dword [eax + eax]
jmp 0x10007c3f
push str.ISteamUser::GetEncryptedAppTicket_____Unable_to_open_local_ticket_file__r_n
call fcn.10002100
mov ecx, dword ds:[esp + 0x30]
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002a802
mov esp, ebp
pop ebp
ret