Function at 0x457340
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 + 0x120], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsExA]
mov esi, eax
mov dword [esp + 0xf8], esi
cmp esi, ebx
je 0x457a20
xorps xmm0, xmm0
movss xmm1, dword [0x4bb568]
lea ecx, [esp + 0x10c]
push ecx
movss dword [esp + 0x60], xmm0
movss dword [esp + 0x64], xmm0
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 + 0x84], xmm0
movss dword [esp + 0x88], xmm0
movss dword [esp + 0x8c], xmm0
movss dword [esp + 0x94], xmm0
movss dword [esp + 0x98], xmm0
movss dword [esp + 0x9c], xmm0
movss dword [esp + 0xa8], xmm0
movss dword [esp + 0xac], xmm0
movss dword [esp + 0xb0], xmm0
movss dword [esp + 0xb8], xmm0
movss dword [esp + 0xbc], xmm0
movss dword [esp + 0xc0], xmm0
pxor xmm0, xmm0
push ebx
movq qword [esp + 0x114], xmm0
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
movss dword [esp + 0x60], xmm1
mov byte [esp + 0x64], bl
movss dword [esp + 0x88], xmm1
movss dword [esp + 0x98], xmm1
movss dword [esp + 0xa8], xmm1
movss dword [esp + 0xac], xmm1
movss dword [esp + 0xbc], xmm1
movss dword [esp + 0xcc], 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 0x457a10
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 + 0x20], ebx
movq qword [esp + 0x24], xmm0
movq qword [esp + 0x2c], xmm0
movq qword [esp + 0x34], xmm0
mov dword [esp + 0x3c], ebx
cmp ebp, ebx
je 0x45781c
mov eax, dword [esp + 0xe4]
push 1
xor eax, eax
push 0x4cb498
mov dword [esp + 0xec], eax
push ebp
lea eax, [esp + 0xe8]
push eax
mov edx, 0x4cb498
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf8], ebx
call fcn.00455250
mov edi, 0x100
call fcn.0045eff0
mov esi, eax
mov eax, dword [esp + 0xdc]
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x20]
push edx
mov edi, esi
neg edi
push ebx
sbb edi, edi
push str.EDID
and edi, 0x100
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4577f5
cmp dword [esp + 0x10], 0x80
jne 0x4577f5
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 + 0x18], eax
mov al, byte [esi + 0x18]
and ecx, 0xf0
shl ecx, 4
and al, 2
add ebp, ecx
mov byte [esp + 0x17], al
movzx eax, byte [esi + 0x19]
cvtsi2sd xmm0, edx
mulsd xmm0, qword [0x4d38b8]
addsd xmm0, qword [0x4bab50]
mov ecx, eax
shr ecx, 6
mov dword [esp + 0x20], ecx
mov edx, eax
mov ecx, eax
shr edx, 4
and eax, 3
and edx, 3
mov dword [esp + 0x2c], eax
movzx eax, byte [esi + 0x1a]
mov dword [esp + 0x24], edx
shr ecx, 2
and ecx, 3
mov edx, eax
shr edx, 6
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], 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 + 0x34], ecx
mov dword [esp + 0x3c], eax
movss dword [esp + 0xec], xmm0
mov dword [esp + 0x38], edx
mov eax, 0x1b
lea ecx, [esp + 0x20]
lea esp, [esp]
movzx edx, byte [esi + eax]
add edx, edx
add edx, edx
add dword [ecx], edx
inc eax
add ecx, 4
cmp eax, 0x23
jb 0x457670
mov eax, dword [esp + 0x20]
fild dword [esp + 0x20]
test eax, eax
jge 0x457695
fadd qword [0x4d3588]
fld qword [0x4d3b90]
mov ecx, dword [esp + 0x24]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0xcc]
fild dword [esp + 0x24]
test ecx, ecx
jge 0x4576b8
fadd qword [0x4d3588]
mov ecx, dword [esp + 0x28]
fmul st(1)
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x5c], edx
fstp dword [esp + 0xd0]
mov eax, dword [esp + 0xd0]
fild dword [esp + 0x28]
mov dword [esp + 0x60], eax
test ecx, ecx
jge 0x4576e9
fadd qword [0x4d3588]
mov edx, dword [esp + 0x2c]
fmul st(1)
fstp dword [esp + 0xf0]
fild dword [esp + 0x2c]
test edx, edx
jge 0x457704
fadd qword [0x4d3588]
mov edx, dword [esp + 0x30]
fmul st(1)
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x64], eax
fstp dword [esp + 0xf4]
mov ecx, dword [esp + 0xf4]
fild dword [esp + 0x30]
mov dword [esp + 0x68], ecx
test edx, edx
jge 0x457735
fadd qword [0x4d3588]
mov eax, dword [esp + 0x34]
fmul st(1)
fstp dword [esp + 0xfc]
fild dword [esp + 0x34]
test eax, eax
jge 0x457750
fadd qword [0x4d3588]
mov eax, dword [esp + 0x38]
fmul st(1)
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x6c], ecx
fstp dword [esp + 0x100]
mov edx, dword [esp + 0x100]
fild dword [esp + 0x38]
mov dword [esp + 0x70], edx
test eax, eax
jge 0x457781
fadd qword [0x4d3588]
mov ecx, dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 0xd4]
fild dword [esp + 0x3c]
test ecx, ecx
jge 0x45779c
fadd qword [0x4d3588]
mov edx, dword [esp + 0xd4]
fmulp st(1)
lea ecx, [esp + 0x40]
push ecx
fstp dword [esp + 0xdc]
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
call fcn.00457260
mov edx, dword [esp + 0x18]
mov al, byte [esp + 0x17]
movss xmm0, dword [esp + 0xec]
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x108]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], edx
mov byte [esp + 0x58], al
movss dword [esp + 0x54], xmm0
xor ebx, ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x457809
cmp esi, ebx
je 0x457809
call fcn.0045f130
lea edi, [esp + 0xdc]
call fcn.004551d0
mov esi, dword [esp + 0xf8]
push 0x1ff
lea ecx, [esp + 0x12d]
push ebx
push ecx
mov byte [esp + 0x134], 0
call fcn.004a16b0
add esp, 0xc
cmp dword [esp + 0x48], ebx
je 0x4578b9
cmp dword [esp + 0x4c], ebx
je 0x4578b9
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 0x4578b9
lea eax, [esp + 0x128]
mov dword [esp + 0x10], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x457877
sub eax, edx
push eax
lea ecx, [esp + 0x12c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0043c200
lea eax, [esp + 0x10]
push eax
lea edi, [esp + 0x44]
call fcn.00401250
lea ecx, [esp + 0x10]
call fcn.00401420
mov ecx, edi
mov edi, dword [esp + 0x104]
push ecx
call fcn.0045cb90
lea ecx, [esp + 0x40]
call fcn.0041f790
xorps xmm0, xmm0
mov eax, dword [esp + 0x1c]
movss xmm1, dword [0x4bb568]
lea edx, [esp + 0x10c]
inc eax
push edx
movss dword [esp + 0x60], xmm0
movss dword [esp + 0x64], xmm0
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 + 0x84], xmm0
movss dword [esp + 0x88], xmm0
movss dword [esp + 0x8c], xmm0
movss dword [esp + 0x94], xmm0
movss dword [esp + 0x98], xmm0
movss dword [esp + 0x9c], xmm0
movss dword [esp + 0xa8], xmm0
movss dword [esp + 0xac], xmm0
movss dword [esp + 0xb0], xmm0
movss dword [esp + 0xb8], xmm0
movss dword [esp + 0xbc], xmm0
movss dword [esp + 0xc0], xmm0
pxor xmm0, xmm0
push eax
movq qword [esp + 0x114], xmm0
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
movss dword [esp + 0x60], xmm1
mov byte [esp + 0x64], 0
movss dword [esp + 0x88], xmm1
movss dword [esp + 0x98], xmm1
movss dword [esp + 0xa8], xmm1
movss dword [esp + 0xac], xmm1
movss dword [esp + 0xbc], xmm1
movss dword [esp + 0xcc], 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 0x4574d3
lea ecx, [esp + 0x40]
call fcn.0041f790
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.0049ca20
add esp, 0x320
ret