Function at 0x140029f20
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1401761c0]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rdi, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov r14, qword [rbp + 0xa0]
xor r15d, r15d
mov dword [rbp - 0x10], 0x32373831
mov dword [rbp - 0xc], 0x44304136
movsd xmm0, qword [str.pkgreader]
movsd qword [rsp + 0x60], xmm0
mov eax, dword [0x140148c38]
mov dword [rsp + 0x68], eax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x6c], rax
mov dword [rsp + 0x74], 0x69
lea rax, str.FileMapping:_loading_mapping_from__...
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x2a
mov r9, rsi
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
call fcn.14002dd80
mov rcx, rdi
call fcn.140029ec0
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140029fe0
mov rcx, qword [rsi]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14002a319
lea rdx, [rbp - 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002a36c
mov rcx, qword [rbp - 0x10]
mov qword [rdi + 0x18], rcx
lea r9, [rbp + 0x4a]
movabs r10, 0xcccccccccccccccd
sub r9, 2
mov rax, r10
mul rcx
shr rdx, 3
movzx eax, dx
shl ax, 2
lea r8d, [rax + rdx]
add r8w, r8w
sub cx, r8w
add cx, 0x30
mov word [r9], cx
mov rcx, rdx
test rdx, rdx
jne 0x14002a040
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rbp + 0x4a]
cmp r9, rax
jne 0x14002a0a1
movdqa xmm0, xmmword [0x140156bb0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r15w
jmp 0x14002a0b9
lea r8, [rbp + 0x4a]
sub r8, r9
sar r8, 1
mov rdx, r9
lea rcx, [rsp + 0x60]
call fcn.14000c360
nop
call fcn.1400a7270
mov rbx, rax
mov qword [rsp + 0x50], rax
call fcn.1400a7270
mov qword [rsp + 0x58], rax
shr rbx, 0x30
mov ecx, 0xfff
and bx, cx
mov ecx, 0x4000
or bx, cx
mov word [rsp + 0x56], bx
and al, 0x3f
or al, 0x80
mov byte [rsp + 0x58], al
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140029b20
nop
mov r8d, 1
lea rdx, [0x140147fd8]
mov rcx, rax
call fcn.14000bdb0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x58]
lea rcx, [rbp - 0x38]
call fcn.14002da30
lea rdx, [rbp - 0x38]
mov rcx, r14
call fcn.140025ba0
lea rcx, [rbp - 0x38]
call fcn.14000c080
nop
lea rcx, [rbp - 0x58]
call fcn.14000c080
nop
lea rcx, [rbp - 0x80]
call fcn.14000c080
nop
lea rcx, [rsp + 0x60]
call fcn.14000c080
mov rcx, qword [r14 + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 6
jb 0x14002a3b7
mov rax, r14
cmp qword [r14 + 0x18], 7
jbe 0x14002a1ad
mov rax, qword [r14]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 6
lea r9, str.Local_
lea rcx, [rbp]
call fcn.14000bae0
nop
lea rax, [rbp]
cmp qword [rbp + 0x18], 7
cmova rax, qword [rbp]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14002a3bd
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14002a2cd
mov dword [rsp + 0x50], 0x32373831
mov dword [rsp + 0x54], 0x44304136
movsd xmm0, qword [str.pkgreader]
movsd qword [rsp + 0x60], xmm0
mov eax, dword [0x140148c38]
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x6c], rax
mov dword [rsp + 0x74], 0x81
lea rax, str.FileMapping:_mapping_loaded_as_
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x23
mov r9, r14
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call fcn.140026bf0
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x1400a96cf.0]
nop
lea rcx, [rbp]
call fcn.14000c080
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400b89f0
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x160
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.FileMapping:_unable_to_map_file__code__
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0x29
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.14002d300
lea rdx, [0x140172368]
lea rcx, [rbp - 0x80]
call fcn.1400bb9a0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.FileMapping:_unable_to_open_file___code__
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0x2f
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9, rsi
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.14002d4e0
lea rdx, [0x140172368]
lea rcx, [rbp - 0x80]
call fcn.1400bb9a0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.FileMapping:_unable_to_get_file_size__code__
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0x2e
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.14002d300
lea rdx, [0x140172368]
lea rcx, [rbp - 0x80]
call fcn.1400bb9a0
int3
call fcn.14000c110
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.FileMapping:_unable_to_create_file_mapping_to___code__
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0x3c
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9, rsi
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rbp - 0x80]
call fcn.14002d4e0
lea rdx, [0x140172368]
lea rcx, [rbp - 0x80]
call fcn.1400bb9a0
int3