Function at 0x140065cb0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rbp + 8], rax
mov rsi, qword [rbp + 0x20]
mov qword [rbp - 0x40], rsi
mov edx, 3
lea ecx, [rdx + 3]
call fcn.140039f40
test al, al
je 0x140065ffc
lea rcx, [rsi + 0x18]
cmp qword [rsi + 0x30], 7
jbe 0x140065d0b
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140065d1e
test al, 0x10
jne 0x140065d1e
mov al, 1
jmp 0x140065d20
xor al, al
test al, al
je 0x140065eb2
lea rcx, [rsi + 0x18]
cmp qword [rsi + 0x30], 7
jbe 0x140065d37
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x28]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x20]
call fcn.140057780
nop
mov ebx, 4
mov rax, qword gs:[0x58]
add rbx, qword [rax]
mov eax, dword [rbx]
cmp dword [0x14032993c], eax
jle 0x140065da4
lea rcx, [0x14032993c]
call fcn.14019b210
cmp dword [0x14032993c], 0xffffffff
jne 0x140065da4
call fcn.1401984c0
mov qword [0x140329940], rax
lea rcx, [0x14032993c]
call fcn.14019b1a0
lea rax, [0x140242730]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 3
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rax, qword [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
mov r9, qword [0x140329940]
mov r8, 0xffffffffffffffff
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400413a0
test eax, eax
je 0x140065ea9
mov eax, dword [rbx]
cmp dword [0x14032993c], eax
jle 0x140065e42
lea rcx, [0x14032993c]
call fcn.14019b210
cmp dword [0x14032993c], 0xffffffff
jne 0x140065e42
call fcn.1401984c0
mov qword [0x140329940], rax
lea rcx, [0x14032993c]
call fcn.14019b1a0
lea rax, str.mdmp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 4
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rax, qword [rbp - 0x20]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movaps xmm1, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm1
mov r9, qword [0x140329940]
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.1400413a0
test eax, eax
jne 0x140066022
lea rcx, [rbp - 0x20]
call fcn.14002adf0
lea rcx, [rsi + 0x18]
cmp qword [rcx + 0x18], 7
jbe 0x140065ec0
mov rcx, qword [rcx]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xa0000000
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rbp - 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x140066061
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rdi
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x50], xmm1
mov qword [rbp - 0x58], rax
xor edx, edx
lea ecx, [rdi + 0xa]
call fcn.140039f40
test al, al
mov eax, dword [rbp - 0x48]
je 0x140065f30
or eax, 1
mov dword [rbp - 0x48], eax
cmp dword [rsi], 2
jne 0x140065f3b
or eax, 4
mov dword [rbp - 0x48], eax
lea rax, [rbp]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8d, [r9 + 0x40]
lea rdx, [rbp - 0x80]
lea ecx, [r9 + 0x25]
call qword [sym.imp.ntdll.dll_NtSystemDebugControl]
mov edi, eax
mov dword [rsp + 0x50], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x30], 0xffffffffffffffff
test edi, edi
js 0x140065faf
lea rcx, [rsi + 0x38]
call fcn.14002adf0
lea rcx, [rsi + 0x18]
call fcn.14002adf0
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.14019acb0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rcx, [rsi + 0x18]
call fcn.140024520
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, str.NtSystemDebugControl_failed__status:_:010x
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x2d
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140066c90
lea rdx, [0x1402b9f88]
lea rcx, [rsp + 0x58]
call fcn.14019cd80
nop
lea r8, str.Windows_8.1_or_later_is_required_for_live_kernel_dumping
mov edx, 9
lea rcx, [rbp - 0x20]
call fcn.14002d030
lea rdx, [0x1402b9f88]
lea rcx, [rbp - 0x20]
call fcn.14019cd80
nop
lea rax, str.Dump_file__already_exists
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x1b
lea r9, [rsi + 0x18]
lea r8, [rsp + 0x40]
mov edx, 5
lea rcx, [rsp + 0x58]
call fcn.140031570
lea rdx, [0x1402b9f88]
lea rcx, [rsp + 0x58]
call fcn.14019cd80
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
lea rax, str.Dump_file__could_not_be_created__error_code:_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x33
lea r9, [rsi + 0x18]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140066b80
lea rdx, [0x1402b9f88]
lea rcx, [rsp + 0x58]
call fcn.14019cd80
int3