Function at 0x140001fb0
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 [0x140007020]
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 0x140002054
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 0x14000237e
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 0x14000215b
cmp dword [rsp + 0x74], 0
jbe 0x14000215b
cmp dword [rsp + 0x74], 0x40000
jae 0x14000215b
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 sub.MSVCR100.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
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 0x140002373
mov edx, 0x104
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCR100.dll__wcslwr_s]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14000218e
mov eax, 0xffffffff
jmp 0x140002382
mov rdx, qword [0x140007018]
lea rcx, [rsp + 0xa0]
call fcn.140002710
test rax, rax
jne 0x1400021b3
xor eax, eax
jmp 0x140002382
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 sub.MSVCR100.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
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, [0x14000467c]
mov edx, eax
mov rcx, qword [rsp + 0x4f8]
call qword [sym.imp.MSVCR100.dll_wcscpy_s]
lea r8, [rsp + 0x508]
lea rdx, [0x1400046ac]
mov rcx, qword [rsp + 0x520]
call qword [sym.imp.MSVCR100.dll_wcstok_s]
mov qword [rsp + 0x518], rax
cmp qword [rsp + 0x518], 0
je 0x14000232c
mov r8, qword [rsp + 0x518]
mov edx, 0x104
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.MSVCR100.dll_wcscpy_s]
mov edx, 0x104
lea rcx, [rsp + 0x2d0]
call qword [sym.imp.MSVCR100.dll__wcslwr_s]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x1400022a4
mov eax, 0xffffffff
jmp 0x140002382
mov rdx, qword [0x140007018]
lea rcx, [rsp + 0x2d0]
call fcn.140002710
test rax, rax
jne 0x140002308
movzx eax, byte [rsp + 0x528]
test eax, eax
jne 0x1400022e4
mov eax, dword [rsp + 0x74]
lea r8, [0x140004784]
mov edx, eax
mov rcx, qword [rsp + 0x4f8]
call qword [sym.imp.MSVCR100.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.MSVCR100.dll_wcscat_s]
lea r8, [rsp + 0x508]
lea rdx, [0x1400047ac]
xor ecx, ecx
call qword [sym.imp.MSVCR100.dll_wcstok_s]
mov qword [rsp + 0x518], rax
jmp 0x140002252
mov rcx, qword [rsp + 0x4f8]
call qword [sym.imp.MSVCR100.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, [0x140005720]
call fcn.1400029d0
mov rax, rdi
mov rcx, qword [rsp + 0x558]
xor rcx, rsp
call fcn.1400029b0
add rsp, 0x560
pop rdi
ret