Function at 0x40a9a4
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413596
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1038
call fcn.00412970
mov dword [ebp - 0x1044], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x81c], 0x800
mov eax, dword [ebp - 0x1044]
mov ecx, dword [eax + 0x874]
mov dword [ebp - 0x814], ecx
mov dword [ebp - 0x810], 0
push 0xf003f
lea edx, [ebp - 0x810]
push edx
lea ecx, [ebp + 0xc]
call fcn.00404130
push eax
mov eax, dword [ebp - 0x814]
push eax
mov ecx, dword [ebp - 0x1044]
call fcn.0040d04e
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x818], 1
je 0x40aa8f
mov dword [ebp - 0x103c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404550
mov eax, dword [ebp - 0x103c]
jmp 0x40adc8
cmp dword [ebp + 8], 0xffffffff
jne 0x40aa9c
mov dword [ebp + 8], 0
mov ecx, dword [ebp - 0x810]
mov dword [ebp + 0x2c], ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x1044]
mov eax, dword [edx + 0x50]
push eax
mov ecx, dword [ebp - 0x1044]
add ecx, 0x14
call fcn.0040f440
push 1
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x1044]
add ecx, 0x14
call fcn.0040f720
lea ecx, [ebp + 0x10]
call fcn.004040d0
shl eax, 1
mov dword [ebp - 0x81c], eax
push 0x800
push 0
lea eax, [ebp - 0x80c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x81c]
push ecx
lea ecx, [ebp + 0x10]
call fcn.00404130
push eax
lea edx, [ebp - 0x80c]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x81c]
push eax
lea ecx, [ebp - 0x80c]
push ecx
push 1
push 0x41869c
mov edx, dword [ebp - 0x810]
push edx
mov ecx, dword [ebp - 0x1044]
call fcn.0040d334
lea ecx, [ebp + 0x20]
call fcn.00404110
test eax, eax
jne 0x40abbb
lea ecx, [ebp + 0x20]
call fcn.004040d0
shl eax, 1
mov dword [ebp - 0x81c], eax
push 0x800
push 0
lea eax, [ebp - 0x80c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x81c]
push ecx
lea ecx, [ebp + 0x20]
call fcn.00404130
push eax
lea edx, [ebp - 0x80c]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x81c]
push eax
lea ecx, [ebp - 0x80c]
push ecx
push 1
push str.Icon_File
mov edx, dword [ebp - 0x810]
push edx
mov ecx, dword [ebp - 0x1044]
call fcn.0040d334
lea ecx, [ebp + 0x24]
call fcn.00404110
test eax, eax
jne 0x40ac33
lea ecx, [ebp + 0x24]
call fcn.004040d0
shl eax, 1
mov dword [ebp - 0x81c], eax
push 0x800
push 0
lea eax, [ebp - 0x80c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x81c]
push ecx
lea ecx, [ebp + 0x24]
call fcn.00404130
push eax
lea edx, [ebp - 0x80c]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x81c]
push eax
lea ecx, [ebp - 0x80c]
push ecx
push 1
push str.Icon_File_V2
mov edx, dword [ebp - 0x810]
push edx
mov ecx, dword [ebp - 0x1044]
call fcn.0040d334
mov dword [ebp - 0x828], 0
push 4
lea eax, [ebp - 0x828]
push eax
push 4
push str.UserItem
mov ecx, dword [ebp - 0x810]
push ecx
mov ecx, dword [ebp - 0x1044]
call fcn.0040d334
mov edx, dword [ebp - 0x1044]
mov eax, dword [edx + 0x50]
add eax, 1
mov ecx, dword [ebp - 0x1044]
mov dword [ecx + 0x50], eax
mov dword [ebp - 0x830], 0
jmp 0x40ac8f
mov edx, dword [ebp - 0x830]
add edx, 1
mov dword [ebp - 0x830], edx
mov eax, dword [ebp - 0x1044]
mov ecx, dword [ebp - 0x830]
cmp ecx, dword [eax + 0x50]
jae 0x40acf1
mov edx, dword [ebp - 0x830]
push edx
mov ecx, dword [ebp - 0x1044]
add ecx, 0x14
call fcn.0040f700
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x810], eax
mov ecx, dword [ebp - 0x830]
add ecx, 1
mov dword [ebp - 0x828], ecx
push 4
lea edx, [ebp - 0x828]
push edx
push 4
push 0x4186ec
mov eax, dword [ebp - 0x810]
push eax
mov ecx, dword [ebp - 0x1044]
call fcn.0040d334
jmp 0x40ac80
mov ecx, dword [ebp - 0x1044]
cmp dword [ecx + 0x878], 0
jne 0x40ad4a
mov dword [ebp - 0x1038], VariantClear
push 0x70
push str.SoftwareCreative_TechMediaSourceGoShortcutBarDeleted
lea edx, [ebp - 0x1034]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0xf003f
mov eax, dword [ebp - 0x1044]
add eax, 0x878
push eax
lea ecx, [ebp - 0x1034]
push ecx
mov edx, dword [ebp - 0x1038]
push edx
mov ecx, dword [ebp - 0x1044]
call fcn.0040d275
push 0x20019
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp + 0xc]
call fcn.00404130
push eax
mov ecx, dword [ebp - 0x1044]
mov edx, dword [ecx + 0x878]
push edx
mov ecx, dword [ebp - 0x1044]
call fcn.0040d275
test eax, eax
je 0x40ada9
mov eax, dword [ebp - 0x810]
push eax
mov ecx, dword [ebp - 0x1044]
call fcn.0040d1a1
lea ecx, [ebp + 0xc]
call fcn.00404130
push eax
mov ecx, dword [ebp - 0x1044]
mov edx, dword [ecx + 0x878]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x1040], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404550
mov eax, dword [ebp - 0x1040]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x28