Function at 0x140017d3c
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 [0x14002d670]
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 [0x1400241e0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r14w
mov dword [rsp + 0x30], r14d
call fcn.140008b98
mov rbx, rax
movabs r13, 0x800000000001
lea rcx, str.2019.2B
lea r15d, [r14 + 8]
lea rsi, [0x14001d6ec]
lea r12, str.SedimentPackSelfUpdater
cmp dword [rax], 1
jbe 0x140017e84
test qword [rax + 0x10], r13
je 0x140017e84
mov rax, qword [rax + 0x18]
and rax, r13
cmp rax, qword [rbx + 0x18]
jne 0x140017e84
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], r15
call fcn.140008378
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], r15
call fcn.140008500
mov rdx, rsi
mov ecx, r14d
test rax, rax
je 0x140017e33
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], r14b
jne 0x140017e2a
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, [0x140025a31]
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 0x140017ed8
lea edx, [rbx - 0x47]
mov r8, r12
mov rcx, qword [rbp + 0x448]
call fcn.140004148
jmp 0x140017f23
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 0x140017efe
mov edx, 0xbe
jmp 0x140017ec7
lea rdx, [rbp + 0x200]
lea rcx, [rsp + 0x50]
call fcn.1400092d4
lea rdx, str..cab
lea rcx, [rsp + 0x50]
call fcn.1400092d4
mov eax, r14d
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x140017f35
or dword [rsp + 0x30], 1
jmp 0x140018084
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], r15
cmovae rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.140018194
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x140017f5f
or dword [rsp + 0x30], 2
jmp 0x140018084
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], r15
cmovae rdx, qword [rsp + 0x50]
lea r8, [rsp + 0x34]
mov rcx, rdi
call fcn.1400183f4
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x140017f8e
or dword [rsp + 0x30], 4
jmp 0x140018084
cmp byte [rsp + 0x34], r14b
jne 0x140017fa7
mov dword [rsp + 0x38], 0x80070143
or dword [rsp + 0x30], r15d
jmp 0x140018084
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], r15
cmovae rcx, qword [rsp + 0x50]
xor edx, edx
call fcn.1400144c4
mov ebx, eax
test eax, eax
jns 0x140017fdd
mov rcx, qword [rbp + 0x448]
mov r9d, eax
mov r8, r12
mov edx, 0x9f
call fcn.140004118
jmp 0x140017fe0
mov ebx, r14d
mov dword [rsp + 0x38], ebx
test ebx, ebx
jns 0x140017ff2
or dword [rsp + 0x30], 0x10
jmp 0x140018084
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], r15
cmovae rcx, qword [rsp + 0x50]
mov r9, qword [rdi + 8]
lea r8, [0x140018510]
xor edx, edx
call qword [sym.imp.ext_ms_win_setupapi_classinstallers_l1_1_2.dll_SetupIterateCabinetW]
test eax, eax
jne 0x14001802f
mov rcx, qword [rbp + 0x448]
mov r8, r12
mov edx, 0xa8
call fcn.140004148
jmp 0x140018032
mov eax, r14d
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x14001803f
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 0x14001806f
mov rcx, qword [rbp + 0x448]
mov r8, r12
mov edx, 0xae
call fcn.140004148
jmp 0x140018072
mov eax, r14d
mov dword [rsp + 0x38], eax
test eax, eax
jns 0x140018084
or dword [rsp + 0x30], 0x40
mov dword [rsp + 0x38], r14d
call fcn.140008b98
mov rbx, rax
cmp dword [rax], 1
jbe 0x140018154
test qword [rax + 0x10], r13
je 0x140018154
mov rcx, qword [rax + 0x18]
and rcx, r13
cmp rcx, qword [rax + 0x18]
jne 0x140018154
lea rax, str.2019.2B
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], r15
call fcn.140008378
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], r15
call fcn.140008500
mov rcx, r14
test rax, rax
je 0x1400180f3
mov rsi, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], r14b
jne 0x1400180ea
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, [0x140025dc2]
mov rcx, rbx
call fcn.140001078
mov ebx, dword [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.14000a404
mov eax, ebx
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.140018830
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