Function at 0x4073f8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0xc], 3
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], 0x2001b
jne 0x40742d
mov dword [ebp - 0x18], 0x2001f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
mov edi, str.SOFTWAREIntelDisplayigfxcuiigfxtray
push esi
push edi
push SysReAllocString
call ebx
cmp eax, esi
jne 0x407451
cmp dword [ebp - 4], esi
jne 0x40747d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 0x18]
push esi
push esi
push esi
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x40767d
cmp dword [ebp - 4], esi
je 0x40767d
mov eax, dword [ebp + 8]
dec eax
je 0x4075ee
dec eax
jne 0x40767d
cmp dword [ebp + 0xc], 2
jne 0x4075ad
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push str.ShowOptimalBalloon
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
je 0x4075a2
push dword [ebp - 4]
cmp eax, 2
jne 0x407562
mov dword [ebp + 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 1
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x407513
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push str.ShowOptimalBalloon
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407513
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
push esi
push edi
push SysReAllocString
call ebx
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push str.ShowOptimalBalloon
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp + 0xc]
push 0x41aa18
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, esi
je 0x40767d
push dword [ebp + 0xc]
jmp 0x4075db
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 1
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40767d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push str.ShowOptimalBalloon
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40767d
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x40767d
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push esi
push str.ShowOptimalBalloon
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x41aa18
push esi
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, esi
je 0x40767d
push dword [ebp + 0x10]
push 1
push 0x1729
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40767d
cmp dword [ebp + 0xc], 2
jne 0x40765d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push str.ShowGraphicsBalloon
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407655
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 1
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x407674
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push str.ShowGraphicsBalloon
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407674
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x407674
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push esi
push str.ShowGraphicsBalloon
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret