Function at 0x4a3cd9
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov eax, 4
mov ebp, esp
sub esp, 0xac
push ebx
mov dword [ebp - 0xc], eax
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 0x27], 0
push edi
call sub.MSVCRT.dll__getdrive
lea ebx, [eax - 1]
mov edi, dword [ebp + 8]
push edi
call sub.MSVCRT.dll_strlen
add esp, 4
cmp eax, 3
jl 0x4a3d2a
cmp byte [edi + 1], 0x3a
jne 0x4a3d2a
cmp byte [edi + 2], 0x5c
jne 0x4a3d2a
movsx eax, byte [edi]
push eax
call sub.MSVCRT.dll_toupper
add esp, 4
mov byte [ebp - 0x28], al
jmp 0x4a3d30
add bl, 0x41
mov byte [ebp - 0x28], bl
mov ebx, dword [ebp + 0xc]
xor esi, esi
push esi
push 0x80
push 3
mov dword [ebx], esi
push esi
push 1
push OleUIInsertObjectA
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x4a3d5c
xor eax, eax
jmp 0x4a3faf
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x4a3d7d
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x7c]
and eax, 0x7fffffff
mov dword [ebx], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [ebx], esi
jle 0x4a3faa
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 8]
push eax
push ecx
push esi
push 0xf003f
push esi
push 0x69ab30
push esi
push str.SoftwareSymantecSpeed_Disk_Unmovable_FilesAttributes
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 4]
lea edx, [ebp - 0xc]
push ecx
lea eax, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x28]
push eax
push esi
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a3dd9
or byte [ebp - 0xc], 4
jmp 0x4a3de0
mov dword [ebp - 0xc], 4
lea ecx, [ebp - 0xc]
xor ebx, ebx
push dword [ebp - 4]
push ecx
push 4
lea eax, [ebp - 0x28]
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 8]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x69ab30
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionAppletsDefragAppStartParams
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push str.ExcludeFiles
lea ecx, [ebp - 0x28]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, 0x800
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea ecx, [ebp - 0xc]
push ecx
lea eax, [ebp - 0x10]
push esi
lea ecx, [ebp - 0x28]
push eax
push ebx
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
push 0x5c
push edi
call sub.MSVCRT.dll_strrchr
add esp, 8
test eax, eax
jne 0x4a3e7d
push edi
lea eax, [ebp - 0x78]
push eax
jmp 0x4a3e8e
push 0x5c
push edi
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
lea ecx, [ebp - 0x78]
push eax
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea eax, [ebp - 0x78]
push eax
call sub.MSVCRT.dll__strupr
add esp, 4
cmp ebx, 0xea
jne 0x4a3ee2
add dword [ebp - 4], 0x800
mov eax, dword [ebp - 4]
push 0x40
push eax
mov dword [ebp - 0xc], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov esi, eax
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
push esi
push ecx
lea eax, [ebp - 0x28]
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
je 0x4a3eaa
lea eax, [ebp - 0x78]
push eax
push esi
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
jne 0x4a3f9a
push esi
call sub.MSVCRT.dll_strlen
add esp, 4
mov edi, eax
lea eax, [ebp - 0x78]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
add edi, eax
inc edi
cmp edi, dword [ebp - 4]
jbe 0x4a3f50
lea eax, [ebp - 0x78]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
inc eax
add dword [ebp - 4], eax
push 0x40
mov ecx, dword [ebp - 4]
push ecx
mov dword [ebp - 0xc], ecx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov esi, eax
lea ecx, [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push esi
push ecx
lea eax, [ebp - 0x28]
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
call sub.MSVCRT.dll_strlen
add esp, 4
cmp byte [esi + eax - 1], 0x5c
je 0x4a3f6e
push 0x5d4a88
push esi
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x78]
push eax
push esi
call sub.MSVCRT.dll_strcat
add esp, 8
push esi
call sub.MSVCRT.dll_strlen
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
push eax
push esi
push 2
push 0
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret