Function at 0x140001d10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rdi
sub rsp, 0x310
lea rdi, [rsp + 0x30]
mov ecx, 0xb8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140009028]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov dword [rsp + 0x44], 0xffffffff
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [section..data]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x140001fa9
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x74], 0x104
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x2b8], rax
mov byte [rsp + 0x2c0], 0
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
mov rdx, qword [str.Configuration]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xea
jne 0x140001e76
cmp dword [rsp + 0x74], 0
jbe 0x140001e76
cmp dword [rsp + 0x74], 0x40000
jae 0x140001e76
mov eax, dword [rsp + 0x74]
mov qword [rsp + 0x2e8], rax
mov eax, 2
mov rcx, qword [rsp + 0x2e8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140002b24
mov qword [rsp + 0x2d8], rax
mov rax, qword [rsp + 0x2d8]
mov qword [rsp + 0x2b8], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
mov rdx, qword [str.Configuration]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x140001f9e
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x140001ea9
mov eax, 0xffffffff
jmp 0x140001fad
mov rdx, qword [0x140009018]
lea rcx, [rsp + 0xa0]
call fcn.1400028b0
test rax, rax
je 0x140001ece
xor eax, eax
jmp 0x140001fad
mov eax, dword [rsp + 0x74]
mov qword [rsp + 0x2f0], rax
mov rcx, qword [0x140009018]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rcx, qword [rsp + 0x2f0]
lea rax, [rcx + rax*2 + 2]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x74]
mov qword [rsp + 0x2f8], rax
mov eax, 2
mov rcx, qword [rsp + 0x2f8]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140002b24
mov qword [rsp + 0x2e0], rax
mov rax, qword [rsp + 0x2e0]
mov qword [rsp + 0x2c8], rax
cmp qword [rsp + 0x2c8], 0
je 0x140001f9e
mov r9, qword [0x140009018]
lea r8, [rsp + 0xa0]
lea rdx, str._s__s
mov rcx, qword [rsp + 0x2c8]
call qword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x2c8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [str.Configuration]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x48]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400064c8]
call fcn.140002dc8
mov rax, rdi
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140002ed0
add rsp, 0x310
pop rdi
ret