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

Disassembly:
sub esp, 0xe20
push ebx
push ebp
push edi
xor ebx, ebx
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x224]
mov dword [esp + 0x220], ebx
rep stosd dword es:[edi], eax
mov ecx, 0x230
lea edi, [esp + 0x569]
mov byte [esp + 0x568], al
push str.setupapi.dll
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x14], ebp
je 0x10007e94
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupOpenInfFileA
push ebp
call esi
push str.SetupGetInfInformationA
push ebp
mov dword [0x100283a0], eax
call esi
push str.SetupQueryInfVersionInformationA
push ebp
mov dword [0x100283a4], eax
call esi
push str.SetupCloseInfFile
push ebp
mov dword [0x1002836c], eax
call esi
mov ecx, dword [0x100283a0]
mov dword [0x100283a8], eax
test ecx, ecx
je 0x10007e8c
mov ecx, dword [0x100283a4]
test ecx, ecx
je 0x10007e8c
mov ecx, dword [0x1002836c]
test ecx, ecx
je 0x10007e8c
test eax, eax
je 0x10007e8c
lea eax, [esp + 0x120]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x10007e8c
lea ecx, [esp + 0x120]
lea edx, [esp + 0x468]
push ecx
push str._sINF
push edx
call fcn.1000d199
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
push str.INFOEM.INF
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x130]
push eax
call fcn.1000d199
add esp, 0x14
lea ecx, [esp + 0x224]
lea edx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x10007e8c
lea eax, [esp + 0x250]
lea ecx, [esp + 0x468]
push eax
push ecx
lea edx, [esp + 0x24]
push str._s_s
push edx
call fcn.1000d199
add esp, 0x10
lea eax, [esp + 0x1c]
push 0
push 2
push 0x1002673c
push eax
call dword [0x100283a0]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10007dc1
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push ebp
call dword [0x100283a4]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10007dba
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10007dba
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push eax
push esi
push 1
push ebp
call dword [0x100283a4]
test eax, eax
je 0x10007db3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x364]
push ecx
push 0x104
push edx
push str.Provider
push 0
push esi
call dword [0x1002836c]
test eax, eax
je 0x10007db3
mov edi, 0x10026718
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x364]
push ecx
push 0x10026718
push eax
call fcn.10014050
add esp, 0xc
test eax, eax
je 0x10007dae
mov edi, 0x10026704
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x368]
push 0x10026704
push ecx
call fcn.10014050
add esp, 0xc
test eax, eax
jne 0x10007db3
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call dword [0x100283a8]
test ebx, ebx
je 0x10007e66
lea edx, [esp + 0x56c]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.10007ea0
xor esi, esi
mov eax, dword [esp + 0x6ac]
test eax, eax
jbe 0x10007e64
lea edi, [esp + 0x730]
push str.USBVID_08e2PID_0002
push edi
call fcn.10012270
add esp, 8
test eax, eax
je 0x10007e15
mov eax, dword [esp + 0x6ac]
inc esi
add edi, 0xc0
cmp esi, eax
jb 0x10007def
jmp 0x10007e64
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
push ecx
call ebx
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1c]
mov edx, ecx
sub eax, 3
add edx, eax
mov edi, 0x10026700
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call ebx
xor ebx, ebx
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x224]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10007cae
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0xe20
ret