Function at 0x47e080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [0x4fa8bc]
push 2
push 0
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
cmp eax, 0xffffffff
je 0x47e388
movups xmm0, xmmword [0x4fa8a0]
movups xmmword [esp + 0x28], xmm0
movups xmm0, xmmword [0x4fa894]
movups xmmword [esp + 0x1c], xmm0
lea ebx, [esp + 0x1c]
push ebx
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x47e380
xor ebp, ebp
mov dword [esp + 0x18], esi
jmp 0x47e100
push esi
call sym._free
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
inc ebp
push ebx
push ebp
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x47e380
sub esp, 0x18
movaps xmm0, xmmword [0x4fa850]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
test eax, eax
je 0x47e0ee
mov edi, eax
mov dword [esp + 8], 0
lea eax, [esp + 8]
push eax
push 0
push 0
push 8
push str.EDID
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x47e0e3
mov eax, dword [esp + 8]
test eax, eax
je 0x47e0e3
push eax
call sym._malloc
add esp, 4
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
push 0
push 8
push str.EDID
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x47e0da
mov dword [esp], esi
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x47e204
mov eax, ecx
and eax, 0x7f
jne 0x47e204
mov edx, dword [esp]
movzx eax, byte [edx + 0x3a]
shl eax, 4
and eax, 0xf00
movzx esi, byte [edx + 0x38]
or esi, eax
je 0x47e37a
movzx eax, byte [edx + 0x3d]
shl eax, 4
and eax, 0xf00
mov dword [esp + 0x10], esi
movzx esi, byte [edx + 0x3b]
or esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x47e37a
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x4c]
mov eax, dword [edx]
mov ecx, dword [edx + 8]
cmp ecx, dword [edx + 0xc]
jne 0x47e214
mov esi, edx
lea edx, [ecx + ecx]
test ecx, ecx
mov ecx, 0x10
cmove edx, ecx
mov dword [esi + 0xc], edx
imul edx, dword [esi + 4]
push edx
push eax
call sym._realloc
add esp, 8
mov ecx, esi
mov dword [esi], eax
mov ecx, dword [esi + 8]
jmp 0x47e216
mov edx, dword [esp]
test edx, edx
jne 0x47e37a
jmp 0x47e0e3
mov esi, edx
lea edx, [ecx + 1]
mov dword [esi + 8], edx
imul ecx, dword [esi + 4]
lea edx, [eax + ecx]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx + 0xc], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx + 0x10], edx
mov edx, dword [esp]
movzx eax, byte [edx + 0x11]
test eax, eax
je 0x47e249
cmp eax, 0xff
jne 0x47e256
mov esi, dword [esp + 0xc]
mov dword [esi + 0x1e], 0
jmp 0x47e27b
movzx eax, ax
add eax, 0x7c6
mov esi, dword [esp + 0xc]
mov word [esi + 0x1e], ax
movzx eax, byte [edx + 0x10]
cmp al, 0xff
mov ecx, 0
cmove eax, ecx
movzx eax, al
mov word [esi + 0x20], ax
mov ecx, dword [esp + 4]
mov eax, dword [edx + 0xc]
mov dword [esi + 0x24], eax
cmp ecx, 0x81
jb 0x47e31d
jl 0x47e31d
add ecx, edx
mov dword [esp + 4], ecx
mov ecx, edx
sub ecx, 0xffffff80
mov eax, edx
jmp 0x47e2bc
lea ecx, [eax + 0x80]
cmp ecx, dword [esp + 4]
jae 0x47e321
mov edx, eax
mov eax, ecx
cmp byte [edx + 0x80], 2
jne 0x47e2b0
cmp byte [edx + 0x81], 3
jb 0x47e2b0
mov bh, byte [edx + 0x82]
cmp bh, 5
jb 0x47e2b0
mov dl, 4
mov ecx, 4
jmp 0x47e2fb
add dl, dh
inc dl
movzx ecx, dl
cmp dl, bh
jae 0x47e2b0
mov bl, byte [eax + ecx]
mov dh, bl
and dh, 0x1f
cmp bl, 0xe0
jb 0x47e2f0
test dh, dh
je 0x47e2f0
movzx ecx, byte [ecx + eax + 1]
and cl, 0xfe
cmp cl, 6
jne 0x47e2f0
mov al, 1
jmp 0x47e323
xor eax, eax
jmp 0x47e32a
xor eax, eax
lea ebx, [esp + 0x1c]
mov edx, dword [esp]
mov esi, dword [esp + 0xc]
mov byte [esi + 0x1c], al
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [0x5052b0]
mov dword [esi + 8], eax
push esi
push edx
call dbg.ffEdidGetName
mov edx, dword [esp + 8]
add esp, 8
movzx eax, byte [edx + 0x44]
and eax, 0xfffffff0
shl eax, 4
movzx ecx, byte [edx + 0x42]
or ecx, eax
mov dword [esi + 0x14], ecx
movzx eax, byte [edx + 0x44]
and eax, 0xf
shl eax, 8
movzx ecx, byte [edx + 0x43]
or ecx, eax
mov dword [esi + 0x18], ecx
push edx
jmp 0x47e0db
xor edi, edi
test esi, esi
jne 0x47e38d
jmp 0x47e394
mov edi, str.SetupDiGetClassDevsW_GUID_DEVCLASS_MONITOR__failed
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, edi
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret