Function at 0x40754a
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 0x40757f
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 0x4075a3
cmp dword [ebp - 4], esi
jne 0x4075cf
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 0x4077cf
cmp dword [ebp - 4], esi
je 0x4077cf
mov eax, dword [ebp + 8]
dec eax
je 0x407740
dec eax
jne 0x4077cf
cmp dword [ebp + 0xc], 2
jne 0x4076ff
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 0x4076f4
push dword [ebp - 4]
cmp eax, 2
jne 0x4076b4
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 0x407665
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 0x407665
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 0x41aa38
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, esi
je 0x4077cf
push dword [ebp + 0xc]
jmp 0x40772d
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 0x4077cf
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 0x4077cf
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x4077cf
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 0x41aa38
push esi
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, esi
je 0x4077cf
push dword [ebp + 0x10]
push 1
push 0x1729
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4077cf
cmp dword [ebp + 0xc], 2
jne 0x4077af
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 0x4077a7
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 0x4077c6
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 0x4077c6
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x4077c6
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