Function at 0x140041ef0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14017b278]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r12, rcx
xor r13d, r13d
mov r15d, r13d
mov qword [rbp + 0x17], r13
lea ebx, [r13 + 7]
mov qword [rbp + 0x1f], rbx
mov word [rbp + 7], r13w
lea rcx, [rbp - 0x59]
call fcn.140035434
nop
cmp byte [rbp - 0x59], r13b
je 0x14004201d
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp - 0x19], r13
mov qword [rbp - 0x11], rbx
mov word [rbp - 0x29], r13w
lea r8d, [r13 + 0x24]
lea rdx, [0x140146f90]
lea rcx, [rbp - 0x29]
call fcn.140026610
nop
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.140044590
nop
lea rcx, [rbp - 0x29]
call fcn.14001e8a0
lea edi, [rbx - 1]
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x140041faa
mov rax, qword [rcx]
lea rdx, [rbp + 7]
call qword [rax + 0x60]
test al, al
je 0x140041faa
mov r14d, r13d
jmp 0x140041fe2
mov ecx, edi
call fcn.1400756d0
test eax, eax
je 0x140041fdc
lea rax, str.Failed_to_get_path_to_executable
mov qword [rsp + 0x20], rax
mov r9d, 0x3b
lea r8, str._anonymous_namespace::GetNextGenMessagingInstallDir
lea rdx, str.E:BT8991f292_e1db_4262_9576_b4cf026c9a56UBF_1WssNgmAmbassador_srcWssNgmAmbassadorLibPerformUpdate.cpp
mov ecx, edi
call fcn.14001fc90
mov r14d, 0x321
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x140042058
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140042058
mov rbx, qword [rbp - 1]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140042058
mov rcx, qword [rbp - 1]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140042058
mov edi, 6
mov ecx, edi
call fcn.1400756d0
test eax, eax
je 0x140042052
lea rax, str.autoCOMController.IsInitialized___failed.
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 0x3b]
lea r8, str._anonymous_namespace::GetNextGenMessagingInstallDir
lea rdx, str.E:BT8991f292_e1db_4262_9576_b4cf026c9a56UBF_1WssNgmAmbassador_srcWssNgmAmbassadorLibPerformUpdate.cpp
mov ecx, edi
call fcn.14001fc90
mov r14d, 0x258
call qword [sym.imp.ole32.dll_CoUninitialize]
test r14d, r14d
jne 0x14004219d
mov rbx, qword [r12]
mov r14, qword [r12 + 8]
cmp rbx, r14
je 0x1400421d5
mov r12d, 1
lea r8, [0x1401444a4]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x49]
call fcn.140020f90
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.140020770
nop
lea rcx, [rbp - 0x49]
call fcn.14001e8a0
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rcx, qword [rbp - 0x29]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140042120
mov ecx, r12d
call fcn.1400756d0
test eax, eax
je 0x140042185
lea rax, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rax, qword [rbp - 0x29]
mov qword [rbp - 0x51], rax
lea rax, [rbp - 0x51]
mov qword [rsp + 0x28], rax
lea rax, str.File__s_will_be_removed_on_reboot
mov qword [rsp + 0x20], rax
mov r9d, 0x5d
lea r8, str._anonymous_namespace::RemoveLegacyMsgSDKFiles
lea rdx, str.E:BT8991f292_e1db_4262_9576_b4cf026c9a56UBF_1WssNgmAmbassador_srcWssNgmAmbassadorLibPerformUpdate.cpp
mov ecx, r12d
call fcn.14001fc20
jmp 0x140042185
mov ecx, edi
call fcn.1400756d0
test eax, eax
je 0x14004217f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x51], eax
lea rax, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rax, qword [rbp - 0x29]
mov qword [rbp - 9], rax
lea rax, [rbp - 0x51]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea rax, str.Failed_to_remoce_file__s._Error_is__d
mov qword [rsp + 0x20], rax
mov r9d, 0x60
lea r8, str._anonymous_namespace::RemoveLegacyMsgSDKFiles
lea rdx, str.E:BT8991f292_e1db_4262_9576_b4cf026c9a56UBF_1WssNgmAmbassador_srcWssNgmAmbassadorLibPerformUpdate.cpp
mov ecx, edi
call fcn.14001fba0
mov r15d, 0x5dc
lea rcx, [rbp - 0x29]
call fcn.14001e8a0
add rbx, 0x20
cmp rbx, r14
jne 0x14004207f
jmp 0x1400421d5
mov ecx, edi
call fcn.1400756d0
test eax, eax
je 0x1400421cf
lea rax, str.Failed_to_find_msgsdk_path.
mov qword [rsp + 0x20], rax
mov r9d, 0x66
lea r8, str._anonymous_namespace::RemoveLegacyMsgSDKFiles
lea rdx, str.E:BT8991f292_e1db_4262_9576_b4cf026c9a56UBF_1WssNgmAmbassador_srcWssNgmAmbassadorLibPerformUpdate.cpp
mov ecx, edi
call fcn.14001fc90
mov r15d, 0x321
lea rcx, [rbp + 7]
call fcn.14001e8a0
mov eax, r15d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140086e90
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret