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

Disassembly:
push rdi
sub rsp, 0x310
mov rdi, rsp
mov ecx, 0xc4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140007020]
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 0x140001f77
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 0x140001e44
cmp dword [rsp + 0x74], 0
jbe 0x140001e44
cmp dword [rsp + 0x74], 0x40000
jae 0x140001e44
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 sub.MSVCR100.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
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 0x140001f6c
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 0x140001e77
mov eax, 0xffffffff
jmp 0x140001f7b
mov rdx, qword [0x140007018]
lea rcx, [rsp + 0xa0]
call fcn.140002710
test rax, rax
je 0x140001e9c
xor eax, eax
jmp 0x140001f7b
mov eax, dword [rsp + 0x74]
mov qword [rsp + 0x2f0], rax
mov rcx, qword [0x140007018]
call qword [sym.imp.MSVCR100.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 sub.MSVCR100.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0x2e0], rax
mov rax, qword [rsp + 0x2e0]
mov qword [rsp + 0x2c8], rax
cmp qword [rsp + 0x2c8], 0
je 0x140001f6c
mov r9, qword [0x140007018]
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, [0x140005530]
call fcn.1400029d0
mov rax, rdi
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1400029b0
add rsp, 0x310
pop rdi
ret