Function at 0x503639
Capabilities:
Query or enumerate registry key

Disassembly:
push pe_nt_image_headers32
mov eax, 0x55832a
call fcn.00523c97
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 0x503686
push str.Get_nVidia_Registry_failed_n
xor ecx, ecx
inc ecx
call fcn.00492b4d
pop ecx
xor al, al
jmp 0x5039cf
push 0x400
call fcn.005156f1
pop ecx
mov dword [ebp - 0x6c], eax
cmp eax, ebx
jne 0x50369f
push str.Allocate_memory_failed_in_GetRegInfo
jmp 0x503676
lea ecx, [ebp - 0x4c]
call fcn.0040337c
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 0x503920
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.0051aeef
add esp, 0xc
cmp eax, ebx
jne 0x50390f
push str.DEV_
push dword [ebp - 0x6c]
call fcn.00517a96
pop ecx
pop ecx
mov dword [ebp - 0x74], eax
cmp eax, ebx
je 0x50390f
push str.DEV_
call edi
mov ecx, dword [ebp - 0x74]
lea edi, [ecx + eax*2]
push 0x5bf540
push edi
call fcn.00517a96
pop ecx
pop ecx
cmp eax, ebx
je 0x50390f
sub eax, edi
sar eax, 1
push eax
mov ecx, edi
lea eax, [ebp - 0x68]
call fcn.0040484e
mov byte [ebp - 4], 3
mov ebx, eax
lea eax, [ebp - 0x4c]
call fcn.0040403a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.004033b1
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 0x50390d
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 0x50379c
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x50390d
lea eax, [ebp - 0x88]
push eax
push 9
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x78]
call edi
test eax, eax
jne 0x50390d
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 0x5037fd
push str.Control
push dword [ebp - 0x6c]
call fcn.00518732
pop ecx
pop ecx
cmp eax, edi
jne 0x5037ec
mov edi, dword [ebp - 0x8c]
lea ecx, [ebp - 0x4c]
call fcn.0040de6b
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 0x5037c9
cmp eax, 0x103
jne 0x50382d
push str.Enum_h3rdKeyStr_ERROR_NO_MORE_ITEMS_n
push 4
pop ecx
call fcn.00492b4d
pop ecx
jmp 0x5038fa
lea eax, [ebp - 0x124]
push eax
call fcn.004036c8
mov ebx, eax
mov byte [ebp - 4], 4
push str.Enum_h3rdKeyStr_0x
push ebx
call fcn.00405d7d
pop ecx
pop ecx
cmp ebx, edi
jne 0x503854
xor eax, eax
jmp 0x50385b
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.0041056c
push str._index_0x
push ebx
call fcn.00405d7d
pop ecx
pop ecx
cmp ebx, edi
jne 0x50388b
xor eax, eax
jmp 0x503892
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.0041056c
push str._failed
push ebx
call fcn.00405d7d
pop ecx
pop ecx
lea eax, [ebp - 0x30]
push eax
mov eax, ebx
call fcn.00403732
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x5038d5
lea eax, [ebp - 0x30]
push eax
push 2
pop ecx
call fcn.00492b4d
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004033b1
mov byte [ebp - 4], 0
lea eax, [ebp - 0x124]
call fcn.00402669
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 0x5036c4
lea eax, [ebp - 0x124]
push eax
call fcn.004036c8
mov esi, eax
mov byte [ebp - 4], 1
push str.GetRegInfo_RegEnumKeyEx_Failed
push esi
call fcn.00405d7d
pop ecx
pop ecx
push dword [ebp - 0x80]
push esi
call fcn.0041056c
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.00403732
push 2
pop ecx
mov byte [ebp - 4], cl
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x50397c
lea eax, [ebp - 0x30]
push eax
call fcn.00492b4d
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004033b1
mov byte [ebp - 4], bl
lea eax, [ebp - 0x124]
call fcn.00402669
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x6c]
call fcn.00515a0e
mov dword [esp], str.Exit_GetRegInfo_n
push 3
pop ecx
call fcn.00492b4d
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004033b1
mov al, 1
call fcn.00523d1a
ret