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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x560
lea rdi, [rsp + 0x30]
mov ecx, 0x14c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x570]
mov rax, qword [0x140009028]
xor rax, rsp
mov qword [rsp + 0x558], rax
mov dword [rsp + 0x44], 0xffffffff
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x2011f
xor r8d, r8d
mov rdx, qword [rsp + 0x578]
mov rcx, qword [rsp + 0x570]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x140002096
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0x578]
mov rcx, qword [rsp + 0x570]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x1400023c0
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x74], 0x104
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x4e8], rax
mov byte [rsp + 0x4f0], 0
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x4e8]
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 0x14000219d
cmp dword [rsp + 0x74], 0
jbe 0x14000219d
cmp dword [rsp + 0x74], 0x40000
jae 0x14000219d
mov eax, dword [rsp + 0x74]
mov qword [rsp + 0x548], rax
mov eax, 2
mov rcx, qword [rsp + 0x548]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140002b24
mov qword [rsp + 0x538], rax
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x4e8], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x4e8]
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 0x1400023b5
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 0x1400021d0
mov eax, 0xffffffff
jmp 0x1400023c4
mov rdx, qword [0x140009018]
lea rcx, [rsp + 0xa0]
call fcn.1400028b0
test rax, rax
jne 0x1400021f5
xor eax, eax
jmp 0x1400023c4
mov eax, dword [rsp + 0x74]
mov qword [rsp + 0x550], rax
mov eax, 2
mov rcx, qword [rsp + 0x550]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140002b24
mov qword [rsp + 0x540], rax
mov rax, qword [rsp + 0x540]
mov qword [rsp + 0x4f8], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x520], rax
mov byte [rsp + 0x528], 1
mov eax, dword [rsp + 0x74]
lea r8, [0x14000573c]
mov edx, eax
mov rcx, qword [rsp + 0x4f8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [rsp + 0x508]
lea rdx, [0x14000576c]
mov rcx, qword [rsp + 0x520]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov qword [rsp + 0x518], rax
cmp qword [rsp + 0x518], 0
je 0x14000236e
mov r8, qword [rsp + 0x518]
mov edx, 0x104
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x104
lea rcx, [rsp + 0x2d0]
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 0x1400022e6
mov eax, 0xffffffff
jmp 0x1400023c4
mov rdx, qword [0x140009018]
lea rcx, [rsp + 0x2d0]
call fcn.1400028b0
test rax, rax
jne 0x14000234a
movzx eax, byte [rsp + 0x528]
test eax, eax
jne 0x140002326
mov eax, dword [rsp + 0x74]
lea r8, [0x140005844]
mov edx, eax
mov rcx, qword [rsp + 0x4f8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov byte [rsp + 0x528], 0
mov eax, dword [rsp + 0x74]
mov r8, qword [rsp + 0x518]
mov edx, eax
mov rcx, qword [rsp + 0x4f8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rsp + 0x508]
lea rdx, [0x14000586c]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov qword [rsp + 0x518], rax
jmp 0x140002294
mov rcx, qword [rsp + 0x4f8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea rax, [rax + rax + 2]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x4f8]
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, [0x1400067b0]
call fcn.140002dc8
mov rax, rdi
mov rcx, qword [rsp + 0x558]
xor rcx, rsp
call fcn.140002ed0
add rsp, 0x560
pop rdi
ret