Function at 0x140049b10
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 [0x140184aa8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, r8
mov rdi, rdx
mov rsi, 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 rax, [rsi + 0x4908]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x700a0
mov rcx, r14
call fcn.14003a830
test eax, eax
jne 0x140049be6
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
lea rdx, [rbp - 1]
mov rcx, rdi
call sym.HfcDisableService.exe_public:_void___cdecl_CConsolidatedError::constructor_class_CConsolidatedError_const____ptr64____ptr64
jmp 0x140049d25
movsxd rbx, dword [rsi + 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.1400253b0
nop
mov qword [rsp + 0x20], r15
lea r9, [rbp - 9]
mov r8d, ebx
mov rbx, qword [rbp - 0x31]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x140049ca8
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 0x140049d25
mov rax, qword [rbp - 0x21]
sub rax, rbx
cmp rax, 0x1000
jb 0x140049d1c
test bl, 0x1f
je 0x140049c7e
call fcn.1400dddbc
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x140049c8d
call fcn.1400dddbc
int3
sub rbx, rax
cmp rbx, 8
jae 0x140049c9c
call fcn.1400dddbc
int3
cmp rbx, 0x27
jbe 0x140049d19
call fcn.1400dddbc
nop
mov r9, qword [rbp - 0x29]
sub r9, rbx
lea rcx, [rsi + 0x4930]
mov r8, rbx
mov edx, 0x200
call fcn.14003e8d0
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 0x140049d25
mov rax, qword [rbp - 0x21]
sub rax, rbx
cmp rax, 0x1000
jb 0x140049d1c
test bl, 0x1f
je 0x140049cef
call fcn.1400dddbc
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x140049cfe
call fcn.1400dddbc
int3
sub rbx, rax
cmp rbx, 8
jae 0x140049d0d
call fcn.1400dddbc
int3
cmp rbx, 0x27
jbe 0x140049d19
call fcn.1400dddbc
int3
mov rbx, rax
mov rcx, rbx
call fcn.1400b48f8
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.1400b48a0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret