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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6284e8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
mov eax, dword [0x6aab00]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [edi + 0x1ec]
push 1
push edi
mov dword [esp + 0x24], eax
call fcn.00421bb0
call fcn.0044ce39
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x421837
push 0x80004005
call fcn.00401b80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x50], 0
mov ecx, dword [edi + 0x1f0]
push ecx
lea edx, [esp + 0x10]
push 0x664610
push edx
call fcn.00405900
add esp, 0xc
call fcn.0045168a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x6c]
mov ecx, dword [esp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push ecx
push str.ProcessPriority
push str.Setup
call ebx
mov edx, dword [edi + 0x1f4]
push edx
lea eax, [esp + 0x10]
push 0x664610
push eax
call fcn.00405900
add esp, 0xc
call fcn.0045168a
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x6c]
mov edx, dword [esp + 0xc]
push ecx
push edx
push str.Beep
push str.Setup
call ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
lea ecx, [esp + 0x14]
call fcn.004016c0
push 0x6b9870
lea eax, [esp + 0x18]
push str.MyMacro_
push eax
mov byte [esp + 0x5c], 1
call fcn.00413f50
add esp, 0xc
mov byte [esp + 0x50], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00403160
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421925
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x663ea8
call fcn.004016c0
mov byte [esp + 0x5c], 3
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00401780
add esp, 4
add eax, 0x10
lea ecx, [esp + 0x34]
mov dword [esi], eax
push ecx
mov byte [esp + 0x64], 1
call fcn.00405a30
mov byte [esp + 0x50], 4
cmp dword [edi + 0x1f8], 0
je 0x421a23
call fcn.0045168a
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x64]
push edx
lea eax, [esp + 0x1c]
push 0x6b9884
push eax
call fcn.0040cfd0
push str..exe
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x68], 5
call fcn.0040cfd0
add esp, 0x18
mov byte [esp + 0x50], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4219d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
call fcn.00401780
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [esp + 0x28]
call fcn.00405ed0
mov byte [esp + 0x50], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421a4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x421a4f
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]
mov esi, dword [esp + 0x1c]
cmp esi, dword [edi + 0x1e8]
je 0x421ab9
push 0xffffffffffffffff
push 0x21
push 0x6f
call fcn.0045bb35
cmp eax, 1
jne 0x421aab
mov eax, dword [edi + 0x1e8]
push eax
lea ecx, [esp + 0x10]
push 0x664610
push ecx
call fcn.00405900
add esp, 0xc
call fcn.0045168a
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x6c]
mov eax, dword [esp + 0xc]
push edx
push eax
push str.HotkeyMode
push str.Setup
call ebx
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x421ab9
push 0
push edi
mov dword [edi + 0x1e8], esi
call fcn.00421bb0
lea esi, [esp + 0x24]
call fcn.00405cb0
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421ae7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421b0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret