Function at 0x403190
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4110d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41201c]
push ebx
push edi
or eax, 0xf003f
push eax
push 0
push 0
lea ebx, [ecx + 0x41]
mov ecx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIcons]
push 0
push ecx
push 0x80000002
xor eax, eax
lea ecx, [ebp - 0x210]
xor edx, edx
call fcn.00401b70
add esp, 0x18
test al, al
je 0x4031e8
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIcons]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
movsx esi, bl
push esi
push eax
lea ecx, [ebp - 0x108]
push str._s_c
push ecx
call edi
add esp, 0x10
push 0x412020
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.VirtualCloneDrive.ico
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x41201c]
or ecx, 0xf003f
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x108]
push edx
push 0x80000002
xor eax, eax
lea ecx, [ebp - 0x210]
xor edx, edx
call fcn.00401b70
add esp, 0x18
test al, al
je 0x4032af
mov ecx, dword [ebp - 0x210]
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push 0
push str.VirtualCloneDrive2
push ecx
mov dword [ebp - 0x214], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x210]
push str.VirtualCloneDrive
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
jmp 0x4032b5
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIcons]
push esi
push ecx
lea edx, [ebp - 0x108]
push str._s_cDefaultIcon
push edx
call edi
mov ecx, dword [0x41201c]
add esp, 0x10
push 0
lea eax, [ebp - 0x210]
push eax
push 0
or ecx, 0xf003f
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x108]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40333e
lea eax, [ebp - 0x20c]
lea edx, [eax + 1]
jmp 0x403310
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403310
mov ecx, dword [ebp - 0x210]
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x210]
push edx
call ebx
mov eax, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIcons]
push esi
push eax
lea ecx, [ebp - 0x108]
push str._s_cDefaultLabel
push ecx
call edi
mov eax, dword [0x41201c]
add esp, 0x10
push 0
lea edx, [ebp - 0x210]
push edx
push 0
or eax, 0xf003f
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop esi
test eax, eax
jne 0x4033d6
push 0x40d338
lea edx, [ebp - 0x108]
push 0x40d73c
push edx
call edi
lea eax, [ebp - 0x108]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4033a8
mov ecx, dword [ebp - 0x210]
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x210]
push edx
call ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004046ae
mov esp, ebp
pop ebp
ret