Function at 0x140004d8c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r13, r9
mov r15, rcx
and dword [rbp - 0x30], 0
lea rsi, [0x140025f34]
lea r9, [0x14002f2b0]
or ebx, 0xffffffff
mov rdx, r15
mov cl, byte [rsi]
call fcn.140004d00
mov edi, eax
mov dword [rbp - 0x2c], eax
cmp eax, 0xffffffff
je 0x140004f4f
mov qword [rbp - 0x20], r9
and dword [rbp - 0x18], 0
and dword [rbp - 0x14], 0
mov rcx, r9
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140004fd5
lea eax, [rbx + 2]
lock xadd dword [rbp - 0x18], eax
inc eax
cmp eax, 1
jne 0x140004e1f
cmp dword [rbp - 0x14], 0
jne 0x140004feb
call qword [sym.imp.MSVCP140.dll__Thrd_id]
mov dword [rbp - 0x14], eax
xor r14d, r14d
cmp r14d, 4
jge 0x140004f3f
xor r12b, r12b
and qword [rsp + 0x28], 0
mov al, byte [r15 + 0x18]
mov byte [rsp + 0x20], al
mov r9d, edi
xor r8d, r8d
mov rdx, qword [r15 + 0x10]
lea rcx, [rbp - 0x10]
call fcn.140003fb0
mov ebx, dword [rax]
mov rdi, qword [rax + 8]
and qword [rax + 8], 0
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140004e76
and qword [rbp - 8], 0
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140023690]
test ebx, ebx
jne 0x140004f1b
mov eax, dword [rbp + 0x50]
mov dword [r13], eax
mov qword [rsp + 0x28], r13
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 0x140004ec0
cmp eax, 0x3fa
je 0x140004ec0
cmp eax, 6
je 0x140004ec0
xor ecx, ecx
jmp 0x140004ec5
mov ecx, 1
test ecx, ecx
je 0x140004eee
mov rcx, qword [r15 + 0x10]
movzx eax, word [rcx + 0xa]
and eax, 0x1f
shl rax, 5
lea rdx, [0x14002e0a0]
and qword [rax + rdx], 0
call fcn.14000269c
mov r12b, 1
jmp 0x140004f1b
test eax, eax
jne 0x140004f1b
movzx ecx, word [r15 + 0x1c]
mov eax, ecx
and eax, 0xf
cmp dword [rbp - 0x30], eax
je 0x140004f7c
cmp dword [rbp - 0x30], 3
jne 0x140004f16
cmp dword [r13], 4
jne 0x140004f16
and cl, 0xf
cmp cl, 4
je 0x140004f7c
mov ebx, 2
test rdi, rdi
je 0x140004f30
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x140023690]
inc r14d
test r12b, r12b
mov edi, dword [rbp - 0x2c]
jne 0x140004e22
lea rcx, [rbp - 0x20]
call fcn.140002aa8
lea r9, [0x14002f2b0]
inc rsi
lea rax, [0x140025f37]
cmp rsi, rax
jne 0x140004dc5
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 0x140004f91
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x140023690]
mov eax, dword [rbp - 0x18]
test eax, eax
je 0x140004fc0
or eax, 0xffffffff
lock xadd dword [rbp - 0x18], eax
cmp eax, 1
jne 0x140004fb4
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 0x14], eax
jne 0x140004ff8
and dword [rbp - 0x14], 0
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
jmp 0x140004f91
cmp dword [rbp - 0x14], 0
je 0x140004fd1
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 0x14], eax
jne 0x140004fde
xor eax, eax
jmp 0x140004f64
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.140001f08
int3
xor edx, edx
mov ecx, 0x131f4c4
call fcn.140001f08
int3
xor edx, edx
mov ecx, 0x131f4c5
call fcn.140001f08
int3