Function at 0x401000
Capabilities:
Delete directory
Delete file
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1408
call fcn.00402de0
xor eax, eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov byte [esp + 0x1018], bl
mov ecx, 0xff
lea edi, [esp + 0x1019]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0xc18], bl
mov ecx, 0xff
lea edi, [esp + 0xc19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x18], bl
mov ecx, 0xff
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x418], bl
mov ecx, 0xff
lea edi, [esp + 0x419]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x818], bl
mov ecx, 0xff
lea edi, [esp + 0x819]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x400
lea eax, [esp + 0x41c]
push eax
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.rd__s__q__C:Genesis_
call fcn.00402d3d
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push ebx
push str.SoftwareMatroxMatrox_Imaging_Library
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xc1c]
push eax
push ebx
push ebx
push str.Directory
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x401265
push str.C:Documents_and_SettingsAll_UsersDesktopMil_Control_Center.lnk
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.USER32.dll_SetWindowTextA]
push str.DeleteMil_Control_Center.lnk
push ebx
call ebp
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x405
push ebx
call esi
push str.Delete_Matrox_Imaging_directory
push ebx
call ebp
push ebx
push ebx
push 0x405
push ebx
call esi
xor eax, eax
jmp 0x401150
mov cl, byte [esp + eax + 0x418]
mov byte [esp + eax + 0x18], cl
inc eax
cmp cl, bl
jne 0x401150
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401165
mov ecx, 0x12
mov esi, str.ProfilesAll_UsersStart_MenuProgramsMatrox_Odyssey_Native_Library.
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x18]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x401190
mov cl, byte [esp + eax + 0x418]
mov byte [esp + eax + 0x18], cl
inc eax
cmp cl, bl
jne 0x401190
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4011a5
mov ecx, 0x11
mov esi, 0x408248
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [esp + 0x18]
push ecx
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edx, dword [str.rmdir__S__Q__]
mov eax, dword [0x40823c]
mov ecx, dword [0x408240]
mov dword [esp + 0x18], edx
mov dx, word [0x408244]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc18]
mov word [esp + 0x24], dx
mov dword [esp + 0x20], ecx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401200
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x401210
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401230
mov ax, word [0x408234]
push str.Delete_Matrox_Imaging_dyrectory
push ebx
mov word [edi], ax
call ebp
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x405
push ebx
call edi
lea ecx, [esp + 0x18]
push ecx
call fcn.00402d3d
jmp 0x401291
mov ebp, dword [sym.imp.USER32.dll_SetWindowTextA]
push str.No_registry_deleted_Matrox_Imaging_directory
push ebx
call ebp
push ebx
push ebx
push 0x405
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push str.rd__s__q__C:Program_FilesMatrox_Imaging_
call fcn.00402d3d
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 4
lea edx, [esp + 0x10]
push edx
push 1
push ebx
push str.SOFTWAREMatroxMIPMILRunTime
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x101c]
push ecx
push ebx
push ebx
push str.Directory
push edx
mov byte [esp + 0x830], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Delete_Matrox_Imaging_directory
push ebx
call ebp
push ebx
push ebx
push 0x405
push ebx
call edi
cmp esi, ebx
jne 0x401428
mov ecx, dword [str.rd__s__q__]
mov ax, word [0x408194]
mov edx, dword [0x408190]
mov dword [esp + 0x18], ecx
mov cl, byte [0x408196]
mov word [esp + 0x20], ax
lea eax, [esp + 0x1018]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x22], cl
mov edx, eax
jmp 0x401330
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401330
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x401340
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401360
mov dx, word [0x408234]
lea eax, [esp + 0x18]
push eax
mov word [edi], dx
call fcn.00402d3d
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
lea edx, [esp + 0x81c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [str.del__f__s__q]
mov edx, dword [0x408184]
mov ecx, dword [0x408180]
mov dword [esp + 0x18], eax
mov ax, word [0x408188]
mov word [esp + 0x24], ax
lea eax, [esp + 0x818]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4013c3
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4013d1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4013f0
mov ecx, dword [str.mil.dll]
mov edx, dword [0x408174]
mov ax, word [0x408178]
mov dword [edi], ecx
lea ecx, [esp + 0x18]
mov dword [edi + 4], edx
push ecx
mov word [edi + 8], ax
call fcn.00402d3d
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push str.No_registry_deleted_Matrox_Imaging_directory
push ebx
call ebp
push ebx
push ebx
push 0x405
push ebx
call edi
push str.rd__s__q__C:Program_FilesMatrox_Imaging_
call fcn.00402d3d
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret