Function at 0x140036534
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r15, r9
mov r12d, r8d
mov r13, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rbp - 0x3c], ebx
mov edi, ebx
lea rax, [0x1403d1700]
or dword [rbp - 0x40], 0xffffffff
test edi, edi
jne 0x14003658f
cmp dword [0x1403d11c0], ebx
je 0x14003672a
lea r14d, [rdi + 2]
jmp 0x1400365b2
cmp edi, 1
jne 0x14003672a
mov rcx, rsi
call fcn.140035c50
test al, al
lea rax, [0x1403d1700]
je 0x14003672a
mov r14d, ebx
mov qword [rbp - 0x20], rax
and qword [rbp - 0x18], 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 1
lock xadd dword [rbp - 0x18], eax
test eax, eax
jne 0x1400365e3
cmp dword [rbp - 0x14], ebx
jne 0x140036736
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rbp - 0x14], eax
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x38], rbx
movzx r9d, word [rsi + 0x18]
shr r9d, 1
and r9d, 0x10
or r9d, r14d
mov qword [rsp + 0x20], rbx
lea r8, [rbp - 0x30]
mov rdx, qword [rsi + 0x10]
lea rcx, [rbp - 0x10]
call fcn.140037160
mov ecx, dword [rax]
mov dword [rbp - 0x40], ecx
mov rbx, qword [rax + 8]
and qword [rax + 8], 0
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140036633
and qword [rbp - 0x38], 0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov qword [rbp - 0x38], rbx
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14003664f
and qword [rbp - 8], 0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rbp - 0x38]
cmp dword [rbp - 0x40], 0
jne 0x140036704
mov dword [r15], r12d
mov rax, qword [rbp - 0x30]
test rax, rax
cmovne rbx, rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x3c]
xor r8d, r8d
mov rdx, qword [rbp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rbp - 0x40], eax
cmp eax, 0x3f2
je 0x14003669b
cmp eax, 0x3fa
je 0x14003669b
cmp eax, 6
jne 0x1400366d3
mov rax, qword [rsi + 0x10]
movzx ecx, word [rax + 0xa]
and ecx, 0xf
shl rcx, 5
lea rax, [0x1403c0d00]
xor ebx, ebx
mov qword [rcx + rax], rbx
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400365e7
mov qword [rbp - 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400365e7
test eax, eax
jne 0x140036700
movzx ecx, word [rsi + 0x18]
mov eax, ecx
and eax, 0xf
cmp dword [rbp - 0x3c], eax
je 0x140036743
cmp dword [rbp - 0x3c], 3
jne 0x1400366f9
cmp dword [r15], 4
jne 0x1400366f9
and cl, 0xf
cmp cl, 4
je 0x140036743
mov dword [rbp - 0x40], 2
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x140036718
and qword [rbp - 0x38], 0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x20]
call fcn.1401763b8
xor ebx, ebx
lea rax, [0x1403d1700]
inc edi
cmp edi, 2
jge 0x140036770
jmp 0x140036575
xor edx, edx
mov ecx, 0x131f4c4
call fcn.1400235f8
nop
mov rax, qword [rbp + 0x58]
mov dword [rax], 1
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140036762
and qword [rbp - 0x38], 0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x20]
call fcn.1401763b8
xor eax, eax
jmp 0x140036773
mov eax, dword [rbp - 0x40]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret