Function at 0x408970
Capabilities:
Set registry value

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x20]
push eax
xor ebx, ebx
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.CLSID0B7EB1F2_CF2E_441b_9A5F_CCF1340A0AC2
push SysReAllocStringLen
xor esi, esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4089aa
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
je 0x4089d6
push eax
call ebp
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x3c]
push edx
push eax
push 1
push ebx
push 0x5192a0
push esi
call edi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.CLSID0B7EB1F2_CF2E_441b_9A5F_CCF1340A0AC2DefaultIcon
push SysReAllocStringLen
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408a10
cmp esi, ebx
je 0x408a0c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x408a30
push eax
call ebp
mov ecx, dword [esp + 0x44]
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push ebx
push 0x5192a0
push esi
call edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x48]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.CLSID0B7EB1F2_CF2E_441b_9A5F_CCF1340A0AC2ShellFolder
push SysReAllocStringLen
mov dword [esp + 0x68], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408a6a
cmp esi, ebx
je 0x408a66
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x44]
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push ebx
push str.Attributes
push esi
mov dword [esp + 0x34], ebx
call edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x5195f8
push SysReAllocStringLen
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408aba
cmp esi, ebx
je 0x408ab6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
push 0x519668
call ebp
lea ecx, [eax + eax + 2]
push ecx
push 0x519668
push 1
push ebx
push 0x5192a0
push esi
call edi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.CLSID0B7EB1F2_CF2E_441b_9A5F_CCF1340A0AC2Shell_
push SysReAllocStringLen
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408b10
cmp esi, ebx
je 0x408b0c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x408b30
push eax
call ebp
mov edx, dword [esp + 0x40]
lea ecx, [eax + eax + 2]
push ecx
push edx
push 1
push ebx
push 0x5192a0
push esi
call edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x44]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace0B7EB1F2_CF2E_441b_9A5F_CCF1340A0AC2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x64], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408b6a
cmp esi, ebx
je 0x408b66
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x408b8a
push eax
call ebp
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x3c]
push edx
push eax
push 1
push ebx
push 0x5192a0
push esi
call edi
cmp esi, ebx
je 0x408b95
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret