Function at 0x1400045d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r15, rcx
xor edi, edi
mov dword [rbp - 0x30], edi
lea r14, [0x140022c84]
lea r9, [0x14002c2c0]
or ebx, 0xffffffff
mov rdx, r15
mov cl, byte [r14]
call fcn.140004560
mov r13d, eax
cmp eax, 0xffffffff
je 0x1400047c8
mov qword [rbp - 0x20], r9
and qword [rbp - 0x18], 0
mov rcx, r9
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140004851
lea eax, [rbx + 2]
lock xadd dword [rbp - 0x18], eax
inc eax
cmp eax, 1
jne 0x140004660
cmp dword [rbp - 0x14], edi
jne 0x140004867
call qword [sym.imp.MSVCP140.dll__Thrd_id]
mov dword [rbp - 0x14], eax
mov esi, edi
cmp esi, 4
jge 0x1400047a6
mov r12b, dil
mov qword [rsp + 0x28], rdi
mov al, byte [r15 + 0x18]
mov byte [rsp + 0x20], al
mov r9d, r13d
xor r8d, r8d
mov rdx, qword [r15 + 0x10]
lea rcx, [rbp - 0x10]
call fcn.140003818
mov ebx, dword [rax]
mov rdi, qword [rax + 8]
and qword [rax + 8], 0
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1400046b4
and qword [rbp - 8], 0
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400206a8]
test ebx, ebx
jne 0x140004759
mov rax, qword [rbp + 0x58]
mov ecx, dword [rbp + 0x50]
mov dword [rax], ecx
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, 0x3f2
je 0x140004736
cmp eax, 0x3fa
je 0x140004736
cmp eax, 6
je 0x140004736
test eax, eax
jne 0x140004759
movzx ecx, word [r15 + 0x1c]
mov eax, ecx
and eax, 0xf
cmp dword [rbp - 0x30], eax
je 0x1400047f5
cmp dword [rbp - 0x30], 3
jne 0x14000472f
mov r9, qword [rbp + 0x58]
cmp dword [r9], 4
jne 0x14000472f
and cl, 0xf
cmp cl, 4
je 0x1400047f5
mov ebx, 2
jmp 0x140004759
mov rcx, qword [r15 + 0x10]
movzx eax, word [rcx + 0xa]
and eax, 0x1f
shl rax, 5
lea rdx, [0x14002b090]
and qword [rax + rdx], 0
call fcn.140001eec
mov r12b, 1
test rdi, rdi
je 0x14000476e
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x1400206a8]
inc esi
xor edi, edi
test r12b, r12b
jne 0x140004662
jmp 0x1400047a6
or eax, 0xffffffff
lock xadd dword [rbp - 0x18], eax
cmp eax, 1
jne 0x14000479c
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 0x14], eax
jne 0x14000488e
mov dword [rbp - 0x14], edi
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, dword [rbp - 0x18]
test eax, eax
jne 0x14000477d
cmp dword [rbp - 0x14], edi
je 0x1400047c1
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 0x14], eax
jne 0x14000485a
lea r9, [0x14002c2c0]
inc r14
lea rax, [0x140022c87]
cmp r14, rax
jne 0x14000460b
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test rdi, rdi
je 0x14000480a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x1400206a8]
mov eax, dword [rbp - 0x18]
test eax, eax
je 0x14000483c
or eax, 0xffffffff
lock xadd dword [rbp - 0x18], eax
cmp eax, 1
jne 0x14000482d
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 0x14], eax
jne 0x140004874
and dword [rbp - 0x14], 0
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, dword [rbp - 0x18]
jmp 0x14000480d
cmp dword [rbp - 0x14], 0
je 0x14000484d
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 0x14], eax
jne 0x140004881
xor eax, eax
jmp 0x1400047dd
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
xor edx, edx
mov ecx, 0x131f4c3
call fcn.140001d78
int3
xor edx, edx
mov ecx, 0x131f4c4
call fcn.140001d78
int3
xor edx, edx
mov ecx, 0x131f4c5
call fcn.140001d78
int3
xor edx, edx
mov ecx, 0x131f4c3
call fcn.140001d78
int3
xor edx, edx
mov ecx, 0x131f4c5
call fcn.140001d78
int3