Function at 0x40a9c3
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, 0x40ef34
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x20]
mov esi, 0xf003f
push eax
push esi
push ebx
push 0x412f18
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40aab4
lea ecx, [ebp - 0x1c]
call fcn.0040c520
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
jne 0x40aab4
lea eax, [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x412f24
push ecx
mov dword [ebp - 0x20], ebx
call edi
cmp eax, ebx
jne 0x40aab4
lea ecx, [ebp - 0x18]
call fcn.0040c520
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x40aab4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], ebx
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x412f30
push ecx
call edi
cmp eax, ebx
jne 0x40aab4
lea ecx, [ebp - 0x14]
call fcn.0040c520
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x40aab4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], ebx
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x412f3c
push ecx
call edi
cmp eax, ebx
jne 0x40aab4
lea ecx, [ebp - 0x10]
call fcn.0040c520
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
je 0x40aaed
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040c520
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040c520
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040c520
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040c520
mov eax, 0x80004005
jmp 0x40ac38
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
jne 0x40ab0c
push 0x412f44
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40ab23
push dword [ebp + 8]
call edi
inc eax
push eax
push dword [ebp + 8]
push 1
push ebx
push str.LocalFileName
push dword [ebp - 0x10]
call esi
cmp dword [ebp + 0xc], ebx
jne 0x40ab38
push 0x412f64
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40ab4f
push dword [ebp + 0xc]
call edi
inc eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
push str.InstallOptions
push dword [ebp - 0x10]
call esi
cmp dword [ebp + 0x10], ebx
jne 0x40ab64
push 0x412f84
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40ab7b
push dword [ebp + 0x10]
call edi
inc eax
push eax
push dword [ebp + 0x10]
push 1
push ebx
push str.UpdateDescription
push dword [ebp - 0x10]
call esi
cmp dword [ebp + 0x14], ebx
jne 0x40ab90
push 0x412fac
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40aba7
push dword [ebp + 0x14]
call edi
inc eax
push eax
push dword [ebp + 0x14]
push 1
push ebx
push str.UpdateMoreInfoUrl
push dword [ebp - 0x10]
call esi
cmp dword [ebp + 0x18], ebx
jne 0x40abbc
push 0x412fd4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40abd3
push dword [ebp + 0x18]
call edi
inc eax
push eax
push dword [ebp + 0x18]
push 1
push ebx
push str.BalloonTitle
push dword [ebp - 0x10]
call esi
cmp dword [ebp + 0x1c], ebx
jne 0x40abe8
push 0x412ff4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40abff
push dword [ebp + 0x1c]
call edi
inc eax
push eax
push dword [ebp + 0x1c]
push 1
push ebx
push str.BalloonTip
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40ac12
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x40ac1f
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x40ac2c
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40ac36
push dword [ebp - 0x1c]
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret