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

Disassembly:
jmp 0x140001fc0
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 [0x14000b028]
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 0x140002064
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 0x14000238e
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 0x14000216b
cmp dword [rsp + 0x74], 0
jbe 0x14000216b
cmp dword [rsp + 0x74], 0x40000
jae 0x14000216b
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 0x140002383
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 0x14000219e
mov eax, 0xffffffff
jmp 0x140002392
mov rdx, qword [0x14000b018]
lea rcx, [rsp + 0xa0]
call fcn.140001037
test rax, rax
jne 0x1400021c3
xor eax, eax
jmp 0x140002392
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, [0x140007b7c]
mov edx, eax
mov rcx, qword [rsp + 0x4f8]
call qword [sym.imp.MSVCR100.dll_wcscpy_s]
lea r8, [rsp + 0x508]
lea rdx, [0x140007ba4]
mov rcx, qword [rsp + 0x520]
call qword [sym.imp.MSVCR100.dll_wcstok_s]
mov qword [rsp + 0x518], rax
cmp qword [rsp + 0x518], 0
je 0x14000233c
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 0x1400022b4
mov eax, 0xffffffff
jmp 0x140002392
mov rdx, qword [0x14000b018]
lea rcx, [rsp + 0x2d0]
call fcn.140001037
test rax, rax
jne 0x140002318
movzx eax, byte [rsp + 0x528]
test eax, eax
jne 0x1400022f4
mov eax, dword [rsp + 0x74]
lea r8, [0x140007bdc]
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, [0x140007c2c]
xor ecx, ecx
call qword [sym.imp.MSVCR100.dll_wcstok_s]
mov qword [rsp + 0x518], rax
jmp 0x140002262
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, [0x140008a80]
call fcn.140002fb0
mov rax, rdi
mov rcx, qword [rsp + 0x558]
xor rcx, rsp
call fcn.140002f90
add rsp, 0x560
pop rdi
ret