Function at 0x40381b
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x178
mov eax, dword [0x425720]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
push ebx
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
push esi
push edi
mov edi, dword [ebp + 0x7c]
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x104]
push eax
push 0x41e5a0
xor esi, esi
push 0x15
push esi
push 0x41e600
mov byte [ebp - 0xf9], 0
mov dword [ebp - 0x100], esi
mov dword [ebp - 0x104], esi
call ebx
test eax, eax
jl 0x403891
mov eax, dword [ebp - 0x104]
cmp eax, esi
je 0x403891
lea edx, [ebp - 0x108]
push edx
mov dword [ebp - 0x108], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
lea eax, [ebp - 0x100]
push eax
push 0x41e5c0
push 0x15
push esi
push 0x41e620
call ebx
test byte [edi], 0xf0
mov ebx, 0x160
mov esi, 0xfff00000
je 0x403902
test eax, eax
jl 0x403902
cmp dword [ebp - 0x100], 0
je 0x403902
push ebx
lea eax, [ebp - 0xf4]
push 0
push eax
call fcn.0040c8b0
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [ebp - 0xf4]
push edx
push ebx
push dword [edi]
push eax
call dword [ecx + 0xc]
test dword [ebp - 0xd0], esi
je 0x4038f9
and dword [ebp - 0xd8], esi
mov ecx, dword [ebp - 0xd8]
mov dword [edi + 0x3c], ecx
test byte [edi + 4], 0xf0
je 0x403955
test eax, eax
jl 0x403955
cmp dword [ebp - 0x100], 0
je 0x403965
push ebx
lea eax, [ebp - 0xf4]
push 0
push eax
call fcn.0040c8b0
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [ebp - 0xf4]
push edx
push ebx
push dword [edi + 4]
push eax
call dword [ecx + 0xc]
test dword [ebp - 0xd0], esi
je 0x40394c
and dword [ebp - 0xd8], esi
mov eax, dword [ebp - 0xd8]
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x100]
test eax, eax
je 0x403965
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0xf8], 0
je 0x403b93
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
pop ebx
push ebx
lea eax, [edi + 8]
push eax
push ebx
push 0
push str.OperatingMode
push dword [ebp - 0xf8]
call esi
test eax, eax
jne 0x403b93
push ebx
push edi
push ebx
push eax
push str.PrimaryDevice
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 4]
push eax
push ebx
push 0
push str.SecondaryDevice
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0xc]
push eax
push ebx
push 0
push str.PrimaryXX
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x10]
push eax
push ebx
push 0
push str.PrimaryYY
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x14]
push eax
push ebx
push 0
push str.PrimaryRR
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x18]
push eax
push ebx
push 0
push str.PrimaryBPP
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x24]
push eax
push ebx
push 0
push str.SecondaryXX
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x28]
push eax
push ebx
push 0
push str.SecondaryYY
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x2c]
push eax
push ebx
push 0
push str.SecondaryRR
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x30]
push eax
push ebx
push 0
push str.SecondaryBPP
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x1c]
push eax
push ebx
push 0
push str.PrimaryAspectScaling
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x34]
push eax
push ebx
push 0
push str.SecondaryAspectScaling
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x20]
push eax
push ebx
push 0
push str.PrimaryDisplayOrientation
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x38]
push eax
push ebx
push 0
push str.SecondaryDisplayOrientation
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x3c]
push eax
push ebx
push 0
push str.PrimaryTVStandard
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x40]
push eax
push ebx
push 0
push str.SecondaryTVStandard
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x44]
push eax
push ebx
push 0
push str.PrimaryTop
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x50]
push eax
push ebx
push 0
push str.PrimaryBottom
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x48]
push eax
push ebx
push 0
push str.PrimaryLeft
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x4c]
push eax
push ebx
push 0
push str.PrimaryRight
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x54]
push eax
push ebx
push 0
push str.SecondaryTop
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x60]
push eax
push ebx
push 0
push str.SecondaryBottom
push dword [ebp - 0xf8]
call esi
push ebx
lea eax, [edi + 0x58]
push eax
push ebx
push 0
push str.SecondaryLeft
push dword [ebp - 0xf8]
call esi
push ebx
add edi, 0x5c
push edi
push ebx
push 0
push str.SecondaryRight
push dword [ebp - 0xf8]
call esi
mov byte [ebp - 0xf9], 1
mov ecx, dword [ebp + 0x6c]
mov al, byte [ebp - 0xf9]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c92a
add ebp, 0x70
leave
ret 8