Function at 0x14001b6ac
Capabilities:
Delete file
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x448]
sub rsp, 0x520
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140032370]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x38], r14d
mov byte [rsp + 0x34], r14b
movdqa xmm0, xmmword [0x140028920]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r14w
mov dword [rsp + 0x30], r14d
call fcn.140008e98
mov rbx, rax
movabs r13, 0x800000000001
lea rcx, str.2021.1B
lea r15d, [r14 + 8]
lea rsi, [0x140021d5c]
lea r12, str.SedimentPackSelfUpdater
cmp dword [rax], 1
jbe 0x14001b7f4
test qword [rax + 0x10], r13
je 0x14001b7f4
mov rax, qword [rax + 0x18]
and rax, r13
cmp rax, qword [rbx + 0x18]
jne 0x14001b7f4
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], r15
call fcn.1400084ec
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], r15
call fcn.140008804
mov rdx, rsi
mov ecx, r14d
test rax, rax
je 0x14001b7a3
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], r14b
jne 0x14001b79a
mov qword [rbp - 0x50], rdx
lea eax, [rcx + 1]
mov dword [rbp - 0x48], eax
mov dword [rbp - 0x44], r14d
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 0x18
mov dword [rsp + 0x3c], r14d
lea rax, [rsp + 0x3c]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 7
lea rdx, [0x14002a111]
mov rcx, rbx
call fcn.140001078
mov ebx, 0x208
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x10]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x200]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rdx, [rbp - 0x10]
mov ebx, 0x104
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetTempPathW]
lea r12, str.onecoreenduserupgradeenablers_sedimentpackupdater_sedimentpackupdater.cpp
cmp eax, ebx
jb 0x14001b848
lea edx, [rbx - 0x47]
mov r8, r12
mov rcx, qword [rbp + 0x448]
call fcn.140004134
jmp 0x14001b893
lea r9, [rbp + 0x200]
xor r8d, r8d
lea rdx, str.sedpack_
lea rcx, [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetTempFileNameW]
test eax, eax
jne 0x14001b86e
mov edx, 0xbe
jmp 0x14001b837
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x50]
call fcn.140009658
lea rdx, str..cab
lea rcx, [rsp + 0x50]
call fcn.140009658
mov eax, r14d
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x14001b8a5
or dword [rsp + 0x30], 1
jmp 0x14001b9f4
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], r15
cmovae rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.14001bb04
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x14001b8cf
or dword [rsp + 0x30], 2
jmp 0x14001b9f4
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], r15
cmovae rdx, qword [rsp + 0x50]
lea r8, [rsp + 0x34]
mov rcx, rdi
call fcn.14001bd64
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x14001b8fe
or dword [rsp + 0x30], 4
jmp 0x14001b9f4
cmp byte [rsp + 0x34], r14b
jne 0x14001b917
mov dword [rsp + 0x38], 0x80070143
or dword [rsp + 0x30], r15d
jmp 0x14001b9f4
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], r15
cmovae rcx, qword [rsp + 0x50]
xor edx, edx
call fcn.140014330
mov ebx, eax
test eax, eax
jns 0x14001b94d
mov rcx, qword [rbp + 0x448]
mov r9d, eax
mov r8, r12
mov edx, 0x9f
call fcn.140004104
jmp 0x14001b950
mov ebx, r14d
mov dword [rsp + 0x38], ebx
test ebx, ebx
jns 0x14001b962
or dword [rsp + 0x30], 0x10
jmp 0x14001b9f4
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], r15
cmovae rcx, qword [rsp + 0x50]
mov r9, qword [rdi + 8]
lea r8, [0x14001be80]
xor edx, edx
call qword [sym.imp.ext_ms_win_setupapi_classinstallers_l1_1_2.dll_SetupIterateCabinetW]
test eax, eax
jne 0x14001b99f
mov rcx, qword [rbp + 0x448]
mov r8, r12
mov edx, 0xa8
call fcn.140004134
jmp 0x14001b9a2
mov eax, r14d
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x14001b9af
or dword [rsp + 0x30], 0x20
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], r15
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x14001b9df
mov rcx, qword [rbp + 0x448]
mov r8, r12
mov edx, 0xae
call fcn.140004134
jmp 0x14001b9e2
mov eax, r14d
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x14001b9f4
or dword [rsp + 0x30], 0x40
mov dword [rsp + 0x38], r14d
call fcn.140008e98
mov rbx, rax
cmp dword [rax], 1
jbe 0x14001bac4
test qword [rax + 0x10], r13
je 0x14001bac4
mov rcx, qword [rax + 0x18]
and rcx, r13
cmp rcx, qword [rax + 0x18]
jne 0x14001bac4
lea rax, str.2021.1B
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], r15
call fcn.1400084ec
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], r15
call fcn.140008804
mov rcx, r14
test rax, rax
je 0x14001ba63
mov rsi, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], r14b
jne 0x14001ba5a
mov qword [rbp - 0x50], rsi
lea eax, [rcx + 1]
mov dword [rbp - 0x48], eax
mov dword [rbp - 0x44], r14d
lea rax, str.SedimentPackSelfUpdater
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 0x18
lea rax, [rsp + 0x38]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
lea rdx, [0x14002a164]
mov rcx, rbx
call fcn.140001078
mov ebx, dword [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.14000b978
mov eax, ebx
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14001c780
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret