Function at 0x401800
Capabilities:
Delete file
Get file attributes
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd04
mov eax, dword [0x438b20]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
push str.Removing_old_driver_.INF_files...
add ecx, 0x7c
mov dword [esp + 0xd10], eax
call fcn.004127eb
push 0x41c8e4
call fcn.00401460
push str._Searching_for_installed_INF_files_
call fcn.00401460
push 0x41c8e4
call fcn.00401460
push 0x4650
call fcn.00405162
mov esi, eax
add esp, 0x10
test esi, esi
mov dword [esp + 0x24], esi
je 0x401caa
push esi
mov dword [esp + 0x10], 0
mov byte [esi], 0
call sym.DriverTool.exe_findInfFiles
mov al, byte [esi]
add esp, 4
test al, al
je 0x401c8e
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x48]
sub eax, 3
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x48]
sub eax, 2
mov dword [esp + 0x20], eax
lea eax, [esp + 0x48]
dec eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
jmp 0x4018b0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 0xc]
lea edx, [esi + 0x104]
push edx
push esi
push eax
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x15c]
push str.__d___s__version:__s_
push ecx
mov dword [esp + 0x40], 2
mov dword [esp + 0x56], 0x41cbb8
mov word [esp + 0x4c], 0x41c
call fcn.00405063
lea edx, [esp + 0x164]
push edx
call fcn.00401460
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x60]
add esp, 0x18
mov eax, esi
sub ecx, esi
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x401915
lea eax, [esp + 0x48]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401926
mov ecx, dword [esp + 0x1c]
sub eax, edx
mov byte [ecx + eax], 0x50
lea eax, [esp + 0x48]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401940
sub eax, edx
mov edx, dword [esp + 0x20]
mov byte [edx + eax], 0x4e
lea eax, [esp + 0x48]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401958
sub eax, ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
mov byte [ecx + eax], 0x46
call fcn.0040521d
add esp, 4
push esi
call ebx
mov edi, eax
lea eax, [esp + 0x48]
push eax
call ebx
push 0x80
push edi
push esi
lea ecx, [esp + 0x15c]
push str.removeInf:_changing_permissions_on__s_from__u_to__u
push ecx
call fcn.00405063
lea edx, [esp + 0x164]
push edx
call fcn.00401460
push 0x80
push edi
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x174]
push str.removeInf:_changing_permissions_on__s_from__u_to__u
push ecx
call fcn.00405063
lea edx, [esp + 0x17c]
push edx
call fcn.00401460
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0x30
push 0x80
push esi
call edi
test eax, eax
jne 0x401a11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [esp + 0x158]
push str.removeInf:_failed_to_change_permissions_on__s___GetLastError___returned__d
push eax
call fcn.00405063
lea ecx, [esp + 0x160]
push ecx
call fcn.00401460
add esp, 0x14
push 0x80
lea edx, [esp + 0x4c]
push edx
call edi
test eax, eax
jne 0x401a4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x158]
push str.removeInf:_failed_to_change_permissions_on__s___GetLastError___returned__d
push ecx
call fcn.00405063
lea edx, [esp + 0x160]
push edx
call fcn.00401460
add esp, 0x14
xor eax, eax
mov ecx, 0xfa
lea edi, [esp + 0x538]
rep stosd dword es:[edi], eax
push 0x5c
mov ecx, 0xfa
lea edi, [esp + 0x924]
push esi
rep stosd dword es:[edi], eax
call fcn.004051f0
inc eax
push eax
mov eax, dword [esp + 0x1c]
push eax
push 0x439aa8
lea ecx, [esp + 0x54c]
push str._s_u__s
push ecx
call fcn.00405063
lea edx, [esp + 0x64]
push 0x5c
push edx
call fcn.004051f0
inc eax
push eax
mov eax, dword [esp + 0x38]
push eax
push 0x439aa8
lea ecx, [esp + 0x950]
push str._s_u__s
push ecx
call fcn.00405063
lea edx, [esp + 0x570]
push edx
push esi
lea eax, [esp + 0x190]
push str.removeInf:_backing_up__s_to__s
push eax
call fcn.00405063
lea ecx, [esp + 0x198]
add esp, 0x48
push ecx
call fcn.00401460
lea edx, [esp + 0x924]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x15c]
push str.removeInf:_backing_up__s_to__s
push ecx
call fcn.00405063
lea edx, [esp + 0x164]
push edx
call fcn.00401460
add esp, 0x18
lea ecx, [esp + 0x28]
lea eax, [esp + 0x538]
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x401b61
call edi
push eax
push esi
lea edx, [esp + 0x158]
push str.removeInf:_failed_to_backup__s___GetLastError___returned__d
push edx
call fcn.00405063
lea eax, [esp + 0x160]
push eax
call fcn.00401460
add esp, 0x14
lea eax, [esp + 0x28]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x920]
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x401bad
call edi
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x158]
push str.removeInf:_failed_to_backup__s___GetLastError___returned__d
push edx
call fcn.00405063
lea eax, [esp + 0x160]
push eax
call fcn.00401460
add esp, 0x14
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401be8
call edi
push eax
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x158]
push str.removeInf:_failed_to_delete__s___GetLastError___returned__d
push eax
call fcn.00405063
lea ecx, [esp + 0x160]
push ecx
call fcn.00401460
add esp, 0x14
jmp 0x401c0f
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x154]
push str.removeInf:_successfully_deleted__s
push eax
call fcn.00405063
lea ecx, [esp + 0x15c]
push ecx
call fcn.00401460
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401c42
call edi
push eax
push esi
lea edx, [esp + 0x158]
push str.removeInf:_failed_to_delete__s___GetLastError___returned__d
push edx
call fcn.00405063
lea eax, [esp + 0x160]
push eax
call fcn.00401460
add esp, 0x14
jmp 0x401c65
push esi
lea ecx, [esp + 0x154]
push str.removeInf:_successfully_deleted__s
push ecx
call fcn.00405063
lea edx, [esp + 0x15c]
push edx
call fcn.00401460
add esp, 0x10
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov al, byte [esi + 0x168]
add esi, 0x168
inc edx
test al, al
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], esi
jne 0x4018b0
mov esi, dword [esp + 0x24]
push esi
call fcn.00405174
mov ecx, dword [esp + 0xd10]
add esp, 4
call fcn.00404758
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.removeInf:_malloc___failed.
call fcn.004184c1
mov eax, dword [0x439bb0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call fcn.004048ed
int3