Function at 0x140128c50
Capabilities:
Check if file exists
Get common file path
Move file
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4c0]
sub rsp, 0x5c0
mov rax, qword [0x1402bf5c8]
xor rax, rsp
mov qword [rbp + 0x4b0], rax
xor r14d, r14d
mov qword [rbp + 0x70], r14
mov r15d, r14d
mov qword [rbp + 0x80], r14
mov r12d, 7
mov qword [rbp + 0x88], r12
mov word [rbp + 0x70], r14w
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x60], r14
mov r13d, r12d
mov qword [rbp + 0x68], r12
mov word [rbp + 0x50], r14w
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x40], r14
mov qword [rbp + 0x48], r12
mov word [rbp + 0x30], r14w
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x20], r14
mov qword [rbp + 0x28], r12
mov word [rbp + 0x10], r14w
lea r8d, [r14 + 0x27]
lea rdx, str.schtasks__delete__TN__AMDInstallUEP___F
lea rcx, [rbp + 0x10]
call fcn.140018360
nop
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], r12
mov word [rbp - 0x58], r14w
mov edx, 0x400
lea rcx, [rbp - 0x58]
call fcn.140023c30
mov r8, rax
mov qword [rbp - 0x48], 0x3ff
mov qword [rbp - 0x40], 0x3ff
movzx eax, r14w
mov rdi, r8
mov ecx, 0x3ff
rep stosw word [rdi], ax
mov word [r8 + 0x7fe], r14w
mov qword [rbp - 0x58], r8
lea rdi, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rdi, qword [rbp + 0x10]
lea rcx, [rbp - 0x58]
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
cmovae rcx, r8
mov qword [rsp + 0x20], rdi
lea r9, str.Delete_deleteAUEPScheduledTask__:__s
lea r8, [r14 - 1]
call fcn.14009de10
lea rdi, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdi, qword [rbp - 0x58]
mov dword [rbp - 0x60], r14d
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x38], rax
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], r12
lea r8d, [r14 + 0x17]
lea rdx, str.deleteAUEPScheduledTask
lea rcx, [rsp + 0x78]
call fcn.140018360
nop
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r12
lea r8d, [r14 + 0x72]
lea rdx, str.c:constructicon_buildsgfx_six23.19installNeomaInstallNeomaIN_Apps_srcCoreInstallManInstallManHelpers.cpp
lea rcx, [rsp + 0x50]
call fcn.140018360
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x40]
mov r8d, 0xe42
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.1400b16b0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140128e5d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140128e58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401295e9
call fcn.1401a9a50
lea rcx, [rsp + 0x50]
call fcn.1400a7ad0
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0x10
jb 0x140128eaf
lea rsi, [rcx + 0x10]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 8
jb 0x140128e92
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x20
lea rdx, str.WindowsSystem32
call fcn.1401cfe40
mov word [rdi + rsi*2], r14w
jmp 0x140128ed5
mov qword [rsp + 0x20], 0x10
lea r9, str.WindowsSystem32
movzx r8d, byte [rsp + 0x30]
mov edx, 0x10
mov rcx, rbx
call fcn.14002dc10
mov rbx, rax
mov qword [rbp - 0x10], r14
mov qword [rbp], r14
mov qword [rbp + 8], r14
mov rsi, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x140128eef
mov rbx, qword [rbx]
movabs rax, 0x7ffffffffffffffe
cmp rsi, 8
jae 0x140128f10
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp + 8], 7
jmp 0x140128f46
mov rdi, rsi
or rdi, 7
cmp rdi, rax
cmova rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x10]
call fcn.140023c30
mov qword [rbp - 0x10], rax
lea r8, [rsi*2 + 2]
mov rdx, rbx
mov rcx, rax
call fcn.1401cfe40
mov qword [rbp + 8], rdi
mov qword [rbp], rsi
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140128f8c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140128f87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401295ef
call fcn.1401a9a50
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r14w
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], 8
cmovae rcx, qword [rbp + 0x10]
xor r8d, r8d
lea rdx, [rbp - 0x10]
call fcn.140119600
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWAREATI_TechnologiesInstall
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14012907f
mov word [rbp + 0x90], r14w
mov dword [rbp - 0x38], 1
mov dword [rbp - 0x60], 0x104
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
xor r8d, r8d
lea rdx, str.InstallDir
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14012906b
lea rax, [rbp + 0x90]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140129040
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x70]
call fcn.140018360
mov r15, qword [rbp + 0x80]
mov r12, qword [rbp + 0x88]
jmp 0x140129075
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r15
cmp rax, 0xb
jb 0x1401295f5
lea r14, [rbp + 0x70]
cmp r12, 8
setae byte [rsp + 0x30]
cmovae r14, qword [rbp + 0x70]
xor eax, eax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
lea rsi, [r15 + 0xb]
mov edi, 7
lea rbx, [rbp - 0x30]
lea eax, [rdi + 3]
cmp rsi, rdi
jbe 0x140129108
mov rdi, rsi
or rdi, 7
cmp rdi, rcx
jbe 0x1401290df
mov rdi, rcx
jmp 0x1401290e6
cmp rdi, rax
cmovb rdi, rax
mov rdx, rdi
add rdx, 1
mov rax, 0xffffffffffffffff
cmovb rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140023c30
mov rbx, rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rdi
lea rdi, [r15 + r15]
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.1401cfe40
movups xmm0, xmmword [str.InstallUEP]
movups xmmword [rdi + rbx], xmm0
mov eax, dword [0x14024e300]
mov dword [rdi + rbx + 0x10], eax
movzx eax, word [0x14024e304]
mov word [rdi + rbx + 0x14], ax
xor edi, edi
mov word [rbx + rsi*2], di
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1401295da
lea rdx, [rbp + 0x2a0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1401295da
lea rax, [rbp + 0x2a0]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x140129190
lea rdx, [rbp + 0x2a0]
lea rcx, [rbp + 0x50]
call fcn.140018360
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 8
cmovae rdx, qword [rbp + 0x50]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 7
mov r8, rbx
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x1401291d0
lea rcx, [rsp + 0x50]
call fcn.140018360
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.1400a33b0
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
mov r15, qword [rbp + 0x60]
sub rax, r15
cmp rax, 7
jb 0x1401295e3
lea r12, [rbp + 0x50]
mov rsi, qword [rbp + 0x50]
mov r13, qword [rbp + 0x68]
cmp r13, 8
cmovae r12, rsi
mov qword [rbp - 0x58], rdi
lea r14, [r15 + 7]
mov edi, 7
lea rbx, [rbp - 0x58]
cmp r14, rdi
jbe 0x140129279
mov rdi, r14
or rdi, 7
cmp rdi, rcx
jbe 0x14012924a
mov rdi, rcx
jmp 0x140129257
cmp rdi, 0xa
mov eax, 0xa
cmovb rdi, rax
mov rdx, rdi
add rdx, 1
mov rax, 0xffffffffffffffff
cmovb rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140023c30
mov rbx, rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], rdi
lea rdi, [r15 + r15]
mov r8, rdi
mov rdx, r12
mov rcx, rbx
call fcn.1401cfe40
movsd xmm0, qword [str.UEPtemp]
movsd qword [rdi + rbx], xmm0
mov eax, dword [0x14024e310]
mov dword [rdi + rbx + 8], eax
movzx eax, word [0x14024e314]
mov word [rdi + rbx + 0xc], ax
xor edi, edi
mov word [rbx + r14*2], di
lea rcx, [rbp + 0x30]
call fcn.1400272a0
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rbp - 0x48]
movups xmmword [rbp + 0x40], xmm1
lea rdx, [rbp + 0x30]
movq rcx, xmm0
psrldq xmm1, 8
movq rax, xmm1
cmp rax, 8
cmovae rdx, rcx
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
lea r8d, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1401293de
xor r8d, r8d
mov edx, 0x3ff
lea rcx, [rbp - 0x58]
call fcn.140023b20
nop
lea rcx, [rbp - 0x58]
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
cmovae rcx, qword [rbp - 0x58]
lea r9, str.Failed_to_move_folder
mov r14, 0xffffffffffffffff
mov r8, r14
call fcn.14009de10
lea rbx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rbx, qword [rbp - 0x58]
mov dword [rbp - 0x60], edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
lea rdx, str.deleteAUEPScheduledTask
lea rcx, [rsp + 0x50]
call fcn.140017fc0
mov rdi, rax
lea rdx, str.c:constructicon_buildsgfx_six23.19installNeomaInstallNeomaIN_Apps_srcCoreInstallManInstallManHelpers.cpp
lea rcx, [rsp + 0x78]
call fcn.140017fc0
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x5c]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x40]
mov r8d, 0xe64
mov rdx, rdi
mov rcx, rax
call fcn.1400b16b0
nop
mov r8, qword [rbp - 0x40]
cmp r8, 8
jb 0x1401293da
inc r8
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
call fcn.140023c60
xor edi, edi
jmp 0x1401293e5
mov r14, 0xffffffffffffffff
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rcx, qword [rbp + 0x30]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1401294cb
xor r8d, r8d
mov edx, 0x3ff
lea rcx, [rbp - 0x58]
call fcn.140023b20
nop
lea rcx, [rbp - 0x58]
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
cmovae rcx, qword [rbp - 0x58]
lea r9, str.Failed_to_delete_folder
mov r8, r14
call fcn.14009de10
lea rbx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rbx, qword [rbp - 0x58]
mov dword [rbp - 0x60], edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
lea rdx, str.deleteAUEPScheduledTask
lea rcx, [rsp + 0x50]
call fcn.140017fc0
mov rdi, rax
lea rdx, str.c:constructicon_buildsgfx_six23.19installNeomaInstallNeomaIN_Apps_srcCoreInstallManInstallManHelpers.cpp
lea rcx, [rsp + 0x78]
call fcn.140017fc0
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 0x5c]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x40]
mov r8d, 0xe69
mov rdx, rdi
mov rcx, rax
call fcn.1400b16b0
nop
mov r8, qword [rbp - 0x40]
cmp r8, 8
jb 0x1401294c9
inc r8
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
call fcn.140023c60
xor edi, edi
mov r12, qword [rbp + 0x88]
mov r8, qword [rbp - 0x18]
cmp r8, 8
jb 0x1401294ec
inc r8
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.140023c60
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], di
mov r8, qword [rbp + 8]
cmp r8, 8
jb 0x140129516
inc r8
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x10]
call fcn.140023c60
mov qword [rbp], rdi
mov qword [rbp + 8], 7
mov word [rbp - 0x10], di
mov r8, qword [rbp + 0x28]
cmp r8, 8
jb 0x140129540
inc r8
mov rdx, qword [rbp + 0x10]
lea rcx, [rbp + 0x10]
call fcn.140023c60
mov qword [rbp + 0x20], rdi
mov qword [rbp + 0x28], 7
mov word [rbp + 0x10], di
mov r8, qword [rbp + 0x48]
cmp r8, 8
jb 0x14012956a
inc r8
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp + 0x30]
call fcn.140023c60
mov qword [rbp + 0x40], rdi
mov qword [rbp + 0x48], 7
mov word [rbp + 0x30], di
cmp r13, 8
jb 0x140129591
lea r8, [r13 + 1]
mov rdx, rsi
lea rcx, [rbp + 0x50]
call fcn.140023c60
nop
cmp byte [rsp + 0x30], 0
je 0x1401295aa
lea r8, [r12 + 1]
mov rdx, qword [rbp + 0x70]
lea rcx, [rbp + 0x70]
call fcn.140023c60
mov rcx, qword [rbp + 0x4b0]
xor rcx, rsp
call fcn.1401a9a30
lea r11, [rsp + 0x5c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rsi, qword [rbp + 0x50]
jmp 0x1401294d2
call fcn.1400153e0
nop
call fcn.1401e3dbc
nop
call fcn.1401e3dbc
int3
call fcn.1400153e0
int3