Function at 0x40a2c8
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 [0x4618b0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40a4d0
lea eax, [ebp - 4]
push eax
push str.SOFTWAREClassesDirectory_shellWinamp.Play
push reloc.OLEAUT32.dll_SysReAllocString
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 0x40a345
push ebx
push ebx
push 0x84
call fcn.00433097
push eax
mov dword [ebp - 8], eax
call fcn.0043d4e0
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a388
push ebx
push ebx
push 0x85
call fcn.00433097
push eax
mov dword [ebp - 8], eax
call fcn.0043d4e0
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a3cb
push ebx
push ebx
push 0x91
call fcn.00433097
push eax
mov dword [ebp - 8], eax
call fcn.0043d4e0
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a422
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 fcn.0043d4e0
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a479
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 fcn.0043d4e0
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40a4d0
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 fcn.0043d4e0
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