Function at 0x401438
Capabilities:
Persist via run registry key

Disassembly:
jmp 0x415148
mov eax, 0x8049a0
call fcn.0072bca0
sub esp, 0x38
push ebx
push esi
mov esi, ecx
push edi
push 1
mov eax, dword [esi + 0x190]
mov dword [ebp - 0x20], eax
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
push dword [esi + 0x190]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0x8aa848
push eax
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 ebx, str.Setup
push dword [eax + 0x94]
push dword [ebp - 0x10]
push str.HotkeyMode
push ebx
call edi
push dword [esi + 0x194]
lea eax, [ebp - 0x10]
push 0x8aa848
push eax
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push dword [eax + 0x94]
push dword [ebp - 0x10]
push str.ProcessPriority
push ebx
call edi
push dword [esi + 0x198]
lea eax, [ebp - 0x10]
push 0x8aa848
push eax
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push dword [eax + 0x94]
push dword [ebp - 0x10]
push str.Beep
push ebx
call edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
push 0x8be7a4
lea eax, [ebp - 0x18]
push str.MyMacro_
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x8bd670
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 3
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0072d7b0
cmp dword [esi + 0x19c], edi
mov byte [ebp - 4], 4
je 0x4152f1
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push dword [eax + 0x8c]
lea eax, [ebp - 0x1c]
push 0x8be790
push eax
call sub.MFC42.DLL_operator_3
push str..exe
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x44]
call fcn.0072db60
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
jmp 0x4152f9
lea ecx, [ebp - 0x44]
call fcn.00401b8b
mov eax, dword [ebp - 0x20]
cmp eax, dword [esi + 0x190]
je 0x41531e
push 0xffffffffffffffff
push 0x21
push 0xf20b
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 1
jne 0x41531e
push edi
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0072d930
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret