Function at 0x1400030a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14005b0e8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [0x1417bba30]
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x30], 0
mov rbp, r9
mov dword [rsp + 0x28], 0xfffe
xor r9d, r9d
mov rsi, rcx
add rdi, 0x250
mov rdx, r14
mov rcx, rbx
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x140003345
mov r9, qword [0x1417bba30]
cmp dword [r9 + 0x7c], 5
ja 0x140003164
cmp dword [rsp + 0xa8], 0
je 0x14000314c
lea r8, [r9 + 0x250]
lea rax, [0x1417cbca0]
sub r8, rax
nop
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140003144
add rax, 2
test ecx, ecx
jne 0x140003130
test edx, edx
je 0x140003345
lea r8, [r9 + 0x250]
mov edx, 0x20
lea rcx, [0x1417cbca0]
call fcn.140031c30
mov r8d, 4
lea rdx, str.Monitor
mov rcx, rsi
call fcn.1400117b0
mov rcx, qword [0x1417bba30]
mov rsi, rax
add rcx, 0x250
call fcn.140004890
mov r8, rax
lea rdx, str.HWID
xor r9d, r9d
mov rcx, rsi
call fcn.1400118b0
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
mov rdx, r14
mov dword [rsp + 0x20], 1
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rbx, rax
test rax, rax
jne 0x1400032cb
mov rsi, qword [0x1417bba30]
mov rbx, qword [rsi + 0x240]
test rbx, rbx
jne 0x14000323b
mov ecx, 0x1b
lea edx, [rax + 1]
add ecx, 2
call qword [sym.imp.msvcrt.dll_calloc]
mov qword [rsi + 0x240], rax
mov rdx, rax
test rax, rax
je 0x14000335d
movups xmm0, xmmword [str.SetupDiOpenDevRegKey_failed]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14003a870]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x14003a878]
mov word [rax + 0x18], cx
movzx eax, byte [0x14003a87a]
mov byte [rdx + 0x1a], al
jmp 0x140003345
mov edx, 1
lea eax, [rdx - 1]
cmp byte [rax + rbx], 0
jne 0x140003251
mov edi, edx
cmp byte [rdi + rbx], 0
je 0x140003255
inc edx
jmp 0x140003240
lea ecx, [rdx + 0x1b]
mov rax, 0xffffffffffffffff
add ecx, 2
cmovb rcx, rax
lea edx, [rax + 2]
call qword [sym.imp.msvcrt.dll_calloc]
mov rbp, rax
test rax, rax
je 0x14000335d
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
movups xmm0, xmmword [str.SetupDiOpenDevRegKey_failed]
mov rcx, rbx
movups xmmword [rdi + rbp], xmm0
movsd xmm0, qword [0x14003a870]
movsd qword [rdi + rbp + 0x10], xmm0
movzx eax, word [0x14003a878]
mov word [rdi + rbp + 0x18], ax
movzx eax, byte [0x14003a87a]
mov byte [rdi + rbp + 0x1a], al
call qword [sym.imp.msvcrt.dll_free]
mov qword [rsi + 0x240], rbp
jmp 0x140003345
xor edx, edx
mov dword [rsp + 0x40], 0xffff
mov r8d, 0xffff
mov rcx, rdi
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x40]
mov r9d, 8
mov qword [rsp + 0x30], rax
lea r8, str.EDID
mov qword [rsp + 0x28], rdi
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x14000331e
cmp eax, 0xea
jne 0x14000333c
mov eax, dword [rsp + 0xa0]
mov r9, rbp
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.140002b60
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140029990
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, str.Failed_to_allocate_memory_in_NWL_NodeAppendMultiSz
mov ecx, 0xe
call fcn.140001650
int3