Function at 0x1400105e0
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140361080]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x60], 4
lea rdi, [0x140cbfce8]
mov rdx, rdi
cmp qword [0x140cbfd00], 0xf
cmova rdx, qword [0x140cbfce8]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400107d4
lea rbx, [0x140cbfd70]
mov rdx, rbx
cmp qword [0x140cbfd88], 0xf
cmova rdx, qword [0x140cbfd70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x64], 0
setne al
test al, al
je 0x1400107d4
lea rax, [0x140cbfca8]
cmp qword [0x140cbfcc0], 0xf
cmova rax, qword [0x140cbfca8]
mov qword [rsp + 0x50], rax
mov rax, qword [0x140cbfcb8]
mov qword [rsp + 0x58], rax
call fcn.14011fa54
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.14000c580
nop
lea rcx, [rsp + 0x30]
call fcn.1400103d0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140010751
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001074c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001074c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401204e0
mov dword [rsp + 0x60], 0
cmp qword [0x140cbfd00], 0xf
cmova rdi, qword [0x140cbfce8]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400107d4
cmp qword [0x140cbfd88], 0xf
cmova rbx, qword [0x140cbfd70]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 8
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140010807
mov qword [rsp + 0x58], rax
call fcn.14011fa54
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.14000c580
nop
lea rcx, [rsp + 0x30]
call fcn.1400103d0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140010887
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010882
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010882
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401204e0
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1401204c0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret