Function at 0x405d6e
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push 0x390
mov eax, 0x440aee
call fcn.004264f2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x378], eax
call fcn.0041901a
push eax
lea ecx, [ebp - 0x36c]
call fcn.00401eb1
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x118]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x36c]
call fcn.004029d1
mov esi, 0x447990
push esi
lea ecx, [ebp - 0x36c]
call fcn.00402623
call fcn.0041901a
push eax
lea ecx, [ebp - 0x368]
call fcn.00401eb1
push ebx
lea eax, [ebp - 0x118]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x368]
call fcn.004029d1
push esi
lea ecx, [ebp - 0x368]
call fcn.00402623
push str..sys
push dword [ebp - 0x378]
lea eax, [ebp - 0x388]
push eax
call fcn.004084c1
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x360]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [ebp - 0x388]
add ecx, 0xfffffff0
mov dword [ebp - 0x370], eax
call fcn.00401ef4
cmp dword [ebp - 0x370], 0xffffffff
je 0x4061f6
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, str.drivers_
lea eax, [ebp - 0x334]
push eax
lea ecx, [ebp - 0x364]
call fcn.00402853
push ebx
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x38c]
push eax
mov byte [ebp - 4], 2
call fcn.004084c1
lea ecx, [ebp - 0x364]
push ecx
push eax
lea eax, [ebp - 0x390]
push eax
mov byte [ebp - 4], 3
call fcn.0040846a
add esp, 0x18
push dword [eax]
call esi
mov ecx, dword [ebp - 0x390]
add ecx, 0xfffffff0
call fcn.00401ef4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x38c]
add ecx, 0xfffffff0
call fcn.00401ef4
push ebx
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x37c]
push eax
call fcn.004084c1
lea ecx, [ebp - 0x364]
push ecx
push eax
lea eax, [ebp - 0x384]
push eax
mov byte [ebp - 4], 4
call fcn.0040846a
mov dword [ebp - 0x374], eax
lea eax, [ebp - 0x364]
push eax
push dword [ebp - 0x378]
lea eax, [ebp - 0x380]
push eax
mov byte [ebp - 4], 5
call fcn.0040846a
mov ecx, dword [ebp - 0x374]
mov ecx, dword [ecx]
mov eax, dword [eax]
add esp, 0x24
push edi
push edi
push 0x40
push ecx
push edi
push eax
push edi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupInstallFileA]
mov ecx, dword [ebp - 0x380]
add ecx, 0xfffffff0
mov dword [ebp - 0x374], eax
call fcn.00401ef4
mov ecx, dword [ebp - 0x384]
add ecx, 0xfffffff0
call fcn.00401ef4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x37c]
add ecx, 0xfffffff0
call fcn.00401ef4
cmp dword [ebp - 0x374], edi
jne 0x405fa1
push dword [ebp - 0x364]
lea eax, [ebp - 0x220]
push 0x447b8c
push eax
call fcn.00422c97
add esp, 0xc
push edi
push edi
lea eax, [ebp - 0x220]
push eax
call fcn.00418ce7
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x364]
add ecx, 0xfffffff0
call fcn.00401ef4
lea eax, [ebp - 0x360]
push eax
push dword [ebp - 0x370]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405e69
push dword [ebp - 0x370]
call dword [sym.imp.KERNEL32.dll_FindClose]
push str..inf
push dword [ebp - 0x378]
lea eax, [ebp - 0x37c]
push eax
call fcn.004084c1
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x360]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [ebp - 0x37c]
add ecx, 0xfffffff0
mov dword [ebp - 0x370], eax
call fcn.00401ef4
cmp dword [ebp - 0x370], 0xffffffff
je 0x4061f6
mov ebx, str.inf_
lea eax, [ebp - 0x334]
push eax
lea ecx, [ebp - 0x364]
call fcn.00402853
mov byte [ebp - 4], 6
call fcn.004054ba
test al, al
je 0x406077
lea eax, [ebp - 0x364]
push eax
push dword [ebp - 0x378]
lea eax, [ebp - 0x384]
push eax
call fcn.0040846a
push dword [eax]
call fcn.00406e7d
mov ecx, dword [ebp - 0x384]
add esp, 0x10
jmp 0x4061b5
push ebx
lea eax, [ebp - 0x368]
push eax
lea eax, [ebp - 0x374]
push eax
call fcn.004084c1
lea ecx, [ebp - 0x364]
push ecx
push eax
lea eax, [ebp - 0x380]
push eax
mov byte [ebp - 4], 7
call fcn.0040846a
add esp, 0x18
push dword [eax]
call esi
mov ecx, dword [ebp - 0x380]
add ecx, 0xfffffff0
call fcn.00401ef4
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x374]
add ecx, 0xfffffff0
call fcn.00401ef4
push ebx
lea eax, [ebp - 0x368]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.004084c1
lea ecx, [ebp - 0x364]
push ecx
push eax
lea eax, [ebp - 0x388]
push eax
mov byte [ebp - 4], 8
call fcn.0040846a
mov dword [ebp - 0x38c], eax
lea eax, [ebp - 0x364]
push eax
push dword [ebp - 0x378]
lea eax, [ebp - 0x390]
push eax
mov byte [ebp - 4], 9
call fcn.0040846a
mov ecx, dword [ebp - 0x38c]
mov ecx, dword [ecx]
mov eax, dword [eax]
add esp, 0x24
push edi
push edi
push 0x40
push ecx
push edi
push eax
push edi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupInstallFileA]
mov ecx, dword [ebp - 0x390]
add ecx, 0xfffffff0
call fcn.00401ef4
mov ecx, dword [ebp - 0x388]
add ecx, 0xfffffff0
call fcn.00401ef4
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x394]
add ecx, 0xfffffff0
call fcn.00401ef4
push str.INFDRVIDX.BIN
lea eax, [ebp - 0x368]
push eax
lea eax, [ebp - 0x39c]
push eax
call fcn.004084c1
add esp, 0xc
push dword [eax]
call esi
mov ecx, dword [ebp - 0x39c]
add ecx, 0xfffffff0
call fcn.00401ef4
push str.INFDRVDATA.BIN
lea eax, [ebp - 0x368]
push eax
lea eax, [ebp - 0x398]
push eax
call fcn.004084c1
add esp, 0xc
push dword [eax]
call esi
mov ecx, dword [ebp - 0x398]
add ecx, 0xfffffff0
call fcn.00401ef4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x364]
add ecx, 0xfffffff0
call fcn.00401ef4
lea eax, [ebp - 0x360]
push eax
push dword [ebp - 0x370]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40602a
push dword [ebp - 0x370]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x368]
add ecx, 0xfffffff0
call fcn.00401ef4
mov ecx, dword [ebp - 0x36c]
add ecx, 0xfffffff0
call fcn.00401ef4
call fcn.00426575
ret