Function at 0x407470
Capabilities:
Enumerate files on windows
Get common file path
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x424196
mov eax, dword fs:[0]
push eax
mov eax, 0x155c
call fcn.00411020
mov eax, dword [0x42ea04]
xor eax, esp
mov dword [esp + 0x1558], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42ea04]
xor eax, esp
push eax
lea eax, [esp + 0x1570]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
push 0x400
lea eax, [esp + 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x16c]
push ecx
lea edx, [esp + 0x570]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.inf
lea eax, [esp + 0x570]
push eax
call edi
push str.inf.
lea ecx, [esp + 0x170]
push ecx
call edi
call fcn.00408567
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40751c
push 0x80004005
call fcn.00401140
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x24], edi
mov ecx, esi
mov dword [esp + 0x1578], 0
call fcn.004071a0
test eax, eax
jne 0x40754a
lea eax, [edi - 0x10]
jmp 0x40778a
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x170]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x58]
push 0x104
push eax
call fcn.004126f5
push 3
lea ecx, [esp + 0x64]
push 0x426918
push ecx
call fcn.00412469
add esp, 0x14
test eax, eax
jne 0x40776b
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x570]
push eax
lea ecx, [esp + 0x974]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [esp + 0x984]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40776b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x407612
lea eax, [esi + 1]
push eax
call fcn.0040781d
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
je 0x407616
push 0
lea ecx, [esp + 0x2c]
push ecx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x407616
mov edi, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x18]
call fcn.004073d0
mov eax, dword [str.USBVid_05caPid_043dRev_0001MI_00_USBVid_05caPid_043dMI_00]
test eax, eax
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x1578], 1
jne 0x40763a
or ebx, 0xffffffff
jmp 0x407660
cmp dword [ecx - 0xc], 0
jge 0x407645
or ebx, 0xffffffff
jmp 0x407660
push eax
push ecx
call fcn.00412456
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x40765c
or ebx, 0xffffffff
jmp 0x407660
sub eax, ecx
mov ebx, eax
mov eax, dword [str.USBVid_05caPid_044bRev_0001MI_00_USBVid_05caPid_044bMI_00]
test eax, eax
jne 0x40766e
or edi, 0xffffffff
jmp 0x407694
cmp dword [ecx - 0xc], 0
jge 0x407679
or edi, 0xffffffff
jmp 0x407694
push eax
push ecx
call fcn.00412456
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x407690
or edi, 0xffffffff
jmp 0x407694
sub eax, ecx
mov edi, eax
mov eax, dword [str.USBVid_05caPid_044aRev_0001MI_00_USBVid_05caPid_044aMI_00]
test eax, eax
jne 0x4076a2
or esi, 0xffffffff
jmp 0x4076c6
cmp dword [ecx - 0xc], 0
jge 0x4076ad
or esi, 0xffffffff
jmp 0x4076c6
push eax
push ecx
call fcn.00412456
add esp, 8
test eax, eax
jne 0x4076c0
or esi, 0xffffffff
jmp 0x4076c6
sub eax, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4076df
push eax
call fcn.00407818
add esp, 4
mov dword [esp + 0x18], 0
push str.__f__d
lea edx, [esp + 0xd70]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0xd70]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp ebx, 0xffffffff
jne 0x407712
cmp edi, ebx
jne 0x407712
cmp esi, ebx
je 0x40773c
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.00407030
push 0
lea edx, [esp + 0xd70]
push edx
push str.pnputil
push 0
mov ecx, esi
call fcn.00407170
mov ecx, esi
call fcn.00407090
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x1578], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40776b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407561
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x1578], 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4077ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1570]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1558]
xor ecx, esp
call fcn.00410f96
add esp, 0x1568
ret