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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x1006100c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], ebx
push esi
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x1c], esi
push edi
mov edi, edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x18], edx
test eax, eax
jne 0x10007da9
push str.ISteamAppTicket::GetAppOwnershipTicketExtendedData_____pvBuffer_is_nullptr__r_n
jmp 0x10007f7d
test edi, edi
jne 0x10007db7
push str.ISteamAppTicket::GetAppOwnershipTicketExtendedData_____cbBufferLength_is_0__r_n
jmp 0x10007f7d
test ecx, ecx
jne 0x10007dc5
push str.ISteamAppTicket::GetAppOwnershipTicketExtendedData_____piAppId_is_nullptr__r_n
jmp 0x10007f7d
test edx, edx
jne 0x10007dd3
push str.ISteamAppTicket::GetAppOwnershipTicketExtendedData_____piSteamId_is_nullptr__r_n
jmp 0x10007f7d
test ebx, ebx
jne 0x10007de5
push str.ISteamAppTicket::GetAppOwnershipTicketExtendedData_____piSignature_is_nullptr__r_n
nop dword [eax]
jmp 0x10007f7d
test esi, esi
jne 0x10007df3
push str.ISteamAppTicket::GetAppOwnershipTicketExtendedData_____pcbSignature_is_nullptr__r_n
jmp 0x10007f7d
push edi
push str.ISteamAppTicket::GetAppOwnershipTicketExtendedData_____Buffer_length______u_r_n
call fcn.10002100
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x100647f0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10007f78
push str.ISteamAppTicket::GetAppOwnershipTicketExtendedData_____Ticket_file_successfully_opened__r_n
call fcn.10002100
add esp, 4
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10007e83
push str.ISteamUser::GetAppOwnershipTicketExtendedData_____Unable_to_get_ticket_size__r_n
nop dword [eax + eax]
call fcn.10002100
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1002a802
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x28]
push esi
call fcn.1002ad6f
push esi
mov esi, eax
push 0
push esi
call fcn.1002c2e0
add esp, 0x10
mov dword [esp + 0x24], 0
lea eax, [esp + 0x24]
push 0
push eax
push dword [esp + 0x30]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10007eda
push str.ISteamAppTicket::GetAppOwnershipTicketExtendedData_____Unable_to_read_ticket_file__r_n
nop
call fcn.10002100
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1002a815
jmp 0x10007f85
mov ecx, dword ds:[esp + 0x24]
cmp edi, ecx
jae 0x10007eeb
push str.ISteamAppTicket::GetAppOwnershipTicketExtendedData_____Ticket_buffer_is_too_small__r_n
jmp 0x10007ebf
cmp ecx, 0x30
jae 0x10007ef7
push str.ISteamAppTicket::GetAppOwnershipTicketExtendedData_____Ticket_struct_is_too_big__r_n
jmp 0x10007ebf
mov edx, dword [esp + 0xc]
mov eax, edx
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub edi, 1
jne 0x10007f00
test ecx, ecx
je 0x10007f1a
push ecx
push esi
push edx
call fcn.1002c4a0
add esp, 0xc
push str.ISteamAppTicket::GetAppOwnershipTicketExtendedData_____Ticket_successfully_copied_to_memory__r_n
nop
call fcn.10002100
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1002a815
mov eax, dword [esp + 0x18]
add esp, 4
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov dword [eax], 0x10
mov eax, dword [esp + 0x18]
mov dword [eax], 8
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
mov ecx, eax
sub ecx, dword [edx]
mov edx, dword [esp + 0x20]
mov dword [edx], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1002a802
mov esp, ebp
pop ebp
ret
push str.ISteamAppTicket::GetAppOwnershipTicketExtendedData_____Unable_to_open_local_ticket_file__r_n
nop dword [eax]
call fcn.10002100
mov ecx, dword [esp + 0x38]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002a802
mov esp, ebp
pop ebp
ret