Function at 0x140085320
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 [0x1401ff978]
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, [0x1402005b8]
mov rcx, qword [0x1402005b8]
cmp rcx, rbx
je 0x1400853bc
test byte [rcx + 0x1c], 0x40
je 0x1400853bc
cmp byte [rcx + 0x19], 4
jb 0x1400853bc
lea edx, [r15 + 0x22]
mov r9, rsi
lea r8, [0x14017a4d0]
mov rcx, qword [rcx + 0x10]
call fcn.140069510
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.140084350
test eax, eax
jne 0x140085465
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 [0x1402005b8]
cmp rcx, rbx
je 0x140085454
test byte [rcx + 0x1c], 0x40
je 0x140085454
cmp byte [rcx + 0x19], 2
jb 0x140085454
mov edx, 0x23
mov r10d, dword [rbp + 7]
mov dword [rsp + 0x20], r10d
mov r9, rsi
lea r8, [0x14017a4d0]
mov rcx, qword [rcx + 0x10]
call fcn.140087690
lea rdx, [rbp - 1]
mov rcx, rdi
call sym.RstMwService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
jmp 0x1400855d4
mov rcx, qword [0x1402005b8]
cmp rcx, rbx
je 0x140085495
test byte [rcx + 0x1c], 0x40
je 0x140085495
cmp byte [rcx + 0x19], 4
jb 0x140085495
mov edx, 0x24
mov r9, rsi
lea r8, [0x14017a4d0]
mov rcx, qword [rcx + 0x10]
call fcn.140069510
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.14001ebc0
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 0x140085557
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 0x1400855d4
mov rax, qword [rbp - 0x21]
sub rax, rbx
cmp rax, 0x1000
jb 0x1400855cb
test bl, 0x1f
je 0x14008552d
call fcn.1401221c0
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x14008553c
call fcn.1401221c0
int3
sub rbx, rax
cmp rbx, 8
jae 0x14008554b
call fcn.1401221c0
int3
cmp rbx, 0x27
jbe 0x1400855c8
call fcn.1401221c0
nop
mov r9, qword [rbp - 0x29]
sub r9, rbx
lea rcx, [r14 + 0x4930]
mov r8, rbx
mov edx, 0x200
call fcn.1400c4160
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 0x1400855d4
mov rax, qword [rbp - 0x21]
sub rax, rbx
cmp rax, 0x1000
jb 0x1400855cb
test bl, 0x1f
je 0x14008559e
call fcn.1401221c0
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x1400855ad
call fcn.1401221c0
int3
sub rbx, rax
cmp rbx, 8
jae 0x1400855bc
call fcn.1401221c0
int3
cmp rbx, 0x27
jbe 0x1400855c8
call fcn.1401221c0
int3
mov rbx, rax
mov rcx, rbx
call fcn.1400f87e0
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.1400f84a0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret