Function at 0x407403
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 0x407438
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 0x40745c
cmp dword [ebp - 4], esi
jne 0x407488
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 0x407688
cmp dword [ebp - 4], esi
je 0x407688
mov eax, dword [ebp + 8]
dec eax
je 0x4075f9
dec eax
jne 0x407688
cmp dword [ebp + 0xc], 2
jne 0x4075b8
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 0x4075ad
push dword [ebp - 4]
cmp eax, 2
jne 0x40756d
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 0x40751e
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 0x40751e
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 0x407688
push dword [ebp + 0xc]
jmp 0x4075e6
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 0x407688
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 0x407688
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x407688
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 0x407688
push dword [ebp + 0x10]
push 1
push 0x1729
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x407688
cmp dword [ebp + 0xc], 2
jne 0x407668
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 0x407660
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 0x40767f
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 0x40767f
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x40767f
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