Function at 0x1400d88fc
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
mov byte [rbp - 0x49], r14b
lea r15d, [r14 + 2]
mov word [rbp - 0x37], r15w
mov byte [rbp - 0x39], 1
mov byte [rbp - 0x45], r14b
mov byte [rbp - 0x41], r14b
mov byte [rbp - 0x3d], r14b
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x45]
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x3d]
lea rcx, [rbp - 9]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2306]
lea rax, vtable.Mso::Telemetry::EventName.0
mov qword [rbp - 0x21], rax
lea rax, [0x1401de7b0]
mov qword [rbp - 0x19], rax
lea rax, str.RenameFileToUseUpdatedHash
mov qword [rbp - 0x11], rax
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_162]
nop dword [rax]
nop word [rax + rax]
test rax, rax
je 0x1400d89c0
mov rcx, rax
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1638]
jmp 0x1400d89c7
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_92]
nop
lea rcx, [rbp - 9]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8, rax
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x31]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1998]
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
mov r8, rsi
lea rdx, [rbp + 7]
mov rax, qword [rax + 0x10]
call qword [case.0x140089b1f.8]
cmp byte [rbp + 7], r14b
jne 0x1400d8a38
lea r9, str.Storage::RenameFileToUseUpdatedHashIfNeeded___Failed_to_get_filename_from_model
mov edx, 0x75d
mov ecx, 0x312334c
mov r8d, 0xa
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1254]
mov r8d, 0x312334d
mov edx, 0x80004005
lea rcx, [rbp - 0x31]
call fcn.1400091b0
jmp 0x1400d8bb0
lea rax, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rax, qword [rbp + 0xf]
mov rcx, qword [rbx + 0x10]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400d8a57
mov rdx, qword [rbx]
cmp rcx, qword [rbp + 0x1f]
jne 0x1400d8a9c
test rcx, rcx
je 0x1400d8b42
movzx r8d, word [rdx]
movzx r9d, word [rax]
cmp r8w, r9w
jb 0x1400d8a9c
sub rdx, rax
cmp r8w, r9w
ja 0x1400d8a9c
cmp rcx, 1
je 0x1400d8b42
dec rcx
add rax, r15
movzx r8d, word [rax + rdx]
movzx r9d, word [rax]
cmp r8w, r9w
jae 0x1400d8a7b
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rdx, qword [rbp + 0xf]
cmp qword [rbx + 0x18], 8
jb 0x1400d8ab4
mov rbx, qword [rbx]
mov r8d, 0xb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400d8b6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
mov qword [rbp - 0x21], rax
lea rax, [0x140128940]
mov qword [rbp - 0x19], rax
mov dword [rbp - 0x11], ebx
mov word [rbp - 0xd], r14w
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
lea rax, str.Storage::RenameFileToUseUpdatedHashIfNeeded___Failed_to_rename_the_file
mov qword [rsp + 0x20], rax
mov edx, 0x75d
mov ecx, 0x3123350
mov r8d, 0xa
call fcn.14000ed84
lea rcx, [rbp - 0x31]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1869_1]
mov r8d, ebx
lea rdx, [0x140120328]
mov rcx, rax
call fcn.140013028
mov r8d, 0x3123351
jmp 0x1400d8a25
lea r9, str.Storage::RenameFileToUseUpdatedHashIfNeeded___Current_filename_is_same_as_generated_filename
mov edx, 0x75d
mov ecx, 0x2379b6c1
mov r8d, 0x32
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1254]
xor edx, edx
mov r8d, 0x2379b6c0
jmp 0x1400d8a2a
lea r9, str.Storage::RenameFileToUseUpdatedHashIfNeeded___Sucessfully_changed_file_name
mov edx, 0x75d
mov ecx, 0x3123352
mov r8d, 0x32
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1254]
lea rcx, [rbp - 0x31]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_143]
nop dword [rax]
nop word [rax + rax]
cmp byte [rax], r14b
je 0x1400d8bab
mov byte [rax + 1], 1
jmp 0x1400d8bb0
mov word [rax], 0x101
lea rcx, [rbp + 7]
call fcn.14000d27c
lea rcx, [rbp - 0x31]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_426]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140107ad0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret