Function at 0x1400016d0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r12, rcx
xor r13d, r13d
mov dword [rsp + 0x58], r13d
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
mov rbx, r12
cmp qword [r12 + 0x18], 0xf
jbe 0x140001733
mov rbx, qword [r12]
lea rax, [0x140009b98]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x58], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x70], rax
mov byte [rbp + 0xc], 0
mov byte [rbp + 1], 0
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x10], r13
mov rax, qword [0x14000eab8]
mov qword [rbp + 4], rax
mov qword [rbp - 8], r13
mov r8d, 0x21
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140004f20
test rax, rax
jne 0x1400017fb
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x7c], edx
cmp qword [rbp + 0x10], 0
jne 0x140001872
lea rdx, str.____Failed_to_open_dump_file:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140005510
mov r8, qword [r12 + 0x10]
cmp qword [r12 + 0x18], 0xf
jbe 0x14000184c
mov r12, qword [r12]
mov rdx, r12
mov rcx, rax
call fcn.140006b50
lea rdx, [0x1400096d4]
mov rcx, rax
call fcn.140005510
lea rbx, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
jmp 0x140001e3f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x40], r13
mov word [rsp + 0x48], 1
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx - 0x38]
mov qword [rsp + 0x30], rax
test rax, rax
sete byte [rsp + 0x38]
mov byte [rsp + 0x39], 0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x50], rcx
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm1
movzx esi, byte [rsp + 0x39]
mov rbx, qword [rsp + 0x30]
movzx r15d, byte [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
test rax, rax
jne 0x1400018f9
movzx r14d, byte [rsp + 0x38]
jmp 0x140001917
test rbx, rbx
je 0x140001911
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140001911
movzx esi, al
jmp 0x140001914
mov rbx, r13
mov r14b, 1
test r15b, r15b
jne 0x140001935
test rdi, rdi
je 0x14000192f
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
jne 0x140001932
mov rdi, r13
mov r15b, 1
test rbx, rbx
jne 0x140001b14
test rdi, rdi
jne 0x140001b1d
lea rcx, [rbp - 0x70]
call fcn.140004e60
test rax, rax
jne 0x140001972
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov word [rsp + 0x58], 0x5a4d
mov r8, qword [rsp + 0x68]
mov rbx, r8
mov rax, r8
mov rcx, qword [rsp + 0x60]
sub rax, rcx
cmp rax, 2
jl 0x1400019b0
lea rdx, [r8 - 2]
movzx eax, word [rsp + 0x58]
cmp ax, word [rcx]
je 0x1400019ad
cmp rcx, rdx
je 0x1400019b0
inc rcx
cmp ax, word [rcx]
jne 0x1400019a0
mov rbx, rcx
mov rdi, qword [r12 + 0x18]
cmp rbx, r8
je 0x140001d18
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
mov rdx, r12
cmp rdi, 0xf
jbe 0x1400019df
mov rdx, qword [r12]
mov r8d, 0x30
lea rcx, [rbp + 0x90]
call fcn.140003d10
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x90], rdi
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x8c], edx
cmp qword [rbp + 0x118], 0
jne 0x140001b91
lea rdx, str.____Failed_to_open_dump_file_for_writing:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140005510
mov r8, qword [r12 + 0x10]
cmp qword [r12 + 0x18], 0xf
jbe 0x140001a55
mov r12, qword [r12]
mov rdx, r12
mov rcx, rax
call fcn.140006b50
lea rdx, [0x1400096d4]
mov rcx, rax
call fcn.140005510
nop
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x90], rdi
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x8c], edx
lea rbx, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x98], rbx
cmp qword [rbp + 0x118], 0
je 0x140001aec
lea rcx, [rbp + 0x108]
mov rax, qword [rbp + 0xb0]
cmp qword [rax], rcx
jne 0x140001aec
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
mov qword [rax], rcx
mov rax, qword [rbp + 0xd0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0xe8]
mov dword [rax], edx
cmp byte [rbp + 0x114], 0
je 0x140001b01
lea rcx, [rbp + 0x98]
call fcn.140004e60
lea rcx, [rbp + 0x98]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
jmp 0x140001cf9
test rdi, rdi
jne 0x140001947
test r14b, r14b
jne 0x140001b3d
test rbx, rbx
je 0x140001b3a
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x140001b3a
movzx esi, al
jmp 0x140001b3d
mov rbx, r13
mov byte [rsp + 0x58], sil
mov rax, qword [rsp + 0x68]
cmp rax, qword [rsp + 0x70]
je 0x140001b58
mov byte [rax], sil
inc qword [rsp + 0x68]
jmp 0x140001b6c
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x60]
call fcn.140007020
test rbx, rbx
je 0x140001911
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sbumpc_void____ptr64]
cmp eax, 0xffffffff
je 0x140001911
mov byte [rsp + 0x38], 0
jmp 0x1400018f9
mov r8, qword [rsp + 0x68]
sub r8, rbx
mov rdx, rbx
lea rcx, [rbp + 0x90]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp + 0x98]
call fcn.140004e60
test rax, rax
jne 0x140001bdd
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x90]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp rax, 0xffffffffffffffff
je 0x140001bfc
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str._DIWNESS__Processed_dump_file:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005510
mov r8, qword [r12 + 0x10]
cmp qword [r12 + 0x18], 0xf
jbe 0x140001c20
mov r12, qword [r12]
mov rdx, r12
mov rcx, rax
call fcn.140006b50
lea rdx, [0x1400096d4]
mov rcx, rax
call fcn.140005510
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp rax, 0xffffffffffffffff
je 0x140001c5a
mov edx, 0xf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
nop
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x90], rdi
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x8c], edx
lea rbx, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x98], rbx
cmp qword [rbp + 0x118], 0
je 0x140001cd6
lea rcx, [rbp + 0x108]
mov rax, qword [rbp + 0xb0]
cmp qword [rax], rcx
jne 0x140001cd6
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
mov qword [rax], rcx
mov rax, qword [rbp + 0xd0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0xe8]
mov dword [rax], edx
cmp byte [rbp + 0x114], 0
je 0x140001ceb
lea rcx, [rbp + 0x98]
call fcn.140004e60
lea rcx, [rbp + 0x98]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x138]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x140001df2
mov rcx, r12
cmp rdi, 0xf
jbe 0x140001d25
mov rcx, qword [r12]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
jne 0x140001dad
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp rax, 0xffffffffffffffff
je 0x140001d4e
mov edx, 0xc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str._DIWNESS__MZ_header_not_found._Deleted_dump_file:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005510
mov r8, qword [r12 + 0x10]
cmp qword [r12 + 0x18], 0xf
jbe 0x140001d72
mov r12, qword [r12]
mov rdx, r12
mov rcx, rax
call fcn.140006b50
lea rdx, [0x1400096d4]
mov rcx, rax
call fcn.140005510
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp rax, 0xffffffffffffffff
je 0x140001deb
mov edx, 0xf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
jmp 0x140001deb
lea rdx, str.____Failed_to_delete_dump_file:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140005510
mov r8, qword [r12 + 0x10]
cmp qword [r12 + 0x18], 0xf
jbe 0x140001dd1
mov r12, qword [r12]
mov rdx, r12
mov rcx, rax
call fcn.140006b50
lea rdx, [0x1400096d4]
mov rcx, rax
call fcn.140005510
lea rbx, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140001e3f
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e2c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e2c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400072ac
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x7c], edx
mov qword [rbp - 0x70], rbx
cmp qword [rbp + 0x10], 0
je 0x140001e97
lea rcx, [rbp]
mov rax, qword [rbp - 0x58]
cmp qword [rax], rcx
jne 0x140001e97
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x18]
mov qword [rax], rcx
mov rax, qword [rbp - 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x20]
mov dword [rax], edx
cmp byte [rbp + 0xc], 0
je 0x140001ea6
lea rcx, [rbp - 0x70]
call fcn.140004e60
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140007250
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret