Function at 0x140001000
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rdx
cmp ecx, 5
je 0x140001051
lea rdx, str.Incorrect_number_of_parameters_passed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400012d0
mov eax, 1
jmp 0x1400012aa
mov rdx, qword [rdx + 0x20]
mov qword [rsp + 0x40], 0xf
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov byte [rsp + 0x28], bl
cmp byte [rdx], bl
jne 0x140001072
mov r8d, ebx
jmp 0x14000107f
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], bl
jne 0x140001076
lea rcx, [rsp + 0x28]
call fcn.140001c90
nop
mov rdx, qword [rdi + 8]
movzx eax, byte [rdx]
cmp al, byte [0x140004380]
jne 0x1400011d8
movzx eax, byte [rdx + 1]
cmp al, byte [0x140004381]
jne 0x1400011d8
movzx eax, byte [rdx + 2]
cmp al, byte [0x140004382]
jne 0x1400011d8
mov rcx, qword [rdi + 0x10]
lea r8, str.true
nop dword [rax + rax]
movzx eax, byte [rcx + rbx]
inc rbx
cmp al, byte [r8 + rbx - 1]
jne 0x1400011d8
cmp rbx, 5
jne 0x1400010d0
mov rcx, qword [rdi + 0x18]
movzx eax, byte [rcx]
cmp al, byte [0x140004384]
jne 0x1400011d8
movzx eax, byte [rcx + 1]
cmp al, byte [0x140004385]
jne 0x1400011d8
movzx eax, byte [rcx + 2]
cmp al, byte [0x140004386]
jne 0x1400011d8
lea r8, str.Lightroom_Classic_CC_7_Preferences.agprefs
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.1400014a0
nop
lea r8, str.Lightroom_Classic_CC_7_Startup_Preferences.agprefs
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x70]
call fcn.1400014a0
nop
lea rbx, [rsp + 0x50]
mov edi, 2
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400012d0
mov rcx, rax
lea rdx, [0x1400043ec]
call fcn.1400012d0
cmp qword [rbx + 0x18], 0x10
jb 0x14000118b
mov rcx, qword [rbx]
jmp 0x14000118e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
je 0x1400011a7
lea rcx, str.Error_deleting_file
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x1400011b4
lea rcx, str.File_successfully_deleted
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add rbx, 0x20
sub rdi, 1
jne 0x140001153
lea r9, [fcn.140001e70]
lea edx, [rdi + 0x20]
lea r8d, [rdi + 2]
lea rcx, [rsp + 0x50]
call fcn.140001f78
jmp 0x14000124c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400012d0
mov rcx, rax
lea rdx, [0x1400043ec]
call fcn.1400012d0
mov rcx, rax
mov rdx, qword [rdi + 0x10]
call fcn.1400012d0
mov rcx, rax
lea rdx, [0x1400043ec]
call fcn.1400012d0
mov rcx, rax
mov rdx, qword [rdi + 0x18]
call fcn.1400012d0
mov rcx, rax
lea rdx, [0x1400043ec]
call fcn.1400012d0
lea rdx, str.Nothing_to_do_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400012d0
mov rcx, rax
lea rdx, [0x1400043ec]
call fcn.1400012d0
nop
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
jb 0x1400012a8
inc rax
mov rcx, qword [rsp + 0x28]
cmp rax, 0x1000
jb 0x1400012a3
test cl, 0x1f
je 0x140001273
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140001283
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140001293
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1400012a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140001f34
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140001f10
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret