Function at 0x466460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51388d
mov eax, dword fs:[0]
push eax
sub esp, 0x6e0
mov eax, dword [0x55c640]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x6bc], esi
mov dword [ebp - 0x6e8], 0
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [ebp - 0x6ec], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0
push 0
push 0
push 2
push 0
push 0
mov dword [ebp - 4], 0
push 0x53e228
mov dword [ebp - 0x6e8], 1
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsExW]
mov dword [ebp - 0x6e0], eax
test eax, eax
je 0x466911
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c4], 0
call edi
cmp eax, 0x103
je 0x466911
mov esi, dword [ebp - 0x6e0]
lea eax, [ebp - 0x6b8]
mov dword [ebp - 0x6a0], 0
push eax
push dword [ebp - 0x6c4]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x6b8], xmm0
push esi
movq qword [ebp - 0x6a8], xmm0
mov dword [ebp - 0x6b8], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x4668f8
push 0
push 0x1ec
lea eax, [ebp - 0x690]
push eax
push 0
push 0
lea eax, [ebp - 0x6b8]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x466595
lea eax, [ebp - 0x690]
push eax
push str.UID:__s_n
jmp 0x46659d
call edi
push eax
push str.ERROR:__d_n
call fcn.00484f07
add esp, 8
lea eax, [ebp - 0x6b8]
push 0xf003f
push 1
push 0
push 1
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov dword [ebp - 0x6e4], eax
test eax, eax
je 0x4668e8
mov dword [ebp - 0x698], 0x80
xor esi, esi
jmp 0x4665e0
lea ecx, [ebp - 0x694]
mov dword [ebp - 0x694], 0x400
push ecx
lea ecx, [ebp - 0x4a0]
push ecx
lea ecx, [ebp - 0x69c]
push ecx
push 0
lea ecx, [ebp - 0x698]
push ecx
lea ecx, [ebp - 0xa0]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edi, eax
test edi, edi
jne 0x466651
mov eax, str.EDID
lea ecx, [ebp - 0xa0]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x466648
test dl, dl
je 0x466644
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x466648
add ecx, 2
add eax, 2
test dl, dl
jne 0x466628
xor eax, eax
jmp 0x46664d
sbb eax, eax
or eax, 1
test eax, eax
je 0x466669
inc esi
cmp edi, 0x103
je 0x4668ce
mov eax, dword [ebp - 0x6e4]
jmp 0x4665e0
push str.Found_value_EDID_n
call fcn.00484f07
xor eax, eax
add esp, 4
mov dword [ebp - 0x6c0], eax
cmp dword [ebp - 0x694], eax
jbe 0x4666c8
test al, 0xf
jne 0x46669d
push 0x53e0d4
call fcn.00484f07
mov eax, dword [ebp - 0x6c0]
add esp, 4
movzx eax, byte [ebp + eax - 0x4a0]
push eax
push str._02x
call fcn.00484f07
mov eax, dword [ebp - 0x6c0]
add esp, 8
inc eax
mov dword [ebp - 0x6c0], eax
cmp eax, dword [ebp - 0x694]
jb 0x466686
push 0x53e0d4
call fcn.00484f07
movzx eax, byte [ebp - 0x491]
push eax
movzx eax, byte [ebp - 0x492]
push eax
movzx eax, byte [ebp - 0x493]
push eax
movzx eax, byte [ebp - 0x494]
push eax
lea eax, [ebp - 0x1c]
push str._02X_02X_02X_02X
push eax
call fcn.004669c0
add esp, 0x1c
mov byte [ebp - 0x14], 0
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x6c8], 0xf
mov dword [ebp - 0x6cc], 0
mov byte [ebp - 0x6dc], 0
jne 0x46672c
xor ecx, ecx
jmp 0x46673b
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x466732
sub ecx, edx
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x6dc]
call fcn.004511b0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x6dc]
mov edx, dword [ebp - 0x6bc]
mov esi, dword [edx + 4]
cmp eax, esi
jae 0x466815
mov eax, dword [edx]
lea ecx, [ebp - 0x6dc]
cmp eax, ecx
ja 0x466815
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [ebp - 0x6bc]
cmp esi, dword [edx + 8]
jne 0x4667a6
push 1
mov ecx, edx
call fcn.00452ec0
mov edx, dword [ebp - 0x6bc]
mov eax, dword [edx]
lea ecx, [edi + edi*2]
mov edi, dword [edx + 4]
lea esi, [eax + ecx*8]
test edi, edi
je 0x4668af
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp dword [esi + 0x14], 0x10
jae 0x4667e9
mov eax, dword [esi + 0x10]
inc eax
je 0x4667f3
push eax
push esi
push edi
call fcn.00485d50
mov edx, dword [ebp - 0x6bc]
add esp, 0xc
jmp 0x4667f3
mov eax, dword [esi]
mov dword [edi], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
jmp 0x4668af
cmp esi, dword [edx + 8]
jne 0x466829
push 1
mov ecx, edx
call fcn.00452ec0
mov edx, dword [ebp - 0x6bc]
mov esi, dword [edx + 4]
test esi, esi
je 0x4668af
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [ebp - 0x6c8], 0x10
jae 0x466870
mov eax, dword [ebp - 0x6cc]
inc eax
je 0x466882
push eax
lea eax, [ebp - 0x6dc]
push eax
push esi
call fcn.00485d50
mov edx, dword [ebp - 0x6bc]
add esp, 0xc
jmp 0x466882
mov eax, dword [ebp - 0x6dc]
mov dword [esi], eax
mov dword [ebp - 0x6dc], 0
mov eax, dword [ebp - 0x6cc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x6c8]
mov dword [esi + 0x14], eax
mov dword [ebp - 0x6c8], 0xf
mov dword [ebp - 0x6cc], 0
mov byte [ebp - 0x6dc], 0
add dword [edx + 4], 0x18
mov byte [ebp - 4], 0
cmp dword [ebp - 0x6c8], 0x10
jb 0x4668ce
push dword [ebp - 0x6dc]
call fcn.00485250
add esp, 4
push dword [ebp - 0x6e4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x6e0]
jmp 0x4668f8
call edi
push eax
push str.ERROR:_d_n
call fcn.00484f07
add esp, 8
inc dword [ebp - 0x6c4]
call edi
cmp eax, 0x103
jne 0x466520
mov esi, dword [ebp - 0x6bc]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484516
mov esp, ebp
pop ebp
ret