Function at 0x1400ac290
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xcc0
mov rax, qword [0x1402bf5c8]
xor rax, rsp
mov qword [rsp + 0xcb0], rax
mov rsi, rcx
xor ebx, ebx
mov r13d, ebx
mov dword [rsp + 0x58], ebx
xor r12b, r12b
lea r9d, [rbx + 2]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14023e408]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r15, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x1400ac2f6
xor al, al
jmp 0x1400ac685
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0x80], 0x20
mov r14d, ebx
mov edi, 5
lea rax, str.21.09
mov qword [rsp + 0x40], rax
nop dword [rax + rax]
lea r8, [rsp + 0x80]
mov edx, r14d
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x1400ac632
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x208
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 9]
lea rdx, [rsp + 0x80]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
cmp eax, 1
jne 0x1400ac67b
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x2b0]
call fcn.1401d04f0
mov dword [rsp + 0x58], ebx
lea r8, [rsp + 0xa0]
lea rdx, str.SYSTEMCurrentControlSetControlClass_s
lea rcx, [rsp + 0x2b0]
call fcn.1400a4440
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x2b0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400ac3ef
xor al, al
jmp 0x1400ac685
mov dword [rsp + 0x58], 0x100
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.MatchingDeviceId
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, str.1002
lea rcx, [rsp + 0xa0]
call fcn.1401d0680
test rax, rax
jne 0x1400ac46b
lea rdx, str.1022
lea rcx, [rsp + 0xa0]
call fcn.1401d0680
test rax, rax
jne 0x1400ac46b
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r14d
jmp 0x1400ac330
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x4b0]
call fcn.1401d04f0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ReleaseVersion
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400ac4e2
mov r12b, 1
lea rax, [rsp + 0x4b0]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400ac4c5
lea rdx, [rsp + 0x4b0]
mov rcx, rsi
call fcn.140018360
jmp 0x1400ac54b
cmp eax, 0xea
jne 0x1400ac54b
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ReleaseVersion
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400ac54b
mov r12b, 1
lea rax, [rsp + 0x4b0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400ac530
lea rdx, [rsp + 0x4b0]
mov rcx, rsi
call fcn.140018360
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], 7
mov r8, rdi
cmp qword [rsi + 0x10], 5
cmovb r8, qword [rsi + 0x10]
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400ac578
mov rdx, qword [rsi]
lea rcx, [rsp + 0x60]
call fcn.140018360
or r13d, 1
lea r10, [rsp + 0x60]
mov r11, qword [rsp + 0x78]
cmp r11, 8
setae bl
mov rcx, qword [rsp + 0x60]
cmovae r10, rcx
mov rdi, qword [rsp + 0x70]
mov r8, rdi
cmp rdi, 5
mov eax, 5
cmova r8, rax
lea r9, str.21.09
test r8, r8
je 0x1400ac5f6
movzx eax, word [r10]
mov edx, 0x32
cmp ax, dx
jb 0x1400ac5fc
sub r10, qword [rsp + 0x40]
cmp ax, dx
ja 0x1400ac5fc
cmp r8, 1
je 0x1400ac5f6
dec r8
add r9, 2
movzx eax, word [r9 + r10]
movzx edx, word [r9]
cmp ax, dx
jae 0x1400ac5d7
jmp 0x1400ac5fc
cmp rdi, 5
je 0x1400ac642
test bl, bl
je 0x1400ac632
lea rdx, [r11*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ac62d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ac6b2
call fcn.1401a9a50
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
nop
movzx eax, r12b
jmp 0x1400ac685
test bl, bl
je 0x1400ac674
lea rdx, [r11*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ac66f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ac6b2
call fcn.1401a9a50
mov edi, 5
xor ebx, ebx
inc r14d
jmp 0x1400ac330
mov rcx, qword [rsp + 0xcb0]
xor rcx, rsp
call fcn.1401a9a30
lea r11, [rsp + 0xcc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.1401e3dbc
int3