Function at 0x418260
Capabilities:
Set registry value

Disassembly:
sub esp, 0x474
mov eax, dword [0x43c730]
xor eax, esp
mov dword [esp + 0x470], eax
push esi
mov esi, dword [esp + 0x47c]
push edi
xor edi, edi
cmp esi, edi
je 0x4184ad
push ebx
push 0x206
lea ecx, [esp + 0x27a]
xor eax, eax
push edi
push ecx
mov dword [esp + 0x18], edi
mov word [esp + 0x280], ax
call fcn.00422290
push 0x206
lea eax, [esp + 0x7e]
xor edx, edx
push edi
push eax
mov word [esp + 0x84], dx
call fcn.00422290
push 0x3e
lea edx, [esp + 0x4a]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x50], cx
call fcn.00422290
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4ac]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x12a10]
push eax
lea ecx, [esp + 0x54]
push str.DEVICE_08X
push ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x54], eax
call ebx
add esp, 0x30
push edi
lea eax, [esi + 0x12a28]
push edi
push eax
push eax
call dword [sym.imp.GDI32.dll_CreateDCW]
lea edx, [esp + 0xc]
push edx
mov esi, eax
push 0xd
push esi
call fcn.0040a9f0
add esp, 0xc
test eax, eax
jne 0x4184ac
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push eax
push 0xe
push esi
call fcn.0040a9f0
add esp, 0xc
test eax, eax
jne 0x4184ac
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
push 3
push esi
mov dword [esp + 0x24], ecx
call fcn.0040a9f0
add esp, 0xc
test eax, eax
jne 0x4184ac
push ebp
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push 0x3b
push esi
call fcn.0040a9f0
add esp, 0xc
test eax, eax
jne 0x4184ab
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push ecx
push ebp
push edx
mov eax, edi
shr eax, 0x10
push eax
movzx ecx, di
push ecx
lea edx, [esp + 0x28c]
push str.VEN__04XDEV__04XSUBSYS__08XREV__02XINST_02X
push edx
call ebx
add esp, 0x1c
push str.SOFTWARENVIDIA_CorporationGlobal
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4343ec
lea ecx, [esp + 0x74]
push ecx
call esi
push str.NVTweak
lea edx, [esp + 0x74]
push edx
call esi
push 0x4343ec
lea eax, [esp + 0x74]
push eax
call esi
push str.Devices
lea ecx, [esp + 0x74]
push ecx
call esi
push 0x4343ec
lea edx, [esp + 0x74]
push edx
call esi
lea eax, [esp + 0x278]
push eax
lea ecx, [esp + 0x74]
push ecx
call esi
push 0x4343ec
lea edx, [esp + 0x74]
push edx
call esi
push str.ForceDVIAsHDTV
lea eax, [esp + 0x74]
push eax
call esi
push 0x4343ec
lea ecx, [esp + 0x74]
push ecx
call esi
push str.Schemes
lea edx, [esp + 0x74]
push edx
call esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x8c]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4184ab
mov edx, dword [esp + 0x14]
push 0x10
lea eax, [esp + 0x24]
push eax
push 3
push 0
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop ebx
mov ecx, dword [esp + 0x478]
pop edi
pop esi
xor ecx, esp
call fcn.00422272
add esp, 0x474
ret