Function at 0x140013290
Capabilities:
Create process on windows
Delete file
Get common file path
Query or enumerate registry value
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xa58]
sub rsp, 0xb30
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rbp + 0xa20], rax
xor r8d, r8d
lea rdx, str.Tool_DIASUninstallExec
lea rcx, [rsp + 0x58]
call fcn.14000b870
nop
call fcn.1400140e0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x10]
call fcn.140193010
mov edx, 0x104
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp word [rbp + 0x10], 0
jne 0x14001332c
lea r8, [0x1402145dc]
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.14000ba50
nop
jmp 0x140013799
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0xe], 0x5c
je 0x140013352
lea rdx, [0x14021120c]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.DiasUninst.EXE
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r12d, [r15 + 1]
cmp rax, 0xffffffffffffffff
jne 0x1400134ab
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x10]
call fcn.140193010
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x6c], 0x208
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001348f
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.SystemRoot
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.System32_
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.DiasUninst.EXE
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400134ab
lea r8, str.Cant_Found_DIASUninst.EXE
lea edx, [rax + 3]
lea rcx, [rsp + 0x58]
call fcn.14000ba50
nop
jmp 0x140013799
lea r8, str.Case_Win9X_Me
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.14000ba50
nop
jmp 0x140013799
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x220]
call fcn.140193010
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x220]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1402136d8]
lea rcx, [rbp + 0x220]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x60]
call fcn.140193010
xor edx, edx
mov qword [rsp + 0x78], rdx
mov qword [rbp - 0x80], rdx
mov qword [rbp - 0x78], rdx
mov dword [rbp - 0x60], 0x68
mov dword [rbp - 0x24], r12d
mov word [rbp - 0x20], r15w
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x220]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140013575
lea r8, str.Cant_Execute_DIAS_Uninstaller
lea edx, [rax + 2]
lea rcx, [rsp + 0x58]
call fcn.14000ba50
nop
jmp 0x140013799
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1400135a2
lea rdx, [rbp - 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.14004cde4
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400135cb
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
or r13, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x14001361e
movzx edi, cx
mov ecx, edi
call fcn.14004cbb8
test rax, rax
je 0x14001370e
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400012a0
mov rbx, qword [rsp + 0x50]
jmp 0x14001370e
xor eax, eax
mov rcx, r13
lea rdi, [rbp + 0x10]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x140013694
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14001370e
cmp dword [rdx + 0x10], eax
jge 0x140013669
cmp dword [rbx - 0xc], eax
jge 0x14001365c
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14001370e
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140013680
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
jmp 0x14001370e
mov r14d, dword [rbx - 0x10]
lea rsi, [rbp + 0x10]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
jns 0x1400136b1
mov ecx, 0x80070057
call fcn.140001000
int3
sub r12d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, ecx
or eax, r12d
jge 0x1400136d0
mov edx, ecx
lea rcx, [rsp + 0x50]
call fcn.1400015c0
mov rbx, qword [rsp + 0x50]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
lea r12, [rax + rax]
add rdx, rdx
mov r9, r12
cmp rsi, r14
ja 0x1400136f4
lea r8, [rbx + rsi*2]
call fcn.14018e5f0
jmp 0x1400136fd
lea r8, [rbp + 0x10]
call fcn.14018e7d0
cmp edi, dword [rbx - 0xc]
jg 0x14001378e
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], r15w
mov edx, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, str..INI
lea rdx, str..EXE
lea rcx, [rsp + 0x50]
call fcn.140009d30
mov edx, 0x20
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, [0x1402145dc]
mov edx, 2
lea rcx, [rsp + 0x58]
call fcn.14000ba50
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x14001378c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x140013799
mov ecx, 0x80070057
call fcn.140001000
nop
lea rcx, [rsp + 0x58]
call fcn.14000ba00
mov rcx, qword [rbp + 0xa20]
xor rcx, rsp
call fcn.14018e5d0
lea r11, [rsp + 0xb30]
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