Function at 0x14006a914
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x250
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rdi, rdx
mov r14, rcx
xor r15d, r15d
mov qword [rsp + 0x50], r15
lea r9, [rsp + 0x50]
mov esi, 0x80000000
lea r8d, [r15 + 1]
mov edx, esi
mov rcx, rdi
call fcn.1401e2bcc
mov dword [rsp + 0x58], eax
test eax, eax
jns 0x14006aa31
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x14006aa28
lea rax, str.Failed_to_load_dump_file._Kernel_Integrity_watcher_exit_without_processing_the_dump_files
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], 0x5a
lea rax, [rsp + 0x58]
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], 4
cmp qword [rdi + 0x18], 8
jb 0x14006a9c7
mov rdi, qword [rdi]
lea rax, [0x14030cae0]
mov rbx, r15
test rdi, rdi
je 0x14006a9e7
mov rax, rdi
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], r15w
jne 0x14006a9dd
mov qword [rbp + 0xe0], rax
lea eax, [rbx*2 + 2]
mov dword [rbp + 0xe8], eax
mov dword [rbp + 0xec], r15d
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140394713]
call fcn.140001158
mov ebx, dword [rsp + 0x58]
jmp 0x14006ae18
mov rbx, qword [rsp + 0x50]
lea rax, [rbx + 1]
test rax, 0xfffffffffffffffe
jne 0x14006ab4e
mov dword [rsp + 0x60], 2
mov dword [rsp + 0x30], 0x80
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, esi
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1401e3dd4
mov esi, eax
test eax, eax
je 0x14006ab49
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 3
jbe 0x14006ab36
lea rax, str.Failed_to_load_dump_file._Kernel_Integrity_watcher_exit_without_processing_the_dump_files
mov qword [rbp + 0x110], rax
mov qword [rbp + 0x118], 0x5a
mov dword [rsp + 0x64], esi
lea rax, [rsp + 0x64]
mov qword [rbp + 0x120], rax
mov qword [rbp + 0x128], 4
cmp qword [rdi + 0x18], 8
jb 0x14006aad5
mov rdi, qword [rdi]
lea rax, [0x14030cae0]
mov rbx, r15
test rdi, rdi
je 0x14006aaf5
mov rax, rdi
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], r15w
jne 0x14006aaeb
mov qword [rbp + 0x130], rax
lea eax, [rbx*2 + 2]
mov dword [rbp + 0x138], eax
mov dword [rbp + 0x13c], r15d
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140394748]
call fcn.140001158
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14006ae18
mov rbx, qword [rsp + 0x50]
lea rax, [rbx + 1]
test rax, 0xfffffffffffffffe
jne 0x14006ab64
call fcn.140298678
mov rbx, qword [rsp + 0x50]
mov esi, 0x28
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x40]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor edx, edx
lea r8d, [rsi - 8]
lea rcx, [rbp - 0x60]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rbp - 0x50], 0x38
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
mov r8d, esi
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
je 0x14006abc0
cmp eax, 0x3e5
jne 0x14006ae0a
mov dword [rsp + 0x20], r15d
or r9d, 0xffffffff
lea r8, [rsp + 0x5c]
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResultEx]
test eax, eax
je 0x14006ae04
cmp dword [rsp + 0x5c], esi
jne 0x14006ae04
call fcn.14004acb4
mov r10, qword [rax + 8]
or rbx, 0xffffffffffffffff
cmp dword [r10], 4
jbe 0x14006acd6
lea rax, str.KernelIntegrityWatcher:_get_dump_files_data
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 0x2c
cmp qword [rdi + 0x18], 8
jb 0x14006ac23
mov rdi, qword [rdi]
lea rax, [0x14030cae0]
mov rcx, r15
test rdi, rdi
je 0x14006ac42
mov rax, rdi
mov rcx, rbx
inc rcx
cmp word [rdi + rcx*2], r15w
jne 0x14006ac38
mov qword [rbp + 0x40], rax
lea eax, [rcx*2 + 2]
mov dword [rbp + 0x48], eax
mov dword [rbp + 0x4c], r15d
lea rax, [rbp - 0x40]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], 4
lea rax, [rbp - 0x38]
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], 8
lea rax, [rbp - 0x30]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], 8
lea rax, [rbp - 0x28]
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 8
lea rax, [rbp - 0x20]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], 8
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 9
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403946b5]
mov rcx, r10
call fcn.140001158
cmp dword [rbp - 0x40], 0x109
jne 0x14006adff
mov r8, rsi
xor edx, edx
lea rcx, [rbp - 0x18]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r9d, esi
lea r8, [rbp - 0x18]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
neg eax
sbb rdx, rdx
and rdx, qword [rbp - 8]
lea r8, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.14006a53c
nop
cmp qword [rbp - 0x80], r15
jne 0x14006ad27
call fcn.140298678
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x14006ad3d
lock inc dword [rax + 8]
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x70], xmm0
lea rax, [rsp + 0x70]
mov qword [rbp - 0x68], rax
mov rax, qword [r14 + 0x48]
mov qword [rsp + 0x68], rax
mov rcx, qword [r14 + 0x40]
test rcx, rcx
jne 0x14006ad69
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
mov rax, qword [rax + 0x10]
call qword [str.PM_]
nop
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x14006adc1
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14006adc1
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [str.PM_]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14006adc1
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [str.PM_]
nop
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x14006adff
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14006adff
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [str.PM_]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14006adff
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [str.PM_]
mov ebx, r15d
jmp 0x14006ae18
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x50]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14006ae2d
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1402ae860
mov rbx, qword [rsp + 0x290]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret