Function at 0x40e720
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x4a6958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, 1
push edi
mov ebp, dword [esi + 0x190]
push ebx
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x190]
lea ecx, [esp + 0x10]
push eax
push 0x51e4f4
push ecx
mov dword [esp + 0x58], 0
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edx, dword [eax + 0x94]
mov eax, dword [esp + 0x10]
push edx
push eax
push str.HotkeyMode
push str.Setup
call edi
mov ecx, dword [esi + 0x194]
lea edx, [esp + 0x10]
push ecx
push 0x51e4f4
push edx
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x94]
push eax
push ecx
push str.ProcessPriority
push str.Setup
call edi
mov edx, dword [esi + 0x198]
lea eax, [esp + 0x10]
push edx
push 0x51e4f4
push eax
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 0x94]
push ecx
push edx
push str.Beep
push str.Setup
call edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
push 0x52ac8c
lea eax, [esp + 0x1c]
push str.MyMacro_
push eax
mov byte [esp + 0x58], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 2
call fcn.004585f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_CString::CString
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x529b90
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x60], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], bl
call fcn.004599f0
mov eax, dword [esi + 0x19c]
mov byte [esp + 0x4c], 4
test eax, eax
je 0x40e908
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [esp + 0x1c]
mov eax, dword [eax + 0x8c]
push eax
push 0x52ac78
push ecx
call sub.MFC42.DLL_operator_4
push str..exe
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x58], 5
call sub.MFC42.DLL_operator_4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 7
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
call fcn.00459da0
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_CString::CString
jmp 0x40e934
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
push 0x20006
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp ebp, dword [esi + 0x190]
je 0x40e956
push 0xffffffffffffffff
push 0x21
push 0xf20b
call sub.MFC42.DLL_AfxMessageBox
cmp eax, ebx
jne 0x40e956
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], bl
call fcn.00459b70
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret