Function at 0x40a48f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
push ebx
push esi
push edi
lea eax, [ebp - 0x290]
push 0x3ff
push eax
push dword [0x45bf10]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40a697
lea eax, [ebp - 4]
push eax
push str.SOFTWAREClassesDirectory_shellWinamp.Play
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test eax, eax
jne 0x40a50c
push ebx
push ebx
push 0x84
call fcn.004394a8
push eax
mov dword [ebp - 8], eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
inc eax
push eax
push dword [ebp - 8]
push 1
push ebx
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
lea eax, [ebp - 4]
push eax
push str.SOFTWAREClassesDirectory_shellWinamp.Enqueue
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a54f
push ebx
push ebx
push 0x85
call fcn.004394a8
push eax
mov dword [ebp - 8], eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
inc eax
push eax
push dword [ebp - 8]
push 1
push ebx
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
lea eax, [ebp - 4]
push eax
push str.SOFTWAREClassesDirectory_shellWinamp.Bookmark
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a592
push ebx
push ebx
push 0x91
call fcn.004394a8
push eax
mov dword [ebp - 8], eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
inc eax
push eax
push dword [ebp - 8]
push 1
push ebx
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
lea eax, [ebp - 4]
push eax
push str.SOFTWAREClassesDirectory_shellWinamp.Playcommand
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a5e9
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x18c]
push str.__s_____1_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x18c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
inc eax
push eax
lea eax, [ebp - 0x18c]
push eax
push 1
push ebx
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
lea eax, [ebp - 4]
push eax
push str.SOFTWAREClassesDirectory_shellWinamp.Enqueuecommand
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a640
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x18c]
push str.__s___ADD____1_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x18c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
inc eax
push eax
lea eax, [ebp - 0x18c]
push eax
push 1
push ebx
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
lea eax, [ebp - 4]
push eax
push str.SOFTWAREClassesDirectory_shellWinamp.Bookmarkcommand
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a697
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x18c]
push str.__s___BOOKMARK____1_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x18c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
inc eax
push eax
lea eax, [ebp - 0x18c]
push eax
push 1
push ebx
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
pop edi
pop esi
pop ebx
leave
ret