Function at 0x14007fc20
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x770]
sub rsp, 0x870
mov rax, qword [0x140173040]
xor rax, rsp
mov qword [rbp + 0x760], rax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x38]
call fcn.1400055e0
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov r8d, 0x3ff
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdi, [rbx - 1]
test eax, eax
je 0x14007fd26
lea rcx, [rsp + 0x60]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14007fca0
dec eax
movsxd rcx, eax
test eax, eax
jle 0x14007fcce
cmp word [rsp + rcx*2 + 0x60], 0x5c
je 0x14007fcc7
dec eax
dec rcx
test rcx, rcx
jg 0x14007fcb3
jmp 0x14007fcce
cdqe
mov word [rsp + rax*2 + 0x60], bx
cmp word [rsp + 0x60], 0
je 0x14007fd26
lea r9, str.probalance.exe
lea r8, [rsp + 0x60]
lea rdx, [0x140146d78]
lea rcx, [rsp + 0x38]
call fcn.140005d70
mov rax, qword [rsp + 0x48]
cmp rax, qword [rsp + 0x50]
je 0x14007fd14
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14003f4f0
add qword [rsp + 0x48], 8
jmp 0x14007fd26
lea r8, [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400482c0
mov word [rsp + 0x60], bx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SoftwareCPUBalance
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007fdff
mov dword [rsp + 0x58], 0x400
mov dword [rsp + 0x5c], 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, str.Install_Dir
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14007fda9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14007fdff
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r9, str.probalance.exe
lea r8, [rsp + 0x60]
lea rdx, [0x140146d78]
lea rcx, [rsp + 0x38]
call fcn.140005d70
mov rax, qword [rsp + 0x48]
cmp rax, qword [rsp + 0x50]
je 0x14007fded
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14003f4f0
add qword [rsp + 0x48], 8
jmp 0x14007fdff
lea r8, [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400482c0
mov word [rsp + 0x60], bx
xor r9d, r9d
lea r8d, [r9 + 0x26]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x14007fe6d
lea r9, str.cpubalanceprobalance.exe
lea r8, [rsp + 0x60]
lea rdx, [0x140146d78]
lea rcx, [rsp + 0x38]
call fcn.140005d70
mov rax, qword [rsp + 0x48]
cmp rax, qword [rsp + 0x50]
je 0x14007fe5b
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.14003f4f0
add qword [rsp + 0x48], 8
jmp 0x14007fe6d
lea r8, [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400482c0
mov rbx, qword [rsp + 0x40]
cmp rbx, qword [rsp + 0x48]
je 0x14007fead
nop dword [rax]
mov rdx, qword [rbx]
cmp dword [rdx - 8], 1
jle 0x14007fe94
mov edx, dword [rdx - 0x10]
mov rcx, rbx
call fcn.140005760
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14007fefa
add rbx, 8
cmp rbx, qword [rsp + 0x48]
jne 0x14007fe80
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14007feca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x40]
call fcn.140040070
xor al, al
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.1400ff350
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14007ff17
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x40]
call fcn.140040070
mov al, 1
jmp 0x14007fed6