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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor r14d, r14d
mov edi, r9d
mov qword [rax - 0x38], r14
mov rbp, r8
mov r12, rdx
mov r15, rcx
test rdx, rdx
jne 0x1400729ce
mov edi, 0x80070057
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov esi, 0x269
mov r8d, edi
mov edx, esi
mov ebx, edi
call fcn.1400012b0
lea rax, str.Invalid_argument_pcbDest
mov r9d, 0x13
mov qword [rsp + 0x28], rax
mov edx, esi
mov dword [rsp + 0x20], edi
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
lea r8d, [r9 - 0xe]
call fcn.1400012b4
jmp 0x140072e72
test r15, r15
jne 0x1400729f9
mov edi, 0x80070057
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov esi, 0x26a
mov r8d, edi
mov edx, esi
mov ebx, edi
call fcn.1400012b0
lea rax, str.Invalid_argument_ppbDest
jmp 0x1400729a8
test rbp, rbp
jne 0x140072a24
mov edi, 0x80070057
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov esi, 0x26b
mov r8d, edi
mov edx, esi
mov ebx, edi
call fcn.1400012b0
lea rax, str.Invalid_argument_wzSrcPath
jmp 0x1400729a8
cmp r14w, word [r8]
jne 0x140072a53
mov edi, 0x80070057
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov esi, 0x26c
mov r8d, edi
mov edx, esi
mov ebx, edi
call fcn.1400012b0
lea rax, str.wzSrcPath_is_null
jmp 0x1400729a8
mov r8d, dword [rsp + 0xc8]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x8000080
mov rcx, rbp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140072b1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add eax, 0xfffffffe
cmp eax, 1
jbe 0x140072b09
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov edi, 0x276
or ebx, 0x80070000
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
test eax, eax
mov edx, edi
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov r8d, ebx
call fcn.1400012b0
mov r9d, 0x13
mov qword [rsp + 0x30], rbp
lea rax, str.Failed_to_open_file:__ls
mov edx, edi
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov dword [rsp + 0x20], ebx
lea r8d, [r9 - 0xe]
call fcn.1400012b4
jmp 0x140072e72
movzx ebx, cx
or ebx, 0x80070000
test ecx, ecx
cmovle ebx, ecx
jmp 0x140072e72
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140072b94
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov edi, 0x27b
or ebx, 0x80070000
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
test eax, eax
mov edx, edi
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov r8d, ebx
call fcn.1400012b0
lea rax, str.Failed_to_get_size_of_file:__ls
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
mov edx, edi
mov dword [rsp + 0x20], ebx
mov r8d, 5
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
lea r9d, [r8 + 0xe]
call fcn.1400012b4
jmp 0x140072e67
test edi, edi
je 0x140072c49
mov esi, dword [rsp + 0xb0]
mov rax, qword [rsp + 0x50]
cmp rsi, rax
jle 0x140072bf2
mov qword [rsp + 0x40], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov qword [rsp + 0x38], rbp
lea rax, str.Start_position__d_bigger_than_file__ls_size__llu
mov r9d, 0x13
mov dword [rsp + 0x30], esi
mov edi, 0x80070057
mov qword [rsp + 0x28], rax
mov edx, 0x283
mov dword [rsp + 0x20], edi
mov ebx, edi
lea r8d, [r9 - 0xe]
call fcn.1400012b4
jmp 0x140072e67
mov r9d, 1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140072c4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140072c4c
mov edi, 0x289
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edx, edi
mov r8d, ebx
call fcn.1400012b0
lea rax, str.Failed_to_seek_position__d
mov dword [rsp + 0x30], esi
jmp 0x140072b6e
mov esi, r14d
cmp dword [rsp + 0xc0], r14d
je 0x140072c81
mov edi, dword [rsp + 0xb8]
mov rcx, qword [r15]
test rcx, rcx
je 0x140072d13
test edi, edi
jne 0x140072cc2
call fcn.140006a48
mov qword [r15], r14
mov qword [r12], r14
mov ebx, r14d
jmp 0x140072e67
mov rax, qword [rsp + 0x50]
mov ecx, esi
mov edi, eax
sub rax, rcx
sub edi, esi
mov ecx, dword [rsp + 0xb8]
cmp rcx, rax
jge 0x140072c5d
mov ebx, 0x8007007a
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov edi, 0x29b
mov r8d, ebx
mov edx, edi
call fcn.1400012b0
lea rax, str.Failed_to_load_file:__ls__too_large.
jmp 0x140072b69
mov r8d, 1
mov edx, edi
mov r13d, edi
call fcn.140006ba0
mov rsi, rax
test rax, rax
jne 0x140072d58
mov edi, 0x8007000e
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov esi, 0x2a9
mov r8d, edi
mov edx, esi
mov ebx, edi
call fcn.1400012b0
lea rax, str.Failed_to_re_allocate_memory_to_read_in_file:__ls
mov qword [rsp + 0x30], rbp
mov edx, esi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
jmp 0x140072b79
test edi, edi
je 0x140072c75
mov edx, 1
mov ecx, edi
mov r13d, edi
call fcn.140006828
mov rsi, rax
test rax, rax
jne 0x140072d58
mov edi, 0x8007000e
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov esi, 0x2b6
mov r8d, edi
mov edx, esi
mov ebx, edi
call fcn.1400012b0
lea rax, str.Failed_to_allocate_memory_to_read_in_file:__ls
jmp 0x140072cfe
and dword [rsp + 0x98], r14d
cmp edi, r14d
jb 0x140072e2a
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x98]
mov r8d, edi
mov edx, r14d
xor ebx, ebx
sub r8d, r14d
and qword [rsp + 0x20], rbx
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140072dc7
mov eax, dword [rsp + 0x98]
add r14d, eax
test eax, eax
jne 0x140072d60
cmp r14d, edi
je 0x140072db9
mov ebx, 0x8000ffff
lea rax, str.Failed_to_completely_read_file:__ls
mov edx, 0x2cc
jmp 0x140072e04
mov qword [r15], rsi
xor esi, esi
mov qword [r12], r13
jmp 0x140072e5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov edi, 0x2c3
or ebx, 0x80070000
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
test eax, eax
mov edx, edi
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov r8d, ebx
call fcn.1400012b0
lea rax, str.Failed_to_read_from_file:__ls
mov edx, edi
mov r8d, 5
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov dword [rsp + 0x20], ebx
lea r9d, [r8 + 0xe]
call fcn.1400012b4
jmp 0x140072e5a
mov r9d, 0x13
lea rax, str.Underflow_calculating_remaining_buffer_size.
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov ebx, 0x80070216
mov edx, 0x2bf
mov dword [rsp + 0x20], ebx
lea r8d, [r9 - 0xe]
call fcn.1400012b4
test rsi, rsi
je 0x140072e67
mov rcx, rsi
call fcn.140006a48
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret