Function at 0x140055140
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x690]
sub rsp, 0x790
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x7e0], rbx
mov rax, qword [0x14013f130]
xor rax, rsp
mov qword [rbp + 0x680], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rcx
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp + 4]
call fcn.1400b93c0
mov dword [rbp], 0x68
lea rdx, [rbp]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
lea rdx, [rbp + 0x28]
lea rcx, [rbp - 0x28]
call fcn.140053d00
nop
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x68]
call fcn.140054e10
nop
xor ebx, ebx
mov qword [rsp + 0x60], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov dword [rsp + 0x50], 0x4d36e96e
mov dword [rsp + 0x54], 0x11cee325
mov dword [rsp + 0x58], 0x8c1bf
mov dword [rsp + 0x5c], 0x1803e12b
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 0xa]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsExW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140055233
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
jmp 0x1400553c7
mov r14d, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x1400553a4
mov r12, qword [rbp - 0x50]
mov r13, qword [rbp - 0x58]
nop
mov dword [rbp - 0x48], 0x20
lea r8, [rbp - 0x48]
mov edx, r14d
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140055365
mov qword [rsp + 0x20], rbx
mov r9d, 0x208
lea r8, [rbp + 0x70]
lea rdx, [rbp - 0x48]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
je 0x140055365
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x78]
call fcn.140006320
nop
lea rdx, [rbp - 0x68]
cmp r12, 0x10
cmovae rdx, qword [rbp - 0x68]
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
mov r8, qword [rbp - 0x78]
cmp r8, r13
jne 0x14005535b
call fcn.1400b9780
test eax, eax
jne 0x14005535b
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [rax + 1]
lea rdx, [rbp - 0x48]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14005535b
mov dword [rsp + 0x48], 0x400
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x280]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.EDID
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14005537a
lea rcx, [rsp + 0x78]
call fcn.140007080
xor ebx, ebx
jmp 0x140055365
lea rcx, [rsp + 0x78]
call fcn.140007080
inc r14d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x1400553a4
jmp 0x140055250
mov eax, dword [rsp + 0x48]
lea r8, [rbp + 0x280]
add r8, rax
lea rdx, [rbp + 0x280]
lea rcx, [rsp + 0x60]
call fcn.140055aa0
nop
lea rcx, [rsp + 0x78]
call fcn.140007080
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rax, qword [rsp + 0x60]
mov qword [rsi], rax
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x10], rax
lea rcx, [rbp - 0x68]
call fcn.140007080
nop
lea rcx, [rbp - 0x28]
call fcn.140007080
mov rax, rsi
mov rcx, qword [rbp + 0x680]
xor rcx, rsp
call fcn.14009ab00
mov rbx, qword [rsp + 0x7e0]
add rsp, 0x790
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret