Function at 0x140167d30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1240]
mov eax, 0x1340
call fcn.1401c8030
sub rsp, rax
mov rax, qword [0x14035cb78]
xor rax, rsp
mov qword [rbp + 0x1230], rax
mov r14, rdx
mov qword [rsp + 0x68], rdx
mov r12, rcx
mov qword [rsp + 0x70], rcx
mov qword [rbp - 0x80], rcx
xor esi, esi
mov ebx, esi
mov qword [rbp - 0x80], rbx
mov dword [rsp + 0x50], esi
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
lea r8, str.NO_HWID
lea edx, [rsi + 0x20]
lea rcx, [rbp - 0x10]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s
lea r9d, [rsi + 6]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x140167e04
mov qword [r12], rsi
mov qword [r12 + 0x10], rsi
mov qword [r12 + 0x18], 7
mov word [r12], si
lea rax, [rbp - 0x10]
mov r15, r13
inc r15
cmp word [rax + r15*2], 0
jne 0x140167de4
mov r8, r15
lea rdx, [rbp - 0x10]
mov rcx, r12
call fcn.1400d07a0
nop
jmp 0x14016833b
mov dword [rbp - 0x38], 0x20
mov dword [rsp + 0x54], esi
lea r8, [rbp - 0x38]
xor edx, edx
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
mov r15, 0xffffffffffffffff
test eax, eax
je 0x140168016
xor r12d, r12d
mov dword [rsp + 0x58], r12d
mov rcx, rbx
mov rbx, r12
mov qword [rbp - 0x80], rbx
test rcx, rcx
je 0x140167e49
call fcn.1401c7a6c
mov dword [rsp + 0x50], r12d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x58]
mov r8d, 1
lea rdx, [rbp - 0x38]
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x140167fee
mov rsi, r12
mov rdi, rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140167f15
mov esi, dword [rsp + 0x50]
mov ecx, esi
call fcn.1401c7aec
mov rbx, rax
test rax, rax
je 0x140167eb9
mov r8d, esi
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
jmp 0x140167ebc
mov rbx, r12
mov rsi, rbx
mov qword [rbp - 0x80], rbx
test rdi, rdi
je 0x140167ed0
mov rcx, rdi
call fcn.1401c7a6c
mov eax, dword [rsp + 0x50]
test rbx, rbx
cmove eax, r12d
mov dword [rsp + 0x50], eax
mov rdi, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x58]
mov r8d, 1
lea rdx, [rbp - 0x38]
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x140167e85
test rdi, rdi
je 0x140167fee
mov rsi, r15
inc rsi
cmp word [rdi + rsi*2], 0
jne 0x140167f21
mov rdi, r15
nop
inc rdi
cmp word [r14 + rdi*2], 0
jne 0x140167f30
test rsi, rsi
je 0x140167fee
test rdi, rdi
je 0x140167fee
mov r14d, 1
mov qword [rsp + 0x60], r12
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsdup
mov r12, rax
lea rdx, [rsi + 1]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsupr_s
mov rcx, qword [rsp + 0x68]
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsdup
mov rsi, rax
lea rdx, [rdi + 1]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsupr_s
lea r8, [rsp + 0x60]
lea rdx, [0x140284700]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcstok_s
test rax, rax
je 0x140167fcd
xor edi, edi
mov rdx, rax
mov rcx, r12
call fcn.1401ffd48
test rax, rax
cmove r14d, edi
lea r8, [rsp + 0x60]
lea rdx, [0x140284700]
xor ecx, ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcstok_s
test rax, rax
jne 0x140167fa3
mov rcx, r12
call fcn.1401c6fc2
mov rcx, rsi
call fcn.1401c6fc2
test r14d, r14d
jne 0x1401680be
mov r14, qword [rsp + 0x68]
xor r12d, r12d
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
lea r8, [rbp - 0x38]
mov edx, eax
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x140167e30
xor esi, esi
mov r12, qword [rsp + 0x70]
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], si
lea rax, [rbp - 0x10]
mov r8, r15
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140168040
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x58]
call fcn.1400d07a0
nop
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x40]
mov rax, rdx
sub rax, rcx
lea r14, str._AsusUtility__GetDriverVersionByHwid__DriverVersion_is:
cmp rax, 0x38
jb 0x140168268
lea rax, [rcx + 0x38]
mov qword [rbp - 0x48], rax
lea rsi, [rbp - 0x58]
cmp rdx, 8
cmovae rsi, qword [rbp - 0x58]
lea r8, [rcx + rcx]
lea rax, [0x140284820]
cmp rax, rsi
jbe 0x140168221
lea rax, [r8 + rsi]
cmp r14, rax
ja 0x140168221
cmp rsi, r14
ja 0x140168216
xor edi, edi
jmp 0x140168226
xor esi, esi
mov qword [rsp + 0x60], rsi
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0xa30]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x230]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x54], 0x800
mov dword [rsp + 0x78], esi
lea r8, [0x140284708]
lea edx, [rsi + 0x20]
lea rcx, [rbp - 0x10]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8d, [rsi + 9]
lea rdx, [rbp - 0x38]
mov rcx, r13
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
lea r9, [rbp + 0x230]
lea r8, str.SYSTEMCurrentControlSetControlClass
lea rdx, str._s_s
lea rcx, [rbp + 0xa30]
call fcn.140167cc0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xa30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140168011
mov dword [rsp + 0x68], esi
mov dword [rsp + 0x7c], 0x200
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.DriverVersion
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140168206
lea r8, [rbp + 0x30]
lea edx, [rsi + 0x20]
lea rcx, [rbp - 0x10]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140168011
mov rdi, rsi
sub rdi, r14
sar rdi, 1
jmp 0x140168226
mov edi, 0x38
lea rcx, [rsi + 0x70]
add r8, 2
mov rdx, rsi
call fcn.1401ff6b0
add rdi, rdi
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call fcn.1401ff6b0
lea rcx, [rsi + rdi]
mov r8d, 0x70
sub r8, rdi
lea rdx, [r14 + 0x70]
add rdx, rdi
call fcn.1401ff6b0
lea rax, [rbp - 0x58]
xor esi, esi
jmp 0x140168288
mov edi, 0x38
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov edx, edi
lea rcx, [rbp - 0x58]
call fcn.140103d20
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea rcx, [rbp - 0x78]
call fcn.140163440
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x1401682f8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401682f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140168368
call fcn.1401c72f8
mov qword [r12], rsi
mov qword [r12 + 0x10], rsi
mov qword [r12 + 0x18], 7
mov word [r12], si
lea rax, [rbp - 0x10]
inc r15
cmp word [rax + r15*2], 0
jne 0x140168313
mov r8, r15
lea rdx, [rbp - 0x10]
mov rcx, r12
call fcn.1400d07a0
nop
test rbx, rbx
je 0x14016833b
mov rcx, rbx
call fcn.1401c7a6c
mov rax, r12
mov rcx, qword [rbp + 0x1230]
xor rcx, rsp
call fcn.1401c7850
mov rbx, qword [rsp + 0x1390]
add rsp, 0x1340
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
nop
int3