Function at 0x140017524
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 [0x14002a370]
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 [0x140022b80]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r14w
mov dword [rsp + 0x30], r14d
call fcn.140008ce8
mov rbx, rax
movabs r13, 0x800000000001
lea rcx, str.2019.2B
lea r15d, [r14 + 8]
lea rsi, [0x14001c52c]
lea r12, str.SedimentPackSelfUpdater
cmp dword [rax], 1
jbe 0x14001766c
test qword [rax + 0x10], r13
je 0x14001766c
mov rax, qword [rax + 0x18]
and rax, r13
cmp rax, qword [rbx + 0x18]
jne 0x14001766c
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], r15
call fcn.1400083e4
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], r15
call fcn.14000866c
mov rdx, rsi
mov ecx, r14d
test rax, rax
je 0x14001761b
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], r14b
jne 0x140017612
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, [0x140023e71]
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 0x1400176c0
lea edx, [rbx - 0x47]
mov r8, r12
mov rcx, qword [rbp + 0x448]
call fcn.140003b48
jmp 0x14001770b
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 0x1400176e6
mov edx, 0xbe
jmp 0x1400176af
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x50]
call fcn.1400095c4
lea rdx, str..cab
lea rcx, [rsp + 0x50]
call fcn.1400095c4
mov eax, r14d
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x14001771d
or dword [rsp + 0x30], 1
jmp 0x14001786c
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], r15
cmovae rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.14001797c
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x140017747
or dword [rsp + 0x30], 2
jmp 0x14001786c
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], r15
cmovae rdx, qword [rsp + 0x50]
lea r8, [rsp + 0x34]
mov rcx, rdi
call fcn.140017bdc
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x140017776
or dword [rsp + 0x30], 4
jmp 0x14001786c
cmp byte [rsp + 0x34], r14b
jne 0x14001778f
mov dword [rsp + 0x38], 0x80070143
or dword [rsp + 0x30], r15d
jmp 0x14001786c
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], r15
cmovae rcx, qword [rsp + 0x50]
xor edx, edx
call fcn.1400140e8
mov ebx, eax
test eax, eax
jns 0x1400177c5
mov rcx, qword [rbp + 0x448]
mov r9d, eax
mov r8, r12
mov edx, 0x9f
call fcn.140003b18
jmp 0x1400177c8
mov ebx, r14d
mov dword [rsp + 0x38], ebx
test ebx, ebx
jns 0x1400177da
or dword [rsp + 0x30], 0x10
jmp 0x14001786c
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], r15
cmovae rcx, qword [rsp + 0x50]
mov r9, qword [rdi + 8]
lea r8, [0x140017d00]
xor edx, edx
call qword [sym.imp.ext_ms_win_setupapi_classinstallers_l1_1_2.dll_SetupIterateCabinetW]
test eax, eax
jne 0x140017817
mov rcx, qword [rbp + 0x448]
mov r8, r12
mov edx, 0xa8
call fcn.140003b48
jmp 0x14001781a
mov eax, r14d
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x140017827
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 0x140017857
mov rcx, qword [rbp + 0x448]
mov r8, r12
mov edx, 0xae
call fcn.140003b48
jmp 0x14001785a
mov eax, r14d
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x14001786c
or dword [rsp + 0x30], 0x40
mov dword [rsp + 0x38], r14d
call fcn.140008ce8
mov rbx, rax
cmp dword [rax], 1
jbe 0x14001793c
test qword [rax + 0x10], r13
je 0x14001793c
mov rcx, qword [rax + 0x18]
and rcx, r13
cmp rcx, qword [rax + 0x18]
jne 0x14001793c
lea rax, str.2019.2B
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], r15
call fcn.1400083e4
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], r15
call fcn.14000866c
mov rcx, r14
test rax, rax
je 0x1400178db
mov rsi, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], r14b
jne 0x1400178d2
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, [0x140023ec4]
mov rcx, rbx
call fcn.140001078
mov ebx, dword [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.14000b844
mov eax, ebx
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.140018010
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