Function at 0x140089c60
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 [0x1401eb978]
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.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_void____ptr64
nop
mov dword [rbp - 9], r15d
lea rbx, [0x1401ec598]
mov rcx, qword [0x1401ec598]
cmp rcx, rbx
je 0x140089cfc
test byte [rcx + 0x1c], 0x40
je 0x140089cfc
cmp byte [rcx + 0x19], 4
jb 0x140089cfc
lea edx, [r15 + 0x22]
mov r9, rsi
lea r8, [0x14016dc48]
mov rcx, qword [rcx + 0x10]
call fcn.140035290
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.140088ce0
test eax, eax
jne 0x140089da5
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.RstMwService.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.RstMwService.exe_public:_void___cdecl_CConsolidatedError::AddDebugInformation_char_const____ptr64____ptr64
mov rcx, qword [0x1401ec598]
cmp rcx, rbx
je 0x140089d94
test byte [rcx + 0x1c], 0x40
je 0x140089d94
cmp byte [rcx + 0x19], 2
jb 0x140089d94
mov edx, 0x23
mov r10d, dword [rbp + 7]
mov dword [rsp + 0x20], r10d
mov r9, rsi
lea r8, [0x14016dc48]
mov rcx, qword [rcx + 0x10]
call fcn.14002d9d0
lea rdx, [rbp - 1]
mov rcx, rdi
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
jmp 0x140089f14
mov rcx, qword [0x1401ec598]
cmp rcx, rbx
je 0x140089dd5
test byte [rcx + 0x1c], 0x40
je 0x140089dd5
cmp byte [rcx + 0x19], 4
jb 0x140089dd5
mov edx, 0x24
mov r9, rsi
lea r8, [0x14016dc48]
mov rcx, qword [rcx + 0x10]
call fcn.140035290
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.14001ab90
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 0x140089e97
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.RstMwService.exe_public:_void___cdecl_CConsolidatedError::SetError_enum_CConsolidatedErrorGenerated::ISDI2_ERRORS__char_const____ptr64____ptr64
lea rdx, [rbp - 1]
mov rcx, rdi
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
nop
test rbx, rbx
je 0x140089f14
mov rax, qword [rbp - 0x21]
sub rax, rbx
cmp rax, 0x1000
jb 0x140089f0b
test bl, 0x1f
je 0x140089e6d
call fcn.140117528
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x140089e7c
call fcn.140117528
int3
sub rbx, rax
cmp rbx, 8
jae 0x140089e8b
call fcn.140117528
int3
cmp rbx, 0x27
jbe 0x140089f08
call fcn.140117528
nop
mov r9, qword [rbp - 0x29]
sub r9, rbx
lea rcx, [r14 + 0x4930]
mov r8, rbx
mov edx, 0x200
call fcn.1400c8130
lea rdx, [rbp - 1]
mov rcx, rdi
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
nop
test rbx, rbx
je 0x140089f14
mov rax, qword [rbp - 0x21]
sub rax, rbx
cmp rax, 0x1000
jb 0x140089f0b
test bl, 0x1f
je 0x140089ede
call fcn.140117528
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x140089eed
call fcn.140117528
int3
sub rbx, rax
cmp rbx, 8
jae 0x140089efc
call fcn.140117528
int3
cmp rbx, 0x27
jbe 0x140089f08
call fcn.140117528
int3
mov rbx, rax
mov rcx, rbx
call fcn.1400ee134
nop
lea rcx, [rbp - 1]
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::destructor_void____ptr64
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400ede70
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret