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

Disassembly:
sub esp, 0x64c
push ebx
push esi
push str.CopyRealUSBInfToSystem
call fcn.00406080
add esp, 4
lea eax, [esp + 0x410]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x410]
push str.lxdausb.inf
push ecx
lea edx, [esp + 0x10]
push str._sinf_s
push edx
call fcn.00406f8b
lea eax, [esp + 0x18]
lea ecx, [esp + 0x11c]
push eax
push str.CopyRealUSBInfToSystem___Attempting_to_find__s.
push ecx
call fcn.00406f8b
lea edx, [esp + 0x128]
push edx
call fcn.00406080
lea eax, [esp + 0x28]
push eax
call fcn.00405f00
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x24
test eax, eax
je 0x405d1f
lea ecx, [esp + 8]
lea edx, [esp + 0x10c]
push ecx
push str.CopyRealUSBInfToSystem___Deleting__s
push edx
call fcn.00406f8b
lea eax, [esp + 0x118]
push eax
call fcn.00406080
add esp, 0x10
lea ecx, [esp + 8]
push ecx
call ebx
jmp 0x405d46
lea edx, [esp + 8]
lea eax, [esp + 0x10c]
push edx
push str.CopyRealUSBInfToSystem_Error:_Failed_to_locate__s
push eax
call fcn.00406f8b
lea ecx, [esp + 0x118]
push ecx
call fcn.00406080
add esp, 0x10
push str.Looking_for_real_usb_inf
call fcn.00406080
lea edx, [esp + 0x310]
push edx
push str.lxdausb.inf
call fcn.00404ee0
add esp, 0xc
test eax, eax
je 0x405dac
lea eax, [esp + 8]
lea ecx, [esp + 0x30c]
push eax
push ecx
lea edx, [esp + 0x114]
push str.CopyRealUSBInfToSystem_Found__s__copying_to__s
push edx
call fcn.00406f8b
lea eax, [esp + 0x11c]
push eax
call fcn.00406080
lea ecx, [esp + 0x320]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00403540
add esp, 0x1c
jmp 0x405dd3
push str.lxdausb.inf
lea eax, [esp + 0x110]
push str.CopyRealUSBInfToSystem_Error:_Failed_to_locate__s
push eax
call fcn.00406f8b
lea ecx, [esp + 0x118]
push ecx
call fcn.00406080
add esp, 0x10
lea edx, [esp + 0x410]
lea eax, [esp + 8]
push edx
push str._sinfOEM.INF
push eax
call fcn.00406f8b
lea ecx, [esp + 0x14]
lea edx, [esp + 0x118]
push ecx
push str.Looking_for_inf:__s
push edx
call fcn.00406f8b
lea eax, [esp + 0x124]
push eax
call fcn.00406080
add esp, 0x1c
lea ecx, [esp + 0x514]
lea edx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405eec
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x544]
lea ecx, [esp + 0x414]
push eax
push ecx
lea edx, [esp + 0x318]
push str._sinf_s
push edx
call fcn.00406f8b
lea eax, [esp + 0x320]
lea ecx, [esp + 0x120]
push eax
push str.Looking_for__s
push ecx
call fcn.00406f8b
lea edx, [esp + 0x12c]
push edx
call fcn.00406080
lea eax, [esp + 0x330]
push eax
call fcn.00405f00
add esp, 0x24
test eax, eax
je 0x405ed8
lea ecx, [esp + 0x310]
lea edx, [esp + 0x110]
push ecx
push str.Found_PrintUSB_inf:__s
push edx
call fcn.00406f8b
lea eax, [esp + 0x11c]
push eax
call fcn.00406080
add esp, 0x10
lea ecx, [esp + 0x310]
push ecx
call ebx
test eax, eax
je 0x405ed8
push str.File_Deleted_
call fcn.00406080
add esp, 4
lea edx, [esp + 0x518]
push edx
push esi
call edi
test eax, eax
jne 0x405e36
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
add esp, 0x64c
ret