Function at 0x140183780
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.1401e44c0
sub rsp, rax
mov rax, qword [0x14039a678]
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 0x140183854
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 0x140183834
mov r8, r15
lea rdx, [rbp - 0x10]
mov rcx, r12
call fcn.1400e83c0
nop
jmp 0x140183d8b
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 0x140183a66
xor r12d, r12d
mov dword [rsp + 0x58], r12d
mov rcx, rbx
mov rbx, r12
mov qword [rbp - 0x80], rbx
test rcx, rcx
je 0x140183899
call fcn.1401e3efc
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 0x140183a3e
mov rsi, r12
mov rdi, rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140183965
mov esi, dword [rsp + 0x50]
mov ecx, esi
call fcn.1401e3f7c
mov rbx, rax
test rax, rax
je 0x140183909
mov r8d, esi
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
jmp 0x14018390c
mov rbx, r12
mov rsi, rbx
mov qword [rbp - 0x80], rbx
test rdi, rdi
je 0x140183920
mov rcx, rdi
call fcn.1401e3efc
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 0x1401838d5
test rdi, rdi
je 0x140183a3e
mov rsi, r15
inc rsi
cmp word [rdi + rsi*2], 0
jne 0x140183971
mov rdi, r15
nop
inc rdi
cmp word [r14 + rdi*2], 0
jne 0x140183980
test rsi, rsi
je 0x140183a3e
test rdi, rdi
je 0x140183a3e
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, [0x1402aa1e8]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcstok_s
test rax, rax
je 0x140183a1d
xor edi, edi
mov rdx, rax
mov rcx, r12
call fcn.14021c1b8
test rax, rax
cmove r14d, edi
lea r8, [rsp + 0x60]
lea rdx, [0x1402aa1e8]
xor ecx, ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcstok_s
test rax, rax
jne 0x1401839f3
mov rcx, r12
call fcn.1401e344a
mov rcx, rsi
call fcn.1401e344a
test r14d, r14d
jne 0x140183b0e
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 0x140183880
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 0x140183a90
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x58]
call fcn.1400e83c0
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 0x140183cb8
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, [0x1402aa300]
cmp rax, rsi
jbe 0x140183c71
lea rax, [r8 + rsi]
cmp r14, rax
ja 0x140183c71
cmp rsi, r14
ja 0x140183c66
xor edi, edi
jmp 0x140183c76
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, [0x1402aa1f0]
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.140183710
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 0x140183a61
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 0x140183c56
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 0x140183a61
mov rdi, rsi
sub rdi, r14
sar rdi, 1
jmp 0x140183c76
mov edi, 0x38
lea rcx, [rsi + 0x70]
add r8, 2
mov rdx, rsi
call fcn.14021bb20
add rdi, rdi
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call fcn.14021bb20
lea rcx, [rsi + rdi]
mov r8d, 0x70
sub r8, rdi
lea rdx, [r14 + 0x70]
add rdx, rdi
call fcn.14021bb20
lea rax, [rbp - 0x58]
xor esi, esi
jmp 0x140183cd8
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.14011dd60
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.14017ee40
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140183d48
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140183d43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140183db8
call fcn.1401e3784
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 0x140183d63
mov r8, r15
lea rdx, [rbp - 0x10]
mov rcx, r12
call fcn.1400e83c0
nop
test rbx, rbx
je 0x140183d8b
mov rcx, rbx
call fcn.1401e3efc
mov rax, r12
mov rcx, qword [rbp + 0x1230]
xor rcx, rsp
call fcn.1401e3ce0
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