Function at 0x14004ecf0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rsp + 0xf8], rbx
mov rax, qword [0x1401b4808]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, r8
mov rdi, rdx
mov r14, rcx
xor r15d, r15d
mov dword [rbp - 0x19], r15d
xor eax, eax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
lea rcx, [rbp - 1]
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::constructor_void____ptr64
nop
mov dword [rbp - 9], r15d
lea rbx, str.PTe_
mov rcx, qword [str.PTe_]
cmp rcx, rbx
je 0x14004ed8c
test byte [rcx + 0x1c], 0x40
je 0x14004ed8c
cmp byte [rcx + 0x19], 4
jb 0x14004ed8c
lea edx, [r15 + 0x22]
mov r9, rsi
lea r8, [0x14013ed50]
mov rcx, qword [rcx + 0x10]
call fcn.140047b90
lea rax, [r14 + 0x4908]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x700a0
mov rcx, rsi
call fcn.140041020
test eax, eax
jne 0x14004ee35
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp + 7], eax
xor r8d, r8d
mov edx, 0xa0000004
lea rcx, [rbp - 1]
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::SetError_enum_CConsolidatedErrorGenerated::ISDI2_ERRORS__char_const____ptr64____ptr64
lea rdx, str.Could_not_get_cache_info_needed_to_set_flush_info
lea rcx, [rbp - 1]
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::AddDebugInformation_char_const____ptr64____ptr64
mov rcx, qword [str.PTe_]
cmp rcx, rbx
je 0x14004ee24
test byte [rcx + 0x1c], 0x40
je 0x14004ee24
cmp byte [rcx + 0x19], 2
jb 0x14004ee24
mov edx, 0x23
mov r10d, dword [rbp + 7]
mov dword [rsp + 0x20], r10d
mov r9, rsi
lea r8, [0x14013ed50]
mov rcx, qword [rcx + 0x10]
call fcn.140047bf0
lea rdx, [rbp - 1]
mov rcx, rdi
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
jmp 0x14004efa4
mov rcx, qword [str.PTe_]
cmp rcx, rbx
je 0x14004ee65
test byte [rcx + 0x1c], 0x40
je 0x14004ee65
cmp byte [rcx + 0x19], 4
jb 0x14004ee65
mov edx, 0x24
mov r9, rsi
lea r8, [0x14013ed50]
mov rcx, qword [rcx + 0x10]
call fcn.140047b90
movsxd rbx, dword [r14 + 0x491c]
xor eax, eax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov rdx, rbx
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x31]
call fcn.140028bc0
nop
mov qword [rsp + 0x20], r15
lea r9, [rbp - 9]
mov r8d, ebx
mov rbx, qword [rbp - 0x31]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14004ef27
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbp + 7], eax
lea r8, str.Error_while_reading_MBR_record
mov edx, 0x20000001
lea rcx, [rbp - 1]
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::SetError_enum_CConsolidatedErrorGenerated::ISDI2_ERRORS__char_const____ptr64____ptr64
lea rdx, [rbp - 1]
mov rcx, rdi
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
nop
test rbx, rbx
je 0x14004efa4
mov rax, qword [rbp - 0x21]
sub rax, rbx
cmp rax, 0x1000
jb 0x14004ef9b
test bl, 0x1f
je 0x14004eefd
call fcn.1400fb250
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x14004ef0c
call fcn.1400fb250
int3
sub rbx, rax
cmp rbx, 8
jae 0x14004ef1b
call fcn.1400fb250
int3
cmp rbx, 0x27
jbe 0x14004ef98
call fcn.1400fb250
nop
mov r9, qword [rbp - 0x29]
sub r9, rbx
lea rcx, [r14 + 0x4930]
mov r8, rbx
mov edx, 0x200
call fcn.1400678c0
lea rdx, [rbp - 1]
mov rcx, rdi
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
nop
test rbx, rbx
je 0x14004efa4
mov rax, qword [rbp - 0x21]
sub rax, rbx
cmp rax, 0x1000
jb 0x14004ef9b
test bl, 0x1f
je 0x14004ef6e
call fcn.1400fb250
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x14004ef7d
call fcn.1400fb250
int3
sub rbx, rax
cmp rbx, 8
jae 0x14004ef8c
call fcn.1400fb250
int3
cmp rbx, 0x27
jbe 0x14004ef98
call fcn.1400fb250
int3
mov rbx, rax
mov rcx, rbx
call fcn.1400d179c
nop
lea rcx, [rbp - 1]
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::destructor_void____ptr64
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400d1740
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret