Function at 0x4576a0
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x320
mov eax, dword [0x4e2204]
xor eax, esp
mov dword [esp + 0x31c], eax
mov eax, dword [esp + 0x324]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x4c3668
mov dword [esp + 0x110], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsExA]
mov esi, eax
mov dword [esp + 0x24], esi
cmp esi, ebx
je 0x457dcb
xorps xmm0, xmm0
movss xmm1, dword [0x4bb568]
lea ecx, [esp + 0x10c]
push ecx
movss dword [esp + 0x68], xmm0
movss dword [esp + 0x6c], xmm0
movss dword [esp + 0x70], xmm0
movss dword [esp + 0x74], xmm0
movss dword [esp + 0x78], xmm0
movss dword [esp + 0x7c], xmm0
movss dword [esp + 0x80], xmm0
movss dword [esp + 0x84], xmm0
movss dword [esp + 0x8c], xmm0
movss dword [esp + 0x90], xmm0
movss dword [esp + 0x94], xmm0
movss dword [esp + 0x9c], xmm0
movss dword [esp + 0xa0], xmm0
movss dword [esp + 0xa4], xmm0
movss dword [esp + 0xb0], xmm0
movss dword [esp + 0xb4], xmm0
movss dword [esp + 0xb8], xmm0
movss dword [esp + 0xc0], xmm0
movss dword [esp + 0xc4], xmm0
movss dword [esp + 0xc8], xmm0
pxor xmm0, xmm0
push ebx
movq qword [esp + 0x114], xmm0
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
movss dword [esp + 0x68], xmm1
mov byte [esp + 0x6c], bl
movss dword [esp + 0x90], xmm1
movss dword [esp + 0xa0], xmm1
movss dword [esp + 0xb0], xmm1
movss dword [esp + 0xb4], xmm1
movss dword [esp + 0xc4], xmm1
movss dword [esp + 0xd4], xmm1
movq qword [esp + 0x120], xmm0
movq qword [esp + 0x128], xmm0
mov dword [esp + 0x130], ebx
mov dword [esp + 0x118], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x457dbb
push 0x20019
push 1
push ebx
push 1
lea edx, [esp + 0x11c]
push edx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov ebp, eax
pxor xmm0, xmm0
mov dword [esp + 0x108], ebp
mov dword [esp + 0x28], ebx
movq qword [esp + 0x2c], xmm0
movq qword [esp + 0x34], xmm0
movq qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], ebx
cmp ebp, ebx
je 0x457b86
mov eax, dword [esp + 0xe0]
push 1
xor eax, eax
push 0x4cb498
mov dword [esp + 0xe8], eax
push ebp
lea eax, [esp + 0xe4]
push eax
mov edx, 0x4cb498
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf4], ebx
call fcn.00455560
mov edi, 0x100
call fcn.0045f460
mov esi, eax
mov eax, dword [esp + 0xd8]
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x24]
push edx
mov edi, esi
neg edi
push ebx
sbb edi, edi
push str.EDID
and edi, 0x100
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x457b62
mov eax, dword [esp + 0x14]
cmp eax, 0x80
je 0x45791a
cmp eax, 0x100
jb 0x457b62
movzx eax, byte [esi + 0x44]
movzx ebx, byte [esi + 0x43]
movzx ebp, byte [esi + 0x42]
mov ecx, eax
movzx edx, byte [esi + 0x17]
and eax, 0xf
shl eax, 8
add ebx, eax
movzx eax, byte [esi + 0x11]
add eax, 0x7c6
mov dword [esp + 0x1c], eax
mov al, byte [esi + 0x18]
and ecx, 0xf0
shl ecx, 4
and al, 2
add ebp, ecx
mov byte [esp + 0x1b], al
movzx eax, byte [esi + 0x19]
cvtsi2sd xmm0, edx
mulsd xmm0, qword [0x4d38e8]
addsd xmm0, qword [0x4bab50]
mov ecx, eax
shr ecx, 6
mov dword [esp + 0x28], ecx
mov edx, eax
mov ecx, eax
shr edx, 4
and eax, 3
and edx, 3
mov dword [esp + 0x34], eax
movzx eax, byte [esi + 0x1a]
mov dword [esp + 0x2c], edx
shr ecx, 2
and ecx, 3
mov edx, eax
shr edx, 6
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], edx
mov ecx, eax
mov edx, eax
shr ecx, 4
shr edx, 2
and ecx, 3
and edx, 3
and eax, 3
cvtsd2ss xmm0, xmm0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
movss dword [esp + 0xe8], xmm0
mov dword [esp + 0x40], edx
mov eax, 0x1b
lea ecx, [esp + 0x28]
movzx edx, byte [esi + eax]
add edx, edx
add edx, edx
add dword [ecx], edx
inc eax
add ecx, 4
cmp eax, 0x23
jb 0x4579d7
mov eax, dword [esp + 0x28]
fild dword [esp + 0x28]
test eax, eax
jge 0x4579fc
fadd qword [0x4d35b8]
fld qword [0x4d3bc0]
mov ecx, dword [esp + 0x2c]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0xd0]
fild dword [esp + 0x2c]
test ecx, ecx
jge 0x457a1f
fadd qword [0x4d35b8]
mov ecx, dword [esp + 0x30]
fmul st(1)
mov edx, dword [esp + 0xd0]
mov dword [esp + 0x64], edx
fstp dword [esp + 0xd4]
mov eax, dword [esp + 0xd4]
fild dword [esp + 0x30]
mov dword [esp + 0x68], eax
test ecx, ecx
jge 0x457a50
fadd qword [0x4d35b8]
mov edx, dword [esp + 0x34]
fmul st(1)
fstp dword [esp + 0xec]
fild dword [esp + 0x34]
test edx, edx
jge 0x457a6b
fadd qword [0x4d35b8]
mov edx, dword [esp + 0x38]
fmul st(1)
mov eax, dword [esp + 0xec]
mov dword [esp + 0x6c], eax
fstp dword [esp + 0xf0]
mov ecx, dword [esp + 0xf0]
fild dword [esp + 0x38]
mov dword [esp + 0x70], ecx
test edx, edx
jge 0x457a9c
fadd qword [0x4d35b8]
mov eax, dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 0xf8]
fild dword [esp + 0x3c]
test eax, eax
jge 0x457ab7
fadd qword [0x4d35b8]
mov eax, dword [esp + 0x40]
fmul st(1)
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0x74], ecx
fstp dword [esp + 0xfc]
mov edx, dword [esp + 0xfc]
fild dword [esp + 0x40]
mov dword [esp + 0x78], edx
test eax, eax
jge 0x457ae8
fadd qword [0x4d35b8]
mov ecx, dword [esp + 0x44]
fmul st(1)
fstp dword [esp + 0x100]
fild dword [esp + 0x44]
test ecx, ecx
jge 0x457b03
fadd qword [0x4d35b8]
mov edx, dword [esp + 0x100]
fmulp st(1)
lea ecx, [esp + 0x48]
push ecx
fstp dword [esp + 0x108]
mov eax, dword [esp + 0x108]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
call fcn.004575c0
mov edx, dword [esp + 0x1c]
mov al, byte [esp + 0x1b]
movss xmm0, dword [esp + 0xe8]
mov dword [esp + 0x50], ebp
mov ebp, dword [esp + 0x108]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], edx
mov byte [esp + 0x60], al
movss dword [esp + 0x5c], xmm0
xor ebx, ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x457b76
cmp esi, ebx
je 0x457b76
call fcn.0045f5a0
lea edi, [esp + 0xd8]
call fcn.004554e0
mov esi, dword [esp + 0x24]
push 0x1ff
lea ecx, [esp + 0x12d]
push ebx
push ecx
mov byte [esp + 0x134], 0
call fcn.004a1b50
add esp, 0xc
cmp dword [esp + 0x50], ebx
je 0x457c5e
cmp dword [esp + 0x54], ebx
je 0x457c5e
push ebx
push 0x200
lea edx, [esp + 0x130]
push edx
push ebx
push ebx
lea eax, [esp + 0x120]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x457c5e
lea eax, [esp + 0x128]
mov dword [esp + 0x14], ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x457bf0
sub eax, edx
push eax
lea ecx, [esp + 0x12c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0043c500
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x4c]
call fcn.00401250
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x457c4d
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x457c3e
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x457c4d
cmp eax, ebx
jne 0x457c4d
mov esi, edi
call fcn.0045f5a0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0xf4]
lea ecx, [esp + 0x48]
push ecx
call fcn.0045d010
lea ecx, [esp + 0x48]
call fcn.0041fa60
xorps xmm0, xmm0
mov eax, dword [esp + 0x20]
movss xmm1, dword [0x4bb568]
lea edx, [esp + 0x10c]
inc eax
push edx
movss dword [esp + 0x68], xmm0
movss dword [esp + 0x6c], xmm0
movss dword [esp + 0x70], xmm0
movss dword [esp + 0x74], xmm0
movss dword [esp + 0x78], xmm0
movss dword [esp + 0x7c], xmm0
movss dword [esp + 0x80], xmm0
movss dword [esp + 0x84], xmm0
movss dword [esp + 0x8c], xmm0
movss dword [esp + 0x90], xmm0
movss dword [esp + 0x94], xmm0
movss dword [esp + 0x9c], xmm0
movss dword [esp + 0xa0], xmm0
movss dword [esp + 0xa4], xmm0
movss dword [esp + 0xb0], xmm0
movss dword [esp + 0xb4], xmm0
movss dword [esp + 0xb8], xmm0
movss dword [esp + 0xc0], xmm0
movss dword [esp + 0xc4], xmm0
movss dword [esp + 0xc8], xmm0
pxor xmm0, xmm0
push eax
movq qword [esp + 0x114], xmm0
push esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
movss dword [esp + 0x68], xmm1
mov byte [esp + 0x6c], 0
movss dword [esp + 0x90], xmm1
movss dword [esp + 0xa0], xmm1
movss dword [esp + 0xb0], xmm1
movss dword [esp + 0xb4], xmm1
movss dword [esp + 0xc4], xmm1
movss dword [esp + 0xd4], xmm1
movq qword [esp + 0x120], xmm0
movq qword [esp + 0x128], xmm0
mov dword [esp + 0x130], ebx
mov dword [esp + 0x118], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x457836
lea ecx, [esp + 0x48]
call fcn.0041fa60
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [esp + 0x32c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.0049ceb0
add esp, 0x320
ret