Function at 0x140108060
Capabilities:
Delete file
Get common file path
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xb58]
sub rsp, 0xc30
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x1402bf5c8]
xor rax, rsp
mov qword [rbp + 0xb00], rax
xor bl, bl
xor r15d, r15d
mov qword [rbp - 8], r15
mov qword [rbp + 0x48], r15
mov qword [rbp + 0x58], r15
mov r14d, 7
mov qword [rbp + 0x60], r14
mov word [rbp + 0x48], r15w
xor r8d, r8d
lea rdx, [0x14022ee70]
lea rcx, [rbp + 0x48]
call fcn.140018360
nop
mov qword [rbp + 0x28], r15
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x40], r14
mov word [rbp + 0x28], r15w
xor r8d, r8d
lea rdx, [0x14022ee70]
lea rcx, [rbp + 0x28]
call fcn.140018360
nop
mov qword [rbp + 0x70], r15
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], r14
mov word [rbp + 0x70], r15w
xor r8d, r8d
lea rdx, [0x14022ee70]
lea rcx, [rbp + 0x70]
call fcn.140018360
nop
mov qword [rbp + 0xb0], r15
movdqa xmm0, xmmword [0x14023cab0]
movdqu xmmword [rbp + 0xc0], xmm0
mov word [rbp + 0xb0], r15w
xor r8d, r8d
lea rdx, [0x14022ee70]
lea rcx, [rbp + 0xb0]
call fcn.140018360
nop
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallAMD_Catalyst_Install_Manager
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rsi, [r15 - 1]
test eax, eax
jne 0x140108215
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x300]
call fcn.1401d04f0
mov dword [rbp + 0x20], 1
mov dword [rbp + 0x68], 0x104
lea rax, [rbp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x300]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
lea rdx, str.InstallDir
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14010820b
lea rax, [rbp + 0x300]
mov r8, rsi
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1401081f0
lea rdx, [rbp + 0x300]
lea rcx, [rbp + 0x48]
call fcn.140018360
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rbp + 0x58]
test rdi, rdi
je 0x140108808
mov qword [rbp + 0x90], r15
movdqa xmm0, xmmword [0x14023cab0]
movdqu xmmword [rbp + 0xa0], xmm0
mov word [rbp + 0x90], r15w
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, rdi
cmp rax, 6
jb 0x140108875
lea r13, [rbp + 0x48]
cmp qword [rbp + 0x60], 8
setae byte [rsp + 0x40]
cmovae r13, qword [rbp + 0x48]
mov qword [rsp + 0x68], r15
lea r12, [rdi + 6]
mov rbx, r14
lea r15, [rsp + 0x68]
mov eax, 0xa
cmp r12, rbx
jbe 0x1401082be
mov rbx, r12
or rbx, 7
cmp rbx, rcx
jbe 0x14010829a
mov rbx, rcx
jmp 0x1401082a1
cmp rbx, rax
cmovb rbx, rax
mov rdx, rbx
add rdx, 1
cmovb rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.140023c30
mov r15, rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], rbx
lea rbx, [rdi + rdi]
mov qword [rbp + 0x20], rbx
mov r8, rbx
mov rdx, r13
mov rcx, r15
call fcn.1401cfe40
movsd xmm0, qword [0x140237bf0]
movsd qword [rbx + r15], xmm0
mov eax, dword [0x140237bf8]
mov dword [rbx + r15 + 8], eax
xor r13d, r13d
mov word [r15 + r12*2], r13w
lea rcx, [rbp + 0x70]
call fcn.1400272a0
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbp + 0x70], xmm0
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rbp + 0x80], xmm1
lea r12, [rbp + 0x48]
cmp byte [rsp + 0x40], r13b
cmovne r12, qword [rbp + 0x48]
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
lea r15, [rdi + 1]
mov rbx, r14
lea rdi, [rsp + 0x48]
cmp r15, rbx
jbe 0x14010838f
mov rbx, r15
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
jbe 0x140108365
mov rbx, rax
jmp 0x140108372
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
mov rdx, rbx
add rdx, 1
cmovb rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140023c30
mov rdi, rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], rbx
mov rbx, qword [rbp + 0x20]
mov r8, rbx
mov rdx, r12
mov rcx, rdi
call fcn.1401cfe40
mov eax, 0x5c
mov word [rdi + rbx], ax
mov word [rdi + r15*2], r13w
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rax, rdx
sub rax, rcx
cmp rax, 6
jb 0x140108409
lea rdi, [rcx + 6]
mov qword [rsp + 0x58], rdi
lea rbx, [rsp + 0x48]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x48]
lea rcx, [rbx + rcx*2]
mov r8d, 0xc
lea rdx, str.Config
call fcn.1401cfe40
mov word [rbx + rdi*2], r13w
lea rax, [rsp + 0x48]
jmp 0x14010842e
mov qword [rsp + 0x20], 6
lea r9, str.Config
movzx r8d, byte [rsp + 0x40]
mov edx, 6
lea rcx, [rsp + 0x48]
call fcn.14002dc10
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r14
mov word [rax], r13w
lea rcx, [rbp + 0x28]
call fcn.1400272a0
movups xmmword [rbp + 0x28], xmm6
movups xmmword [rbp + 0x38], xmm7
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14010846f
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140023c60
movabs r15, 0x7ffffffffffffffe
mov rax, r15
mov rcx, qword [rsp + 0x78]
sub rax, rcx
cmp rax, 0x16
jb 0x140108875
lea r9, [rbp + 0x70]
cmp qword [rbp - 0x80], 8
cmovae r9, qword [rsp + 0x68]
mov qword [rsp + 0x30], 0x16
lea rax, str.InstallManagerApp.exe
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rbp + 0x70]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp - 0x78]
call fcn.14002fc90
lea rcx, [rbp + 0x90]
call fcn.1400272a0
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rbp + 0x90], xmm0
movups xmm1, xmmword [rbp - 0x68]
movups xmmword [rbp + 0xa0], xmm1
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x300]
call fcn.1401d04f0
mov rax, r15
mov rdx, qword [rbp + 0x38]
sub rax, rdx
cmp rax, 0x15
jb 0x140108875
lea r9, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae r9, qword [rbp + 0x28]
mov qword [rsp + 0x30], 0x15
lea rax, str.ModifyLinkUpdate.xml
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea r8, [rbp + 0x28]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp + 0xd0]
call fcn.14002fc90
nop
lea rdx, [rbp + 0xf0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov qword [rbp], r13
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], r14
mov word [rbp], r13w
lea rax, [rbp + 0xf0]
nop dword [rax + rax]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140108580
mov r8, rsi
lea rdx, [rbp + 0xf0]
lea rcx, [rbp]
call fcn.140018360
nop
mov rax, r15
mov rcx, qword [rbp + 0x10]
sub rax, rcx
cmp rax, 0x18
jb 0x14010886f
lea r9, [rbp]
cmp qword [rbp + 0x18], 8
cmovae r9, qword [rbp]
mov qword [rsp + 0x30], 0x18
lea rax, str.ModifyLinkUpdateNew.xml
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rbp]
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.14002fc90
lea rcx, [rbp]
call fcn.1400272a0
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rbp + 0x10], xmm1
movdqa xmm0, xmmword [0x14023cab0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r13w
lea rcx, [rsp + 0x68]
call fcn.1400272a0
lea rcx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rax, [rbp - 0x58]
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], r14
mov r8, r14
lea rdx, str.Command
lea rcx, [rbp - 0x58]
call fcn.140018360
nop
lea rax, [rsp + 0x68]
mov qword [rbp + 0x68], rax
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], r13
mov rdi, qword [rbp + 0x10]
lea rsi, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rsi, qword [rbp]
cmp rdi, 8
jae 0x14010869e
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x68], xmm0
mov rbx, r14
jmp 0x1401086d2
mov rbx, rdi
or rbx, 7
cmp rbx, r15
cmova rbx, r15
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x68]
call fcn.140023c30
mov qword [rsp + 0x68], rax
lea r8, [rdi*2 + 2]
mov rdx, rsi
mov rcx, rax
call fcn.1401cfe40
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rbx
lea rax, [rsp + 0x48]
mov qword [rbp - 0x38], rax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
lea rbx, [rbp + 0x90]
cmp qword [rbp - 0x60], 8
cmovae rbx, qword [rbp - 0x78]
mov rdi, qword [rbp - 0x68]
cmp rdi, 8
jae 0x140108718
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x48], xmm0
jmp 0x14010874c
mov r14, rdi
or r14, 7
cmp r14, r15
cmova r14, r15
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x48]
call fcn.140023c30
mov qword [rsp + 0x48], rax
lea r8, [rdi*2 + 2]
mov rdx, rbx
mov rcx, rax
call fcn.1401cfe40
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r14
lea rdx, [rbp + 0xd0]
lea rcx, [rbp - 0x28]
call fcn.140018e70
nop
lea r9, [rbp - 0x58]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.14011a120
lea r8, str.schtasks__delete__TN__ModifyLinkUpdate___F
mov edx, 0x3ff
lea rcx, [rbp + 0x300]
call fcn.140014840
mov r8b, 1
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x300]
call fcn.140119600
lea r9, [rbp]
cmp qword [rbp + 0x18], 8
cmovae r9, qword [rbp]
lea r8, str.schtasks__Create__TN__ModifyLinkUpdate___XML___s_
mov edx, 0x3ff
lea rcx, [rbp + 0x300]
call fcn.140014840
mov r8b, 1
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x300]
call fcn.140119600
movzx ebx, al
lea rcx, [rbp]
call fcn.1400272a0
nop
lea rcx, [rbp + 0xd0]
call fcn.1400272a0
nop
lea rcx, [rbp + 0x90]
call fcn.1400272a0
nop
lea rcx, [rbp + 0xb0]
call fcn.1400272a0
nop
lea rcx, [rbp + 0x70]
call fcn.1400272a0
nop
lea rcx, [rbp + 0x28]
call fcn.1400272a0
nop
lea rcx, [rbp + 0x48]
call fcn.1400272a0
movzx eax, bl
mov rcx, qword [rbp + 0xb00]
xor rcx, rsp
call fcn.1401a9a30
lea r11, [rsp + 0xc30]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400153e0
nop
call fcn.1400153e0
int3