Function at 0x673eb458
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.MSVCR80.dll__getdrive
lea ebx, [eax - 1]
mov edi, dword [ebp + 8]
push edi
call sub.MSVCR80.dll_strlen
add esp, 4
cmp eax, 3
jl 0x673eb4a9
cmp byte [edi + 1], 0x3a
jne 0x673eb4a9
cmp byte [edi + 2], 0x5c
jne 0x673eb4a9
movsx eax, byte [edi]
push eax
call sub.MSVCR80.dll_toupper
add esp, 4
mov byte [ebp - 0x28], al
jmp 0x673eb4af
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 Ordinal_2
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x673eb4db
xor eax, eax
jmp 0x673eb72e
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x673eb4fc
mov eax, dword [ebp - 0x7c]
add eax, dword [ebp - 0x80]
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 0x673eb729
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 8]
push eax
push ecx
push esi
push 0xf003f
push esi
push 0x67460df0
push esi
push str.SoftwareSymantecSpeed_Disk_Unmovable_FilesAttributes
push reloc.ImNtUtilU.dll_Ordinal_2
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 0x673eb558
or byte [ebp - 0xc], 4
jmp 0x673eb55f
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 0x67460df0
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionAppletsDefragAppStartParams
push reloc.ImNtUtilU.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push str.ExcludeFiles
lea ecx, [ebp - 0x28]
push ecx
call sub.MSVCR80.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.MSVCR80.dll_strrchr
add esp, 8
test eax, eax
jne 0x673eb5fc
push edi
lea eax, [ebp - 0x78]
push eax
jmp 0x673eb60d
push 0x5c
push edi
call sub.MSVCR80.dll_strrchr
add esp, 8
inc eax
lea ecx, [ebp - 0x78]
push eax
push ecx
call sub.MSVCR80.dll_strcpy
add esp, 8
lea eax, [ebp - 0x78]
push eax
call sub.MSVCR80.dll__strupr
add esp, 4
cmp ebx, 0xea
jne 0x673eb661
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 0x673eb629
lea eax, [ebp - 0x78]
push eax
push esi
call sub.MSVCR80.dll_strstr
add esp, 8
test eax, eax
jne 0x673eb719
push esi
call sub.MSVCR80.dll_strlen
add esp, 4
mov edi, eax
lea eax, [ebp - 0x78]
push eax
call sub.MSVCR80.dll_strlen
add esp, 4
add edi, eax
inc edi
cmp edi, dword [ebp - 4]
jbe 0x673eb6cf
lea eax, [ebp - 0x78]
push eax
call sub.MSVCR80.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.MSVCR80.dll_strlen
add esp, 4
cmp byte [esi + eax - 1], 0x5c
je 0x673eb6ed
push 0x67460d5c
push esi
call sub.MSVCR80.dll_strcat
add esp, 8
lea eax, [ebp - 0x78]
push eax
push esi
call sub.MSVCR80.dll_strcat
add esp, 8
push esi
call sub.MSVCR80.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