Function at 0x408d02
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
and dword [ebp - 4], 0
push ebx
push esi
push edi
push str.__vDeleteInfFile
call fcn.004013fd
cmp byte [0x42a13c], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ecx
mov esi, 0x104
jne 0x408d5f
cmp byte [0x42a13d], 0
jne 0x408d5f
cmp byte [0x42a13e], 0
jne 0x408d5f
cmp byte [0x42a13f], 0
jne 0x408d5f
cmp byte [0x42a140], 0
je 0x408e48
lea eax, [ebp - 0x210]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x210]
push esi
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0040c150
lea eax, [ebp - 0x10c]
push str.infother.inf
push eax
call fcn.0040bb40
add esp, 0x14
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x10c]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x408fb4
push esi
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0040ba40
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push str._sinfother_s
push eax
call fcn.0040becd
push dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
call fcn.004089bf
add esp, 0x24
test eax, eax
je 0x408e23
lea eax, [ebp - 0x10c]
push eax
push str.vDeleteInfFile__s
call fcn.004013fd
pop ecx
lea eax, [ebp - 0x10c]
pop ecx
push 0x80
push eax
call ebx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x350]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408e3e
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x408db1
cmp byte [0x42a141], 0
je 0x408f47
lea eax, [ebp - 0x210]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x210]
push esi
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0040c150
lea eax, [ebp - 0x10c]
push str.oemnad.inf
push eax
call fcn.0040bb40
add esp, 0x14
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x10c]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x408fb4
cmp dword [ebp - 4], 0
jne 0x408f47
push esi
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0040ba40
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push str._s_s
push eax
call fcn.0040becd
push dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
call fcn.004089bf
add esp, 0x24
test eax, eax
je 0x408f23
lea eax, [ebp - 0x10c]
push eax
push str.vDeleteInfFile__s
call fcn.004013fd
pop ecx
lea eax, [ebp - 0x10c]
pop ecx
push 0x80
push eax
call ebx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x350]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408ea7
mov dword [ebp - 4], 1
jmp 0x408ea7
cmp byte [0x42a142], 0
jne 0x408f66
cmp byte [0x42a143], 0
jne 0x408f66
cmp byte [0x42a144], 0
je 0x409093
lea eax, [ebp - 0x210]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x210]
push esi
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0040c150
lea eax, [ebp - 0x10c]
push str.infoem.inf
push eax
call fcn.0040bb40
add esp, 0x14
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x10c]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x408fc1
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4090a7
cmp dword [ebp - 4], 0
jne 0x409093
push esi
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0040ba40
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push str._sinf_s
push eax
call fcn.0040becd
push dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
call fcn.004089bf
add esp, 0x24
test eax, eax
je 0x40906f
lea eax, [ebp - 0x10c]
push eax
push str.vDeleteInfFile__s
call fcn.004013fd
pop ecx
lea eax, [ebp - 0x10c]
pop ecx
push 0x80
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x10c]
push eax
call edi
lea eax, [ebp - 0x10c]
push eax
push str..pnf
push str..inf
call fcn.00409227
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0x80
push eax
call ebx
lea eax, [ebp - 0x10c]
push eax
call edi
lea eax, [ebp - 0x350]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408fc1
mov dword [ebp - 4], 1
jmp 0x408fc1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x426e84
call fcn.004013fd
pop ecx
pop edi
pop esi
pop ebx
leave
ret