Function at 0x140001fe0
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
mov rdi, rsp
mov ecx, 0x158
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 0x140002084
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 0x1400023ae
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 0x14000218b
cmp dword [rsp + 0x74], 0
jbe 0x14000218b
cmp dword [rsp + 0x74], 0x40000
jae 0x14000218b
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.140002be8
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 0x1400023a3
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 0x1400021be
mov eax, 0xffffffff
jmp 0x1400023b2
mov rdx, qword [0x140009018]
lea rcx, [rsp + 0xa0]
call fcn.140002930
test rax, rax
jne 0x1400021e3
xor eax, eax
jmp 0x1400023b2
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.140002be8
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, [0x14000570c]
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, [0x14000573c]
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 0x14000235c
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 0x1400022d4
mov eax, 0xffffffff
jmp 0x1400023b2
mov rdx, qword [0x140009018]
lea rcx, [rsp + 0x2d0]
call fcn.140002930
test rax, rax
jne 0x140002338
movzx eax, byte [rsp + 0x528]
test eax, eax
jne 0x140002314
mov eax, dword [rsp + 0x74]
lea r8, [0x140005814]
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, [0x14000583c]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov qword [rsp + 0x518], rax
jmp 0x140002282
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, [0x140006780]
call fcn.140002e8c
mov rax, rdi
mov rcx, qword [rsp + 0x558]
xor rcx, rsp
call fcn.140002f90
add rsp, 0x560
pop rdi
ret