Function at 0x14000a3a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x60
mov rax, qword [0x140047008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x88], rdi
mov rbp, rcx
mov rcx, qword [0x14004a6a8]
lea rax, [0x14004a6a8]
cmp rcx, rax
je 0x14000a3ee
test byte [rcx + 0x1c], 8
je 0x14000a3ee
mov rcx, qword [rcx + 0x10]
lea rax, str.CheckSplendidStatusFromMessage
mov qword [rsp + 0x20], rax
call fcn.140019c20
mov ecx, dword [0x14004d88c]
xor edi, edi
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rsi
test cl, 1
jne 0x14000a55d
mov eax, dword [0x140047988]
cmp eax, 3
jne 0x14000a54d
lea r8, str.GlobalASUS_ASLDRSrv_Advanced_Color_Event
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
test rax, rax
je 0x14000a53f
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call fcn.14000fc40
test eax, eax
je 0x14000a52d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.InternalDisplayAdapterIdHigh
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x38], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000a522
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov esi, dword [rsp + 0x3c]
lea rdx, str.InternalDisplayAdapterIdLow
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x44]
mov dword [rsp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000a522
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x48]
mov ebx, dword [rsp + 0x44]
lea rdx, str.InternalDisplayId
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000a522
mov eax, dword [rsp + 0x4c]
mov dword [0x14004da9c], eax
mov dword [0x14004dcac], esi
mov dword [0x14004dca8], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [0x14004d88c]
mov dword [0x140047988], 2
jmp 0x14000a554
mov ecx, dword [0x14004d88c]
mov dword [0x140047988], edi
jmp 0x14000a55d
dec eax
cmp eax, 1
ja 0x14000a55d
or ecx, 1
mov dword [0x14004d88c], ecx
test cl, 2
jne 0x14000a5c8
cmp dword [0x140047980], 0xff
jne 0x14000a5bf
cmp dword [0x14004da98], edi
jne 0x14000a5bf
lea r8, str.GlobalASUS_ASLDRSrv_Splendid_Mode_Apply_Event
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
mov rsi, rax
test rax, rax
je 0x14000a6c7
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov ebx, edi
mov rcx, rsi
test eax, eax
sete bl
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test ebx, ebx
je 0x14000a6c7
mov ecx, dword [0x14004d88c]
or ecx, 2
mov dword [0x14004d88c], ecx
mov rsi, qword [rsp + 0x80]
test cl, 4
jne 0x14000a632
cmp dword [0x140047984], 0xff
jne 0x14000a629
lea r8, str.GlobalASUS_ASLDRSrv_Splendid_CPanel_Mode_Apply_Event
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x14000a6d2
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
mov rcx, rbx
sete dil
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test edi, edi
je 0x14000a6d2
mov ecx, dword [0x14004d88c]
or ecx, 4
mov dword [0x14004d88c], ecx
mov rdi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x78]
test cl, 8
jne 0x14000a65c
call fcn.14000a8b0
mov ecx, dword [0x14004d88c]
test eax, eax
je 0x14000a65c
or ecx, 8
mov dword [0x14004d88c], ecx
test ecx, ecx
je 0x14000a6dd
cmp dword [0x14004d884], 0
je 0x14000a683
mov rax, qword [0x14004f238]
test rax, rax
je 0x14000a683
mov edx, 0x31
mov rcx, rbp
call qword [0x1400335f0]
mov rax, qword [0x14004f230]
mov dword [0x14004d884], 1
test rax, rax
je 0x14000a6af
xor r9d, r9d
mov r8d, 0xbb8
mov rcx, rbp
lea edx, [r9 + 0x31]
call qword [0x1400335f0]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001a990
add rsp, 0x60
pop rbp
ret
mov ecx, dword [0x14004d88c]
jmp 0x14000a5c8
mov ecx, dword [0x14004d88c]
jmp 0x14000a632
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001a990
add rsp, 0x60
pop rbp
ret