Function at 0x1400a6d20
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rbx, rcx
xor esi, esi
lea r15d, [rsi + 1]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea r9, str._Starting_Log_Purge_
xor edx, edx
lea r8d, [rsi - 1]
mov rcx, rbx
call fcn.1400a5ff0
cmp qword [rbx + 0xc8], rsi
jne 0x1400a6db2
xor edx, edx
mov rcx, rbx
call fcn.1400a6b40
test eax, eax
jne 0x1400a6db2
mov rax, qword [rbx + 0xb8]
mov qword [rsp + 0x20], rax
lea r9, str._Log::PurgeLog__Log_not_open__open_to_re_open____s_
mov edx, r15d
lea r8d, [rsi - 1]
mov rcx, rbx
call fcn.1400a5ff0
nop
lea rcx, [rsp + 0xb0]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
xor eax, eax
jmp 0x1400a6fd6
lea rdx, [rbx + 0x80]
mov r8d, 1
lea rcx, [rsp + 0x50]
call sub.mfc140u.dll_CRibbonCategoryScroll::CRibbonCategoryScroll
nop
mov rax, qword [0x1401776e0]
mov r14d, dword [rax + 0x380]
shl r14d, 0xa
mov dword [rsp + 0x30], r14d
mov edx, 0x4010
lea rcx, [rsp + 0xb0]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov rdi, rax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rbx + 0xc8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rbx + 0xc8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov r12d, eax
mov dword [rsp + 0x34], eax
cmp eax, r14d
jle 0x1400a6f19
mov r8d, 0x40
lea rdx, str.w_ccsUTF_8
mov rcx, qword [rbx + 0xc0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfsopen]
mov rsi, rax
mov edx, r14d
neg edx
mov r8d, 2
mov rcx, qword [rbx + 0xc8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r8, qword [rbx + 0xc8]
mov edx, 0x4000
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
mov r8, qword [rbx + 0xc8]
mov edx, 0x4000
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
test rax, rax
je 0x1400a6e99
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
jmp 0x1400a6e71
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rbx + 0xc8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rbx + 0xb8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, 1
mov rdx, qword [rbx + 0xb8]
mov rcx, qword [rbx + 0xc0]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov r8d, 0x40
lea rdx, str.a_ccsUTF_8
mov rcx, qword [rbx + 0xb8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfsopen]
mov qword [rbx + 0xc8], rax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rbx + 0xc8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x50]
call sub.mfc140u.dll_CUserTool::SetToolIcon
nop
mov r8d, 0xffffffff
mov rcx, rbx
test esi, esi
je 0x1400a6f4a
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r12d
lea r9, str._Log_purged_from__ld_to__ld_bytes_
xor edx, edx
call fcn.1400a5ff0
jmp 0x1400a6f8a
mov dword [rsp + 0x20], r14d
lea r9, str.Log_Purge_not_needed__log_size____ld_
mov edx, 3
call fcn.1400a5ff0
jmp 0x1400a6f8a
cmp qword [rbx + 0xc8], 0
jne 0x1400a6fc5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [rbx + 0xb8]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rax]
mov dword [rsp + 0x20], ecx
lea r9, str._Error___d__opening_log_after_Purge____s_
mov edx, 1
lea r8d, [rdx - 2]
mov rcx, rbx
call fcn.1400a5ff0
nop
lea rcx, [rsp + 0xb0]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, r15d
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret