Function at 0x403762
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x420450]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x438
mov eax, 0x41a2a2
call fcn.0040e847
mov esi, dword [ebp + 0x230]
mov edi, dword [ebp + 0x234]
xor ebx, ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], esi
mov byte [ebp - 0x29], 0
cmp esi, ebx
je 0x4042a0
push ebx
lea ecx, [ebp]
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], 1
mov dword [ebp + 0x18], 0xf
call fcn.0040249e
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x150]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.OperatingMode
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x404295
mov ebx, 0x410
push ebx
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.0040df00
mov dword [ebp - 0x30], ebx
mov ebx, 0x104
push ebx
lea eax, [ebp + 0x1c]
push 0
push eax
call fcn.0040df00
add esp, 0x18
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push str.PrimarySerialNo
push dword [ebp - 0x10]
call esi
lea eax, [ebp + 0x1c]
lea ecx, [edi + 0x38]
push eax
call fcn.0040336c
push 0x410
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.0040df00
push ebx
lea eax, [ebp + 0x1c]
push 0
push eax
mov dword [ebp - 0x30], 0x410
call fcn.0040df00
add esp, 0x18
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push str.SecondarySerialNo
push dword [ebp - 0x10]
call esi
lea eax, [ebp + 0x1c]
lea ecx, [edi + 0x8c]
push eax
call fcn.0040336c
push 0x410
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.0040df00
push ebx
lea eax, [ebp + 0x1c]
push 0
push eax
mov dword [ebp - 0x30], 0x410
call fcn.0040df00
add esp, 0x18
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push str.ThirdSerialNo
push dword [ebp - 0x10]
call esi
lea eax, [ebp + 0x1c]
lea ecx, [edi + 0xe0]
push eax
call fcn.0040336c
push 0x410
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.0040df00
push ebx
lea eax, [ebp + 0x1c]
push 0
push eax
mov dword [ebp - 0x30], 0x410
call fcn.0040df00
add esp, 0x18
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push str.FourthSerialNo
push dword [ebp - 0x10]
call esi
lea eax, [ebp + 0x1c]
lea ecx, [edi + 0x134]
push eax
call fcn.0040336c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.PrimaryDevice
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x1c], 0
je 0x403999
mov ecx, dword [ebp - 0x28]
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call fcn.004034d2
cmp dword [ebp + 0x14], 0
jbe 0x403994
lea eax, [ebp]
push eax
lea ecx, [edi + 0x38]
call fcn.00402e63
test eax, eax
je 0x403994
mov ecx, dword [ebp - 0x28]
push dword [ecx + 0x1c]
lea eax, [edi + 0x38]
push dword [ebp - 0x1c]
push eax
call fcn.004036dd
test eax, eax
jbe 0x403999
mov ecx, dword [ebp - 0x28]
mov dword [edi], eax
xor dword [ecx + 0x1c], eax
jmp 0x403999
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.SecondaryDevice
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x1c], 0
je 0x403a0d
mov ecx, dword [ebp - 0x28]
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call fcn.004034d2
cmp dword [ebp + 0x14], 0
jbe 0x403a07
lea eax, [ebp]
push eax
lea ecx, [edi + 0x8c]
call fcn.00402e63
test eax, eax
je 0x403a07
mov ecx, dword [ebp - 0x28]
push dword [ecx + 0x1c]
lea eax, [edi + 0x8c]
push dword [ebp - 0x1c]
push eax
call fcn.004036dd
test eax, eax
jbe 0x403a0d
mov ecx, dword [ebp - 0x28]
mov dword [edi + 0x54], eax
xor dword [ecx + 0x1c], eax
jmp 0x403a0d
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x54], eax
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.ThirdDevice
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x1c], 0
je 0x403a87
mov ecx, dword [ebp - 0x28]
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call fcn.004034d2
cmp dword [ebp + 0x14], 0
jbe 0x403a7e
lea eax, [ebp]
push eax
lea ecx, [edi + 0xe0]
call fcn.00402e63
test eax, eax
je 0x403a7e
mov ecx, dword [ebp - 0x28]
push dword [ecx + 0x1c]
lea eax, [edi + 0xe0]
push dword [ebp - 0x1c]
push eax
call fcn.004036dd
test eax, eax
jbe 0x403a87
mov ecx, dword [ebp - 0x28]
mov dword [edi + 0xa8], eax
xor dword [ecx + 0x1c], eax
jmp 0x403a87
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0xa8], eax
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.FourthDevice
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x1c], 0
je 0x403b01
mov ecx, dword [ebp - 0x28]
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call fcn.004034d2
cmp dword [ebp + 0x14], 0
jbe 0x403af8
lea eax, [ebp]
push eax
lea ecx, [edi + 0x134]
call fcn.00402e63
test eax, eax
je 0x403af8
mov ecx, dword [ebp - 0x28]
push dword [ecx + 0x1c]
lea eax, [edi + 0x134]
push dword [ebp - 0x1c]
push eax
call fcn.004036dd
test eax, eax
jbe 0x403b01
mov ecx, dword [ebp - 0x28]
mov dword [edi + 0xfc], eax
xor dword [ecx + 0x1c], eax
jmp 0x403b01
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0xfc], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.PrimaryXX
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.PrimaryYY
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.PrimaryRR
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.PrimaryBPP
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x58]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.SecondaryXX
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x5c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.SecondaryYY
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x60]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.SecondaryRR
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x64]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.SecondaryBPP
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0xac]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.ThirdXX
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0xb0]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.ThirdYY
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0xb4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.ThirdRR
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0xb8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.ThirdBPP
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x100]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.FourthXX
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x104]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.FourthYY
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x108]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.FourthRR
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x10c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.FourthBPP
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.PrimaryAspectScaling
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x68]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.SecondaryAspectScaling
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0xbc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.ThirdAspectScaling
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x110]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.FourthAspectScaling
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x18]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.PrimaryDisplayOrientation
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x6c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.SecondaryDisplayOrientation
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0xc0]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.ThirdDisplayOrientation
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x114]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.FourthDisplayOrientation
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.PrimaryTop
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.PrimaryLeft
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.PrimaryRight
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.PrimaryBottom
push dword [ebp - 0x10]
call esi
push ebx
lea eax, [ebp + 0x120]
push 0
push eax
call fcn.0040df00
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x120]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.SecondaryTop
push dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
call esi
lea eax, [ebp + 0x120]
push eax
call fcn.0040e91f
push ebx
mov dword [edi + 0x74], eax
lea eax, [ebp + 0x120]
push 0
push eax
call fcn.0040df00
and dword [ebp - 0x14], 0
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x120]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.SecondaryLeft
push dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
call esi
lea eax, [ebp + 0x120]
push eax
call fcn.0040e91f
push ebx
mov dword [edi + 0x78], eax
lea eax, [ebp + 0x120]
push 0
push eax
call fcn.0040df00
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x120]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.SecondaryRight
push dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
call esi
lea eax, [ebp + 0x120]
push eax
call fcn.0040e91f
push ebx
mov dword [edi + 0x7c], eax
lea eax, [ebp + 0x120]
push 0
push eax
call fcn.0040df00
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x120]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.SecondaryBottom
push dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
call esi
lea eax, [ebp + 0x120]
push eax
call fcn.0040e91f
push ebx
mov dword [edi + 0x80], eax
lea eax, [ebp + 0x120]
push 0
push eax
call fcn.0040df00
push ebx
lea eax, [ebp + 0x120]
push 0
push eax
call fcn.0040df00
add esp, 0x1c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x120]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.ThirdTop
push dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
call esi
lea eax, [ebp + 0x120]
push eax
call fcn.0040e91f
push ebx
mov dword [edi + 0xc8], eax
lea eax, [ebp + 0x120]
push 0
push eax
call fcn.0040df00
add esp, 0x10
and dword [ebp - 0x14], 0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x120]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.ThirdLeft
push dword [ebp - 0x10]
call esi
lea eax, [ebp + 0x120]
push eax
call fcn.0040e91f
push ebx
mov dword [edi + 0xcc], eax
lea eax, [ebp + 0x120]
push 0
push eax
call fcn.0040df00
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x120]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.ThirdRight
push dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
call esi
lea eax, [ebp + 0x120]
push eax
call fcn.0040e91f
push ebx
mov dword [edi + 0xd0], eax
lea eax, [ebp + 0x120]
push 0
push eax
call fcn.0040df00
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x120]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.ThirdBottom
push dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
call esi
lea eax, [ebp + 0x120]
push eax
call fcn.0040e91f
push ebx
mov dword [edi + 0xd4], eax
lea eax, [ebp + 0x120]
push 0
push eax
call fcn.0040df00
push ebx
lea eax, [ebp + 0x120]
push 0
push eax
call fcn.0040df00
add esp, 0x1c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x120]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.FourthTop
push dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
call esi
lea eax, [ebp + 0x120]
push eax
call fcn.0040e91f
push ebx
mov dword [edi + 0x11c], eax
lea eax, [ebp + 0x120]
push 0
push eax
call fcn.0040df00
and dword [ebp - 0x14], 0
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x120]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.FourthLeft
push dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
call esi
lea eax, [ebp + 0x120]
push eax
call fcn.0040e91f
push ebx
mov dword [edi + 0x120], eax
lea eax, [ebp + 0x120]
push 0
push eax
call fcn.0040df00
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x120]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.FourthRight
push dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
call esi
lea eax, [ebp + 0x120]
push eax
call fcn.0040e91f
push ebx
mov dword [edi + 0x124], eax
lea eax, [ebp + 0x120]
push 0
push eax
call fcn.0040df00
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x120]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.FourthBottom
push dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
call esi
lea eax, [ebp + 0x120]
push eax
call fcn.0040e91f
push ebx
mov dword [edi + 0x128], eax
xor ebx, ebx
lea eax, [ebp + 0x120]
push ebx
push eax
call fcn.0040df00
lea eax, [ebp - 0x14]
add esp, 0x10
push eax
lea eax, [edi + 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.PrimaryTVStandard
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x70]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.SecondaryTVStandard
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0xc4]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.ThirdTVStandard
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x118]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.FourthTVStandard
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.PrimaryTVHDTV
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x84]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.SecondaryTVHDTV
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0xd8]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.ThirdTVHDTV
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x12c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.FourthTVHDTV
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.PrimaryInterlaced
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x88]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.SecondaryInterlaced
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0xdc]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.ThirdInterlaced
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
push eax
add edi, 0x130
push edi
lea eax, [ebp - 0x18]
push eax
push ebx
push str.FourthInterlaced
push dword [ebp - 0x10]
call esi
mov byte [ebp - 0x29], 1
push ebx
push 1
lea ecx, [ebp]
call fcn.00402e87
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.0040df7a
add ebp, 0x228
leave
ret 8