Function at 0x47de50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [0x4fa7dc]
push 2
push 0
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
cmp eax, 0xffffffff
je 0x47e158
movups xmm0, xmmword [0x4fa7c0]
movups xmmword [esp + 0x28], xmm0
movups xmm0, xmmword [0x4fa7b4]
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 0x47e150
xor ebp, ebp
mov dword [esp + 0x18], esi
jmp 0x47ded0
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_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 0x47e150
sub esp, 0x18
movaps xmm0, xmmword [0x4fa770]
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 0x47debe
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 0x47deb3
mov eax, dword [esp + 8]
test eax, eax
je 0x47deb3
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_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 0x47deaa
mov dword [esp], esi
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x47dfd4
mov eax, ecx
and eax, 0x7f
jne 0x47dfd4
mov edx, dword [esp]
movzx eax, byte [edx + 0x3a]
shl eax, 4
and eax, 0xf00
movzx esi, byte [edx + 0x38]
or esi, eax
je 0x47e14a
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 0x47e14a
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 0x47dfe4
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 sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ecx, esi
mov dword [esi], eax
mov ecx, dword [esi + 8]
jmp 0x47dfe6
mov edx, dword [esp]
test edx, edx
jne 0x47e14a
jmp 0x47deb3
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 0x47e019
cmp eax, 0xff
jne 0x47e026
mov esi, dword [esp + 0xc]
mov dword [esi + 0x1e], 0
jmp 0x47e04b
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 0x47e0ed
jl 0x47e0ed
add ecx, edx
mov dword [esp + 4], ecx
mov ecx, edx
sub ecx, 0xffffff80
mov eax, edx
jmp 0x47e08c
lea ecx, [eax + 0x80]
cmp ecx, dword [esp + 4]
jae 0x47e0f1
mov edx, eax
mov eax, ecx
cmp byte [edx + 0x80], 2
jne 0x47e080
cmp byte [edx + 0x81], 3
jb 0x47e080
mov bh, byte [edx + 0x82]
cmp bh, 5
jb 0x47e080
mov dl, 4
mov ecx, 4
jmp 0x47e0cb
add dl, dh
inc dl
movzx ecx, dl
cmp dl, bh
jae 0x47e080
mov bl, byte [eax + ecx]
mov dh, bl
and dh, 0x1f
cmp bl, 0xe0
jb 0x47e0c0
test dh, dh
je 0x47e0c0
movzx ecx, byte [ecx + eax + 1]
and cl, 0xfe
cmp cl, 6
jne 0x47e0c0
mov al, 1
jmp 0x47e0f3
xor eax, eax
jmp 0x47e0fa
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 fcn.00471cc0
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 0x47deab
xor edi, edi
test esi, esi
jne 0x47e15d
jmp 0x47e164
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