Function at 0x1400693c0
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rcx
lea rdx, str.Service_Update_finalizer..
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rbx, rax
mov rdx, qword [rax]
movsxd rcx, dword [rdx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
mov rcx, qword [rdi]
cmp byte [rcx + 0xb], 0
je 0x140069458
mov byte [rcx + 5], 1
mov rax, qword [rdi]
mov byte [rax + 4], 1
mov rax, qword [rdi]
mov byte [rax + 8], 1
mov rax, qword [rdi]
mov byte [rax + 3], 1
mov rax, qword [rdi]
mov byte [rax], 0
mov rcx, qword [rdi]
call fcn.140059f60
mov rax, qword [rdi + 8]
cmp byte [rax], 0
jne 0x140069474
mov rax, qword [rdi + 0x10]
cmp byte [rax], 0
je 0x140069474
mov sil, 1
jmp 0x140069477
xor sil, sil
mov rax, qword [rdi + 0x18]
xor r14d, r14d
cmp byte [rax], r14b
je 0x140069551
test sil, sil
jne 0x140069551
mov rdx, qword [rdi + 0x20]
lea rcx, [rbp - 1]
call fcn.14007ed70
mov rbx, rax
lea rdx, str.Rolling_back_files_using_LKG_folder
lea rcx, [0x14047aa00]
call fcn.140036d30
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400694c1
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400421f0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
nop
lea rcx, [rbp - 1]
call fcn.14000bc00
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x1403e1a30]
movdqu xmmword [rbp - 0x39], xmm1
mov word [rbp - 0x49], r14w
mov r8d, 3
lea rdx, [0x1403bb870]
lea rcx, [rbp - 0x49]
call fcn.14000d3a0
nop
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
mov r8b, 1
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rdi + 0x20]
call fcn.140079040
nop
lea rcx, [rbp - 0x49]
call fcn.14000c340
mov rax, qword [rdi + 0x30]
cmp byte [rax], 0
je 0x1400696b0
lea rdx, str.Simulating_service_start_failure_by_renaming_MBAMService.exe_file.
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x1403e1a30]
movdqu xmmword [rbp - 0x39], xmm1
mov word [rbp - 0x49], r14w
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.MBAMService.exe
lea rcx, [rbp - 0x49]
call fcn.14000d3a0
nop
lea r8, [rbp - 0x49]
mov rdx, qword [rdi + 0x28]
lea rcx, [rbp - 1]
call fcn.140082ed0
nop
lea rcx, [rbp - 0x49]
call fcn.14000c340
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
movdqa xmm1, xmmword [0x1403e1a30]
movdqu xmmword [rbp - 0x19], xmm1
mov word [rbp - 0x29], r14w
mov r8d, sendto
lea rdx, str.MBAMServicetmp.exe
lea rcx, [rbp - 0x29]
call fcn.14000d3a0
nop
lea r8, [rbp - 0x29]
mov rdx, qword [rdi + 0x28]
lea rcx, [rbp + 0x1f]
call fcn.140082ed0
nop
lea rcx, [rbp - 0x29]
call fcn.14000c340
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 8
cmovae rdx, qword [rbp + 0x1f]
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 8
cmovae rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, eax
test eax, eax
je 0x14006969d
lea rdx, str.Could_not_move_MBAMService.exe_file_to_simulate_failure_case._Res
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rcx, rax
mov edx, ebx
call fcn.1400283a0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
nop
lea rcx, [rbp + 0x1f]
call fcn.14000c340
nop
lea rcx, [rbp - 1]
call fcn.14000c340
test sil, sil
jne 0x1400698b6
mov rax, qword [rdi + 0x38]
cmp byte [rax], sil
jne 0x140069776
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
mov rax, qword [rcx]
call qword [rax + 0x98]
test al, al
jne 0x140069714
lea rdx, str.Failed_to_re_register_service_after_update__new_interfaces_may_not_be_available_for_use._Still_proceeding_with_service_startup_to_keep_system_protected
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rdi]
cmp byte [rax + 0xa], 0
jne 0x140069776
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
mov rax, qword [rcx]
call qword [rax + 0xa0]
test al, al
jne 0x140069776
lea rdx, str.Failed_to_set_ELAM_protected_launch_mode._Proceeding.
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
mov rax, qword [rdi + 0x40]
mov rbx, qword [rax]
mov rdx, qword [rdi + 0x48]
lea rcx, [rbp - 1]
call fcn.14007f000
nop
mov r10, qword [rbx]
mov rdx, qword [rdi + 8]
mov r9, rax
movzx r8d, byte [rdx]
mov rdx, qword [rdi]
mov rcx, rbx
call qword [r10 + reloc.WS2_32.dll_WSASetLastError]
movzx ebx, al
lea rcx, [rbp - 1]
call fcn.14000c340
test bl, bl
jne 0x1400697f9
lea rdx, str.FinishServiceUpdate_failed
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
mov rax, qword [rdi + 8]
mov byte [rax], 0
jmp 0x1400698b6
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rdi + 0x50]
cmp byte [rax], 0
je 0x140069850
call fcn.14006ab20
test al, al
jne 0x140069850
lea rdx, str.Problem_stopping_MBUpdateDlg
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
mov rax, qword [rdi + 0x58]
cmp byte [rax], 0
je 0x1400698b6
xor edx, edx
mov rcx, qword [rdi + 0x60]
call fcn.140079c20
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rax, qword [rdi + 0x68]
mov edx, dword [rax]
call qword [r8 + 0x38]
test al, al
jne 0x1400698b6
lea rdx, str.Problem_restarting_UI__continuing_
lea rcx, [0x14047aa00]
call fcn.140036d30
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002c400
movzx edx, al
mov rcx, rbx
call fcn.14003af60
mov rcx, rbx
call fcn.14000bf70
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140282c10
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
add rcx, 8
jmp 0x1400693c0