Function at 0x180013040
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x280
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rcx
mov edi, 1
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], ebx
test rcx, rcx
je 0x18001323c
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlIDConfigDB
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x180013243
lea r14d, [rdi + 3]
mov dword [rsp + 0x30], r14d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.CurrentConfig
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x180013243
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
lea r9, str.Hardware_Profiles
lea r8, str._s_04u
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1800061b4
test eax, eax
js 0x180013243
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x180013243
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
lea rdx, str.CurrentDockInfo
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x180013243
mov dword [rsp + 0x30], r14d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DockingState
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x180013256
mov eax, dword [rsi]
test eax, eax
je 0x180013256
and eax, 3
cmp al, 3
je 0x180013256
mov dword [rsp + 0x30], 0x4e
lea r14, [rsi + 4]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, str.HwProfileGuid
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x180013294
mov dword [rsp + 0x30], 0xa0
add rsi, 0x52
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1800705d8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x18001329d
mov word [rsi], bx
jmp 0x18001329d
mov ecx, 0x57
jmp 0x180013248
mov ecx, 0x3f7
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, ebx
mov dword [rsp + 0x34], ebx
jmp 0x18001329d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DockState
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x180013289
cmp dword [rsi], ebx
jne 0x1800131c5
mov dword [rsi], 7
jmp 0x1800131c5
mov word [r14], bx
jmp 0x180013200
jmp 0x1800132b0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800132c0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800132d0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800132e0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180017170
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret