Function at 0x140044088
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140123108]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r14, rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 9
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetEnumPCI
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r13d, r13d
test eax, eax
je 0x140044121
call fcn.140060914
lea r8, str.Get_nVidia_Registry_failed
mov rcx, qword [rax]
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax + 0x38]
call qword [case.0x140050ed0.0]
xor al, al
jmp 0x1400445aa
mov ecx, 0x400
call fcn.14006a200
mov rdi, rax
test rax, rax
jne 0x140044141
call fcn.140060914
lea r8, str.Allocate_memory_failed_in_GetRegInfo
jmp 0x140044105
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1b0], xmm0
movdqa xmm1, xmmword [0x1400fc250]
movdqu xmmword [rbp + 0x1b0], xmm1
mov word [rbp + 0x1a0], r13w
mov r12d, r13d
mov esi, 0x200
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8, rdi
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea r15, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
jmp 0x1400444eb
lea rcx, str.VEN_10DE
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r8, eax
lea rdx, str.VEN_10DE
mov rcx, rdi
call fcn.14009bb98
test eax, eax
jne 0x1400444ba
lea rdx, str.DEV_
mov rcx, rdi
call fcn.140088a30
mov rbx, rax
test rax, rax
je 0x1400444ba
lea rcx, str.DEV_
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rbx, [rbx + rcx*2]
lea rdx, [0x1400f8ca4]
mov rcx, rbx
call fcn.140088a30
test rax, rax
je 0x1400444ba
mov qword [rbp + 0x190], r13
mov qword [rbp + 0x198], r13
mov qword [rbp + 0x190], r13
mov qword [rbp + 0x198], 7
mov word [rbp + 0x180], r13w
sub rax, rbx
sar rax, 1
movsxd r8, eax
mov rdx, rbx
lea rcx, [rbp + 0x180]
call fcn.140001a78
nop
lea rcx, [rbp + 0x1a0]
call fcn.140001a14
mov r8d, 0x20
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x1a0]
call fcn.140087bd0
mov qword [rbp + 0x190], r13
mov qword [rbp + 0x198], 7
mov word [rbp + 0x180], r13w
lea rcx, [rbp + 0x180]
call fcn.140001a14
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 9
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400444ba
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8, rdi
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x140044309
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400444ba
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 9
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400444ba
mov r15d, r13d
mov dword [rsp + 0x40], esi
xor edx, edx
jmp 0x140044393
lea rdx, str.Control
mov rcx, rdi
call fcn.14009bb60
test eax, eax
jne 0x140044385
mov rax, qword [r14 + 8]
cmp qword [r14 + 0x10], rax
je 0x140044373
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
lea rdx, [rbp + 0x1a0]
mov rcx, rax
call fcn.140001ae4
add qword [r14 + 8], 0x20
jmp 0x140044385
lea r8, [rbp + 0x1a0]
mov rdx, rax
mov rcx, r14
call fcn.1400261a0
inc r15d
mov dword [rsp + 0x40], 0x200
mov edx, r15d
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8, rdi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
mov esi, eax
je 0x140044338
cmp eax, 0x103
je 0x140044498
call fcn.140060914
mov r9d, 1
mov r8, qword [rax]
lea edx, [r9 + 1]
lea rcx, [rsp + 0x70]
call fcn.14000c3c0
nop
lea rbx, [rax + 0x10]
lea rdx, str.Enum_h3rdKeyStr_0x
mov rcx, rbx
call fcn.140015a24
test rbx, rbx
jne 0x140044409
mov rcx, r13
jmp 0x140044413
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
call fcn.140003b3c
mov edx, esi
mov rcx, rbx
call fcn.1400139a0
lea rdx, [0x1400f8ca8]
mov rcx, rbx
call fcn.140015a24
test rbx, rbx
jne 0x14004443b
mov rcx, r13
jmp 0x140044445
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
call fcn.140003b3c
mov edx, r15d
mov rcx, rbx
call fcn.1400139a0
lea rdx, str._failed
mov rcx, rbx
call fcn.140015a24
nop
lea rcx, [rbp + 0x18]
call fcn.14000c350
lea rax, [rbp + 0x18]
mov qword [rsp + 0x60], rax
lea r15, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x18], r15
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.140067b68
jmp 0x14004449f
lea r15, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x200
inc r12d
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8, rdi
mov edx, r12d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400441a5
call fcn.140060914
mov r9d, 1
mov r8, qword [rax]
lea edx, [r9 + 1]
lea rcx, [rbp + 0x78]
call fcn.14000c3c0
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetRegInfo_RegEnumKeyEx_Failed
mov rcx, rbx
call fcn.140015a24
mov edx, r12d
mov rcx, rbx
call fcn.1400139a0
nop
lea rcx, [rbp + 0x120]
call fcn.14000c350
lea rax, [rbp + 0x120]
mov qword [rsp + 0x60], rax
mov qword [rbp + 0x120], r15
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x120], rax
lea rcx, [rbp + 0x120]
call fcn.140067b68
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call fcn.1400696d0
call fcn.140060914
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.Exit_GetRegInfo
mov edx, 3
mov rax, qword [rax + 0x38]
call qword [case.0x140050ed0.0]
nop
lea rcx, [rbp + 0x1a0]
call fcn.140001a14
mov al, 1
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400697f0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret