Function at 0x140128510
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 [0x1402be5c8]
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.14009d740
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.1400b0fe0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x14012871d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140128718
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140128ea9
call fcn.1401a9460
lea rcx, [rsp + 0x50]
call fcn.1400a7400
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0x10
jb 0x14012876f
lea rsi, [rcx + 0x10]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 8
jb 0x140128752
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x20
lea rdx, str.WindowsSystem32
call fcn.1401cf850
mov word [rdi + rsi*2], r14w
jmp 0x140128795
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 0x1401287af
mov rbx, qword [rbx]
movabs rax, 0x7ffffffffffffffe
cmp rsi, 8
jae 0x1401287d0
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp + 8], 7
jmp 0x140128806
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.1401cf850
mov qword [rbp + 8], rdi
mov qword [rbp], rsi
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14012884c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140128847
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140128eaf
call fcn.1401a9460
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.140118e50
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 0x14012893f
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 0x14012892b
lea rax, [rbp + 0x90]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140128900
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x70]
call fcn.140018360
mov r15, qword [rbp + 0x80]
mov r12, qword [rbp + 0x88]
jmp 0x140128935
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 0x140128eb5
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 0x1401289c8
mov rdi, rsi
or rdi, 7
cmp rdi, rcx
jbe 0x14012899f
mov rdi, rcx
jmp 0x1401289a6
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.1401cf850
movups xmm0, xmmword [str.InstallUEP]
movups xmmword [rdi + rbx], xmm0
mov eax, dword [0x14024d300]
mov dword [rdi + rbx + 0x10], eax
movzx eax, word [0x14024d304]
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 0x140128e9a
lea rdx, [rbp + 0x2a0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140128e9a
lea rax, [rbp + 0x2a0]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x140128a50
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 0x140128a90
lea rcx, [rsp + 0x50]
call fcn.140018360
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.1400a2ce0
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
mov r15, qword [rbp + 0x60]
sub rax, r15
cmp rax, 7
jb 0x140128ea3
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 0x140128b39
mov rdi, r14
or rdi, 7
cmp rdi, rcx
jbe 0x140128b0a
mov rdi, rcx
jmp 0x140128b17
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.1401cf850
movsd xmm0, qword [str.UEPtemp]
movsd qword [rdi + rbx], xmm0
mov eax, dword [0x14024d310]
mov dword [rdi + rbx + 8], eax
movzx eax, word [0x14024d314]
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 0x140128c9e
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.14009d740
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.1400b0fe0
nop
mov r8, qword [rbp - 0x40]
cmp r8, 8
jb 0x140128c9a
inc r8
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
call fcn.140023c60
xor edi, edi
jmp 0x140128ca5
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 0x140128d8b
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.14009d740
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.1400b0fe0
nop
mov r8, qword [rbp - 0x40]
cmp r8, 8
jb 0x140128d89
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 0x140128dac
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 0x140128dd6
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 0x140128e00
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 0x140128e2a
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 0x140128e51
lea r8, [r13 + 1]
mov rdx, rsi
lea rcx, [rbp + 0x50]
call fcn.140023c60
nop
cmp byte [rsp + 0x30], 0
je 0x140128e6a
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.1401a9440
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 0x140128d92
call fcn.1400153e0
nop
call fcn.1401e37cc
nop
call fcn.1401e37cc
int3
call fcn.1400153e0
int3