Function at 0x100181a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8e8
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x11
mov esi, str.SYSTEMCurrentControlSetEnumPCI
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
push 0x20019
mov ecx, 0x14
mov esi, str.SYSTEMCurrentControlSetControlVideo_
lea edi, [ebp - 0xe0]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
lea ecx, [ebp - 0x90]
push ecx
push 0x80000002
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 1], bl
call esi
test eax, eax
je 0x10018211
pop edi
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x28]
push edx
push ebx
push ebx
push ebx
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10018206
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x28], ebx
jbe 0x100184ce
mov edi, dword [sym.imp.MSVCR100.dll_wcscat_s]
mov eax, dword [ebp - 0x20]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x2e0]
push edx
push eax
push ecx
mov dword [ebp - 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100184be
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0x2e0]
push eax
push ecx
call esi
test eax, eax
jne 0x100184be
mov eax, dword [ebp - 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x1c]
push edx
push ebx
push ebx
push ebx
push eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100184be
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x1c], ebx
jbe 0x100184af
lea esp, [esp]
mov eax, dword [ebp - 0x18]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x2e0]
push edx
push eax
push ecx
mov dword [ebp - 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1001849f
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 8]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0x2e0]
push eax
push ecx
call esi
test eax, eax
jne 0x1001849f
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x2e0]
push eax
push ebx
push ebx
push str.Class
push ecx
mov dword [ebp - 0x44], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10018495
lea ecx, [ebp - 0x2e0]
mov eax, str.Display
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10018367
cmp dx, bx
je 0x10018363
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10018367
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x10018341
xor eax, eax
jmp 0x1001836c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10018495
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x14]
push edx
push 0x20019
push ebx
push str.Control
push eax
call esi
test eax, eax
jne 0x10018495
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x14]
push edx
push 0x20019
push ebx
push str.Device_Parameters
push eax
call esi
test eax, eax
je 0x100183bd
mov ecx, dword [ebp - 8]
push ecx
jmp 0x10018499
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x2e0]
push eax
push ebx
push ebx
push str.VideoID
push ecx
mov dword [ebp - 0x3c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001847a
lea edx, [ebp - 0xe0]
push edx
lea eax, [ebp - 0x8e8]
push 0x50
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
lea ecx, [ebp - 0x2e0]
push ecx
lea edx, [ebp - 0x8e8]
push 0x200
push edx
call edi
push 0x1001e59c
lea eax, [ebp - 0x8e8]
push 0x200
push eax
call edi
add esp, 0x24
lea ecx, [ebp - 0x24]
push ecx
push 0x20019
push ebx
lea edx, [ebp - 0x8e8]
push edx
push 0x80000002
call esi
test eax, eax
jne 0x10018470
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x4e8]
push ecx
push ebx
push ebx
push str.DriverVersion
push edx
mov dword [ebp - 0x4c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10018470
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
jne 0x100184af
jmp 0x1001849f
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x1c]
jb 0x100182c0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
jne 0x100184ce
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x28]
jb 0x10018242
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
je 0x10018206
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x4e8]
push str._d._d._d._d
push ecx
call dword [sym.imp.MSVCR100.dll_swscanf_s]
mov eax, dword [ebp - 0x48]
xor edx, edx
shld edx, eax, 0x10
shl eax, 0x10
or eax, dword [ebp - 0x40]
xor esi, esi
or edx, esi
shld edx, eax, 0x10
shl eax, 0x10
or eax, dword [ebp - 0x30]
or edx, esi
shld edx, eax, 0x10
add esp, 0x18
shl eax, 0x10
or eax, dword [ebp - 0x38]
pop edi
or edx, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret