Function at 0x50353a
Capabilities:
Query or enumerate registry key

Disassembly:
push pe_nt_image_headers32
mov eax, 0x557fcb
call fcn.005239fe
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x84]
push eax
push 9
xor ebx, ebx
push ebx
push str.SYSTEMCurrentControlSetEnumPCI
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x503587
push str.Get_nVidia_Registry_failed_n
xor ecx, ecx
inc ecx
call fcn.00492cc7
pop ecx
xor al, al
jmp 0x5038d0
push 0x400
call fcn.00515451
pop ecx
mov dword [ebp - 0x6c], eax
cmp eax, ebx
jne 0x5035a0
push str.Allocate_memory_failed_in_GetRegInfo
jmp 0x503577
lea ecx, [ebp - 0x4c]
call fcn.0040333d
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x80], ebx
push ebx
jmp 0x503821
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.VEN_10DE
call edi
push eax
push str.VEN_10DE
push dword [ebp - 0x6c]
call fcn.0051ac4f
add esp, 0xc
cmp eax, ebx
jne 0x503810
push str.DEV_
push dword [ebp - 0x6c]
call fcn.005177f5
pop ecx
pop ecx
mov dword [ebp - 0x74], eax
cmp eax, ebx
je 0x503810
push str.DEV_
call edi
mov ecx, dword [ebp - 0x74]
lea edi, [ecx + eax*2]
push 0x5bf480
push edi
call fcn.005177f5
pop ecx
pop ecx
cmp eax, ebx
je 0x503810
sub eax, edi
sar eax, 1
push eax
mov ecx, edi
lea eax, [ebp - 0x68]
call fcn.00404836
mov byte [ebp - 4], 3
mov ebx, eax
lea eax, [ebp - 0x4c]
call fcn.00404022
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00403372
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x78]
push eax
push 9
push 0
push dword [ebp - 0x6c]
push dword [ebp - 0x84]
call edi
test eax, eax
jne 0x50380e
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], 0x200
push ebx
push dword [ebp - 0x78]
call esi
test eax, eax
je 0x50369d
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x50380e
lea eax, [ebp - 0x88]
push eax
push 9
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x78]
call edi
test eax, eax
jne 0x50380e
xor edi, edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x7c], edi
push edi
jmp 0x5036fe
push str.Control
push dword [ebp - 0x6c]
call fcn.00518492
pop ecx
pop ecx
cmp eax, edi
jne 0x5036ed
mov edi, dword [ebp - 0x8c]
lea ecx, [ebp - 0x4c]
call fcn.0040dea7
xor edi, edi
inc dword [ebp - 0x7c]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x7c]
push dword [ebp - 0x88]
mov dword [ebp - 0x70], 0x200
call esi
mov dword [ebp - 0x74], eax
cmp eax, edi
je 0x5036ca
cmp eax, 0x103
jne 0x50372e
push str.Enum_h3rdKeyStr_ERROR_NO_MORE_ITEMS_n
push 4
pop ecx
call fcn.00492cc7
pop ecx
jmp 0x5037fb
lea eax, [ebp - 0x124]
push eax
call fcn.00403689
mov ebx, eax
mov byte [ebp - 4], 4
push str.Enum_h3rdKeyStr_0x
push ebx
call fcn.00405d65
pop ecx
pop ecx
cmp ebx, edi
jne 0x503755
xor eax, eax
jmp 0x50375c
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
mov ecx, dword [eax + 0x14]
push dword [ebp - 0x74]
and ecx, 0xfffff9ff
or ecx, 0x800
push ebx
mov dword [eax + 0x14], ecx
call fcn.0041058a
push str._index_0x
push ebx
call fcn.00405d65
pop ecx
pop ecx
cmp ebx, edi
jne 0x50378c
xor eax, eax
jmp 0x503793
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add eax, ebx
mov ecx, dword [eax + 0x14]
push dword [ebp - 0x7c]
and ecx, 0xfffff9ff
or ecx, 0x800
push ebx
mov dword [eax + 0x14], ecx
call fcn.0041058a
push str._failed
push ebx
call fcn.00405d65
pop ecx
pop ecx
lea eax, [ebp - 0x30]
push eax
mov eax, ebx
call fcn.004036f3
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x5037d6
lea eax, [ebp - 0x30]
push eax
push 2
pop ecx
call fcn.00492cc7
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00403372
mov byte [ebp - 4], 0
lea eax, [ebp - 0x124]
call fcn.0040262a
push dword [ebp - 0x88]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x78]
call edi
xor ebx, ebx
inc dword [ebp - 0x80]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
mov dword [ebp - 0x70], 0x200
call esi
cmp eax, ebx
je 0x5035c5
lea eax, [ebp - 0x124]
push eax
call fcn.00403689
mov esi, eax
mov byte [ebp - 4], 1
push str.GetRegInfo_RegEnumKeyEx_Failed
push esi
call fcn.00405d65
pop ecx
pop ecx
push dword [ebp - 0x80]
push esi
call fcn.0041058a
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.004036f3
push 2
pop ecx
mov byte [ebp - 4], cl
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x50387d
lea eax, [ebp - 0x30]
push eax
call fcn.00492cc7
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00403372
mov byte [ebp - 4], bl
lea eax, [ebp - 0x124]
call fcn.0040262a
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x6c]
call fcn.0051576e
mov dword [esp], str.Exit_GetRegInfo_n
push 3
pop ecx
call fcn.00492cc7
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00403372
mov al, 1
call fcn.00523a81
ret