Function at 0x405b61
Capabilities:
Set registry value

Disassembly:
sub esp, 0x27c
mov eax, dword [0x427520]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
push ebp
mov ebp, dword [esp + 0x288]
push esi
mov esi, dword [esp + 0x290]
push edi
lea eax, [esp + 0x18]
push eax
push 0x41f5fc
xor edi, edi
push 0x15
push edi
push 0x41f65c
mov dword [esp + 0x34], ecx
mov byte [esp + 0x27], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call ebx
test eax, eax
jl 0x405bcf
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x405bcf
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
lea eax, [esp + 0x14]
push eax
push 0x41f61c
push 0x15
push edi
push 0x41f67c
call ebx
test byte [esi], 0xf0
mov ebx, 0x160
je 0x405c40
cmp eax, edi
jl 0x405c40
cmp dword [esp + 0x14], edi
je 0x405c40
push ebx
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040f5b0
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push ebx
push dword [esi]
mov byte [esp + 0x92], 0xf9
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp byte [esp + 0x85], 1
jne 0x405c39
and dword [esp + 0x40], 0xfff00000
mov dword [esi + 0x30], 1
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x1c], ecx
test byte [esi + 0x5c], 0xf0
je 0x405c9d
cmp eax, edi
jl 0x405c9d
cmp dword [esp + 0x14], edi
je 0x405c9d
push ebx
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040f5b0
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push ebx
push dword [esi + 0x5c]
mov byte [esp + 0x92], 0xf9
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp byte [esp + 0x85], 1
jne 0x405c96
and dword [esp + 0x40], 0xfff00000
mov dword [esi + 0x8c], 1
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x78], ecx
lea edi, [esi + 0xb8]
test byte [edi], 0xf0
je 0x405d03
test eax, eax
jl 0x405d03
cmp dword [esp + 0x14], 0
je 0x405d03
push ebx
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0040f5b0
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push ebx
push dword [edi]
mov byte [esp + 0x92], 0xf9
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp byte [esp + 0x85], 1
jne 0x405cf9
and dword [esp + 0x40], 0xfff00000
mov dword [esi + 0xe8], 1
mov ecx, dword [esp + 0x40]
mov dword [esi + 0xd4], ecx
lea edi, [esi + 0x114]
test byte [edi], 0xf0
je 0x405d69
test eax, eax
jl 0x405d69
cmp dword [esp + 0x14], 0
je 0x405d77
push ebx
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0040f5b0
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x24]
push edx
push ebx
push dword [edi]
mov byte [esp + 0x92], 0xf9
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp byte [esp + 0x85], 1
jne 0x405d5f
and dword [esp + 0x40], 0xfff00000
mov dword [esi + 0x144], 1
mov eax, dword [esp + 0x40]
mov dword [esi + 0x130], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405d77
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test ebp, ebp
je 0x4064f7
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
pop ebx
push ebx
lea eax, [esi + 0x170]
push eax
push ebx
push 0
push str.OperatingMode
push ebp
call edi
test eax, eax
jne 0x4064d9
push ebx
push esi
push ebx
push eax
push str.PrimaryDevice
push ebp
call edi
push ebx
lea eax, [esi + 0x5c]
push eax
push ebx
push 0
push str.SecondaryDevice
push ebp
call edi
push ebx
lea eax, [esi + 0xb8]
push eax
push ebx
push 0
push str.ThirdDevice
push ebp
call edi
push ebx
lea eax, [esi + 0x114]
push eax
push ebx
push 0
push str.FourthDevice
push ebp
call edi
push ebx
lea eax, [esi + 4]
push eax
push ebx
push 0
push str.PrimaryXX
push ebp
call edi
push ebx
lea eax, [esi + 8]
push eax
push ebx
push 0
push str.PrimaryYY
push ebp
call edi
push ebx
lea eax, [esi + 0xc]
push eax
push ebx
push 0
push str.PrimaryRR
push ebp
call edi
push ebx
lea eax, [esi + 0x10]
push eax
push ebx
push 0
push str.PrimaryBPP
push ebp
call edi
push ebx
lea eax, [esi + 0x60]
push eax
push ebx
push 0
push str.SecondaryXX
push ebp
call edi
push ebx
lea eax, [esi + 0x64]
push eax
push ebx
push 0
push str.SecondaryYY
push ebp
call edi
push ebx
lea eax, [esi + 0x68]
push eax
push ebx
push 0
push str.SecondaryRR
push ebp
call edi
push ebx
lea eax, [esi + 0x6c]
push eax
push ebx
push 0
push str.SecondaryBPP
push ebp
call edi
push ebx
lea eax, [esi + 0xbc]
push eax
push ebx
push 0
push str.ThirdXX
push ebp
call edi
push ebx
lea eax, [esi + 0xc0]
push eax
push ebx
push 0
push str.ThirdYY
push ebp
call edi
push ebx
lea eax, [esi + 0xc4]
push eax
push ebx
push 0
push str.ThirdRR
push ebp
call edi
push ebx
lea eax, [esi + 0xc8]
push eax
push ebx
push 0
push str.ThirdBPP
push ebp
call edi
push ebx
lea eax, [esi + 0x118]
push eax
push ebx
push 0
push str.FourthXX
push ebp
call edi
push ebx
lea eax, [esi + 0x11c]
push eax
push ebx
push 0
push str.FourthYY
push ebp
call edi
push ebx
lea eax, [esi + 0x120]
push eax
push ebx
push 0
push str.FourthRR
push ebp
call edi
push ebx
lea eax, [esi + 0x124]
push eax
push ebx
push 0
push str.FourthBPP
push ebp
call edi
push ebx
lea eax, [esi + 0x14]
push eax
push ebx
push 0
push str.PrimaryAspectScaling
push ebp
call edi
push ebx
lea eax, [esi + 0x70]
push eax
push ebx
push 0
push str.SecondaryAspectScaling
push ebp
call edi
push ebx
lea eax, [esi + 0xcc]
push eax
push ebx
push 0
push str.ThirdAspectScaling
push ebp
call edi
push ebx
lea eax, [esi + 0x128]
push eax
push ebx
push 0
push str.FourthAspectScaling
push ebp
call edi
push ebx
lea eax, [esi + 0x38]
push eax
push ebx
push 0
push str.PrimaryScalingCustomX
push ebp
call edi
push ebx
lea eax, [esi + 0x3c]
push eax
push ebx
push 0
push str.PrimaryScalingCustomy
push ebp
call edi
push ebx
lea eax, [esi + 0x94]
push eax
push ebx
push 0
push str.SecondaryScalingCustomX
push ebp
call edi
push ebx
lea eax, [esi + 0x98]
push eax
push ebx
push 0
push str.SecondaryScalingCustomy
push ebp
call edi
push ebx
lea eax, [esi + 0x18]
push eax
push ebx
push 0
push str.PrimaryDisplayOrientation
push ebp
call edi
push ebx
lea eax, [esi + 0x74]
push eax
push ebx
push 0
push str.SecondaryDisplayOrientation
push ebp
call edi
push ebx
lea eax, [esi + 0xd0]
push eax
push ebx
push 0
push str.ThirdDisplayOrientation
push ebp
call edi
push ebx
lea eax, [esi + 0x12c]
push eax
push ebx
push 0
push str.FourthDisplayOrientation
push ebp
call edi
push ebx
lea eax, [esi + 0x1c]
push eax
push ebx
push 0
push str.PrimaryTVStandard
push ebp
call edi
push ebx
lea eax, [esi + 0x78]
push eax
push ebx
push 0
push str.SecondaryTVStandard
push ebp
call edi
push ebx
lea eax, [esi + 0xd4]
push eax
push ebx
push 0
push str.ThirdTVStandard
push ebp
call edi
push ebx
lea eax, [esi + 0x130]
push eax
push ebx
push 0
push str.FourthTVStandard
push ebp
call edi
push ebx
lea eax, [esi + 0x30]
push eax
push ebx
push 0
push str.PrimaryTVHDTV
push ebp
call edi
push ebx
lea eax, [esi + 0x8c]
push eax
push ebx
push 0
push str.SecondaryTVHDTV
push ebp
call edi
push ebx
lea eax, [esi + 0xe8]
push eax
push ebx
push 0
push str.ThirdTVHDTV
push ebp
call edi
push ebx
lea eax, [esi + 0x144]
push eax
push ebx
push 0
push str.FourthTVHDTV
push ebp
call edi
push ebx
lea eax, [esi + 0x20]
push eax
push ebx
push 0
push str.PrimaryTop
push ebp
call edi
push ebx
lea eax, [esi + 0x2c]
push eax
push ebx
push 0
push str.PrimaryBottom
push ebp
call edi
push ebx
lea eax, [esi + 0x24]
push eax
push ebx
push 0
push str.PrimaryLeft
push ebp
call edi
push ebx
lea eax, [esi + 0x28]
push eax
push ebx
push 0
push str.PrimaryRight
push ebp
call edi
mov ebx, 0x104
push ebx
lea eax, [esp + 0x188]
push 0
push eax
call fcn.0040f5b0
push 0xa
lea eax, [esp + 0x194]
push eax
push dword [esi + 0x7c]
call fcn.00410480
add esp, 0x18
push ebx
lea eax, [esp + 0x188]
push eax
push 1
push 0
push str.SecondaryTop
push ebp
call edi
push ebx
lea eax, [esp + 0x188]
push 0
push eax
call fcn.0040f5b0
push 0xa
lea eax, [esp + 0x194]
push eax
push dword [esi + 0x88]
call fcn.00410480
add esp, 0x18
push ebx
lea eax, [esp + 0x188]
push eax
push 1
push 0
push str.SecondaryBottom
push ebp
call edi
push ebx
lea eax, [esp + 0x188]
push 0
push eax
call fcn.0040f5b0
push 0xa
lea eax, [esp + 0x194]
push eax
push dword [esi + 0x80]
call fcn.00410480
add esp, 0x18
push ebx
lea eax, [esp + 0x188]
push eax
push 1
push 0
push str.SecondaryLeft
push ebp
call edi
push ebx
lea eax, [esp + 0x188]
push 0
push eax
call fcn.0040f5b0
push 0xa
lea eax, [esp + 0x194]
push eax
push dword [esi + 0x84]
call fcn.00410480
add esp, 0x18
push ebx
lea eax, [esp + 0x188]
push eax
push 1
push 0
push str.SecondaryRight
push ebp
call edi
push ebx
lea eax, [esp + 0x188]
push 0
push eax
call fcn.0040f5b0
push 0xa
lea eax, [esp + 0x194]
push eax
push dword [esi + 0xd8]
call fcn.00410480
add esp, 0x18
push ebx
lea eax, [esp + 0x188]
push eax
push 1
push 0
push str.ThirdTop
push ebp
call edi
push ebx
lea eax, [esp + 0x188]
push 0
push eax
call fcn.0040f5b0
push 0xa
lea eax, [esp + 0x194]
push eax
push dword [esi + 0xe4]
call fcn.00410480
add esp, 0x18
push ebx
lea eax, [esp + 0x188]
push eax
push 1
push 0
push str.ThirdBottom
push ebp
call edi
push ebx
lea eax, [esp + 0x188]
push 0
push eax
call fcn.0040f5b0
push 0xa
lea eax, [esp + 0x194]
push eax
push dword [esi + 0xdc]
call fcn.00410480
add esp, 0x18
push ebx
lea eax, [esp + 0x188]
push eax
push 1
push 0
push str.ThirdLeft
push ebp
call edi
push ebx
lea eax, [esp + 0x188]
push 0
push eax
call fcn.0040f5b0
push 0xa
lea eax, [esp + 0x194]
push eax
push dword [esi + 0xe0]
call fcn.00410480
add esp, 0x18
push ebx
lea eax, [esp + 0x188]
push eax
push 1
push 0
push str.ThirdRight
push ebp
call edi
push ebx
lea eax, [esp + 0x188]
push 0
push eax
call fcn.0040f5b0
push 0xa
lea eax, [esp + 0x194]
push eax
push dword [esi + 0x134]
call fcn.00410480
add esp, 0x18
push ebx
lea eax, [esp + 0x188]
push eax
push 1
push 0
push str.FourthTop
push ebp
call edi
push ebx
lea eax, [esp + 0x188]
push 0
push eax
call fcn.0040f5b0
push 0xa
lea eax, [esp + 0x194]
push eax
push dword [esi + 0x140]
call fcn.00410480
add esp, 0x18
push ebx
lea eax, [esp + 0x188]
push eax
push 1
push 0
push str.FourthBottom
push ebp
call edi
push ebx
lea eax, [esp + 0x188]
push 0
push eax
call fcn.0040f5b0
push 0xa
lea eax, [esp + 0x194]
push eax
push dword [esi + 0x138]
call fcn.00410480
add esp, 0x18
push ebx
lea eax, [esp + 0x188]
push eax
push 1
push 0
push str.FourthLeft
push ebp
call edi
push ebx
lea eax, [esp + 0x188]
push 0
push eax
call fcn.0040f5b0
push 0xa
lea eax, [esp + 0x194]
push eax
push dword [esi + 0x13c]
call fcn.00410480
add esp, 0x18
push ebx
lea eax, [esp + 0x188]
push eax
push 1
push 0
push str.FourthRight
push ebp
call edi
push 4
lea eax, [esi + 0x34]
push eax
push 4
push 0
push str.PrimaryInterlaced
push ebp
call edi
push 4
lea eax, [esi + 0x90]
push eax
push 4
push 0
push str.SecondaryInterlaced
push ebp
call edi
push 4
lea eax, [esi + 0xec]
push eax
push 4
push 0
push str.ThirdInterlaced
push ebp
call edi
push 4
lea eax, [esi + 0x148]
push eax
push 4
push 0
push str.FourthInterlaced
push ebp
call edi
cmp byte [0x4289d4], 1
jne 0x4064d4
cmp dword [esi + 0x58], 0x10
jb 0x4063e5
mov eax, dword [esi + 0x44]
jmp 0x4063e8
lea eax, [esi + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040f680
pop ecx
pop ecx
push 0x1c
lea eax, [esp + 0x28]
push eax
push 1
push 0
push str.PrimarySerialNo
push ebp
call edi
push ebx
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0040f5b0
lea eax, [esi + 0x9c]
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x406429
mov eax, dword [eax + 4]
jmp 0x40642c
add eax, 4
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040f680
pop ecx
pop ecx
push 0x1c
lea eax, [esp + 0x28]
push eax
push 1
push 0
push str.SecondarySerialNo
push ebp
call edi
push ebx
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0040f5b0
lea eax, [esi + 0xf8]
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x40646d
mov eax, dword [eax + 4]
jmp 0x406470
add eax, 4
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040f680
pop ecx
pop ecx
push 0x1c
lea eax, [esp + 0x28]
push eax
push 1
push 0
push str.ThirdSerialNo
push ebp
call edi
push ebx
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0040f5b0
lea eax, [esi + 0x154]
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x4064b1
mov eax, dword [eax + 4]
jmp 0x4064b4
add eax, 4
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040f680
pop ecx
pop ecx
push 0x1c
lea eax, [esp + 0x28]
push eax
push 1
push 0
push str.FourthSerialNo
push ebp
call edi
mov byte [esp + 0x13], 1
cmp byte [0x4289d7], 0
je 0x4064f7
cmp byte [esp + 0x298], 0
je 0x4064f7
mov ecx, dword [esp + 0x20]
push esi
push ebp
call fcn.0040565f
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x406509
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x278]
mov al, byte [esp + 3]
xor ecx, esp
call fcn.0040f62a
add esp, 0x27c
ret 0xc