Function at 0x10900df
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c0
mov eax, dword [0x1099a38]
and dword [ebp - 0x5a4], 0
and dword [ebp - 0x5ac], 0
push ebx
push esi
push edi
push 0x53
pop ecx
mov dword [ebp - 4], eax
lea esi, [ebp + 8]
lea edi, [ebp - 0x45c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x154]
push 0x40
xor eax, eax
test byte [esi + 0x18], 1
mov byte [ebp - 0x310], 0
pop ecx
lea edi, [ebp - 0x30f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x5b0], esi
stosb byte es:[edi], al
mov ebx, 0x103
je 0x10901d5
lea eax, [esi + 0x538]
push eax
push 0x102d874
lea edi, [esi + 0x740]
push ebx
push edi
call fcn.01037486
push edi
push 0x102d864
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01037486
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [esi + 0x63c]
push eax
call fcn.0108c975
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10901bf
push esi
sub esp, 0x14c
push 0x53
pop ecx
mov edi, esp
lea esi, [ebp - 0x45c]
rep movsd dword es:[edi], dword [esi]
call fcn.0108ff58
mov esi, dword [ebp - 0x5b0]
mov dword [ebp - 0x5a4], eax
jmp 0x10901d5
lea eax, [ebp - 0x20c]
push eax
push 0x102d838
push 1
call fcn.0108e8f0
add esp, 0xc
test byte [esi + 0x18], 2
je 0x1090325
lea eax, [esi + 0x538]
push eax
push 0x102d830
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.01037486
add esp, 0x10
lea eax, [ebp - 0x59c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x5a0], eax
je 0x109030f
test byte [ebp - 0x59c], 0x10
je 0x10902dd
lea eax, [ebp - 0x570]
push eax
lea eax, [esi + 0x538]
push eax
push 0x102d820
lea edi, [esi + 0x740]
push ebx
push edi
call fcn.01037486
push edi
push 0x102d864
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01037486
lea eax, [ebp - 0x570]
push eax
lea eax, [esi + 0x538]
push eax
push 0x1020a90
lea eax, [esi + 0x434]
push ebx
push eax
call fcn.01037486
add esp, 0x38
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea eax, [ebp - 0x20c]
push eax
je 0x10902ce
push ebx
lea eax, [esi + 0x63c]
push eax
call fcn.0108c975
push esi
sub esp, 0x14c
push 0x53
pop ecx
mov edi, esp
lea esi, [ebp - 0x45c]
rep movsd dword es:[edi], dword [esi]
call fcn.0108ff58
mov esi, dword [ebp - 0x5b0]
mov dword [ebp - 0x5a4], eax
jmp 0x10902dd
push 0x102d838
push 1
call fcn.0108e8f0
add esp, 0xc
lea eax, [ebp - 0x59c]
push eax
push dword [ebp - 0x5a0]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1090301
cmp dword [ebp - 0x5a4], 0
je 0x109021e
push dword [ebp - 0x5a0]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1090325
lea eax, [esi + 0x128]
push eax
push 0x102d7d0
push 1
call fcn.0108e8f0
add esp, 0xc
test byte [esi + 0x18], 0x84
je 0x109067c
lea eax, [esi + 0x538]
push eax
push 0x102d874
lea edi, [esi + 0x740]
push ebx
push edi
call fcn.01037486
push edi
push 0x102d7c0
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.01037486
add esp, 0x20
push 0
push 2
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x5a8], edi
je 0x109065f
push dword [ebp - 0x354]
lea eax, [ebp - 0x310]
push dword [ebp - 0x358]
push 0x100edc0
push ebx
push eax
call fcn.01037486
add esp, 0x14
lea eax, [ebp - 0x310]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupGetLineCountA]
cmp eax, 0xffffffff
jne 0x10903c8
push 0x100eda4
push ebx
lea eax, [ebp - 0x310]
push eax
call fcn.0108c975
lea eax, [ebp - 0x5c0]
push eax
push 0xa
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x314]
call dword [sym.imp.msvcrt.dll__ultoa]
add esp, 0xc
push eax
lea eax, [ebp - 0x310]
push eax
push edi
mov edi, dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
call edi
test eax, eax
jne 0x109052d
push dword [ebp - 0x314]
push 0x102d758
push 3
call fcn.0108e8f0
add esp, 0xc
lea eax, [ebp - 0x5c0]
push eax
push 0
lea eax, [ebp - 0x310]
push eax
push dword [ebp - 0x5a8]
call edi
test eax, eax
je 0x10904cb
and dword [ebp - 0x5a0], 0
lea eax, [ebp - 0x5c0]
push eax
push 0xa
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x5a0]
call dword [sym.imp.msvcrt.dll__ultoa]
add esp, 0xc
push eax
lea eax, [ebp - 0x310]
push eax
push dword [ebp - 0x5a8]
call edi
test eax, eax
je 0x10904a5
lea eax, [ebp - 0x5ac]
push eax
push 0
lea eax, [ebp - 0x5c0]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetIntField]
test eax, eax
jne 0x10904a5
push dword [ebp - 0x5b4]
lea eax, [ebp - 0x310]
push eax
push 0x102d710
push 2
call fcn.0108e8f0
add esp, 0x10
mov eax, dword [ebp - 0x5ac]
cmp eax, dword [ebp - 0x314]
ja 0x10904e1
inc dword [ebp - 0x5a0]
cmp dword [ebp - 0x5a0], 0x100
jb 0x109043c
jmp 0x10904e1
lea eax, [ebp - 0x310]
push eax
push 0x102d6d8
push 1
call fcn.0108e8f0
add esp, 0xc
push dword [ebp - 0x5ac]
push 0x102d688
push 3
call fcn.0108e8f0
add esp, 0xc
lea eax, [ebp - 0x5c0]
push eax
push 0xa
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x5ac]
call dword [sym.imp.msvcrt.dll__ultoa]
add esp, 0xc
push eax
lea eax, [ebp - 0x310]
push eax
push dword [ebp - 0x5a8]
call edi
test eax, eax
je 0x1090643
push 0
push ebx
lea eax, [ebp - 0x108]
push eax
push 1
lea eax, [ebp - 0x5c0]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x1090651
lea eax, [esi + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1090554
sub eax, edx
mov dword [ebp - 0x5a0], eax
jne 0x1090576
lea eax, [ebp - 0x108]
push eax
push ebx
lea eax, [esi + 0x24]
push eax
call fcn.0108c975
lea eax, [ebp - 0x5c0]
push eax
lea eax, [esi + 0x24]
push eax
push 0x100ed90
push dword [ebp - 0x5a8]
call edi
test eax, eax
je 0x1090638
push 0
push ebx
lea eax, [ebp - 0x108]
push eax
push 1
lea eax, [ebp - 0x5c0]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x1090651
lea eax, [ebp - 0x108]
push eax
lea eax, [esi + 0x538]
push eax
push 0x1020a90
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01037486
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea eax, [ebp - 0x20c]
push eax
je 0x1090627
push ebx
lea eax, [esi + 0x63c]
push eax
call fcn.0108c975
push esi
sub esp, 0x14c
push 0x53
pop ecx
mov edi, esp
lea esi, [ebp - 0x45c]
rep movsd dword es:[edi], dword [esi]
call fcn.0108ff58
mov esi, dword [ebp - 0x5b0]
mov dword [ebp - 0x5a4], eax
jmp 0x1090651
push 0x102d654
push 1
call fcn.0108e8f0
add esp, 0xc
jmp 0x1090651
lea eax, [esi + 0x24]
push eax
push 0x102d610
jmp 0x109062c
push 0x102d5c0
push 1
call fcn.0108e8f0
pop ecx
pop ecx
push dword [ebp - 0x5a8]
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x109067c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102d57c
push 1
call fcn.0108e8f0
add esp, 0x10
add esi, 0x740
push esi
push 0x102d56c
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.01037486
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10906c2
push 0xa007
call dword [sym.imp.KERNEL32.dll_SetLastError]
and dword [ebp - 0x5a4], 0
jmp 0x10906d6
cmp dword [ebp - 0x5a4], 0
jne 0x10906d6
push 0xa005
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x5a4]
call fcn.0106bc50
pop edi
pop esi
pop ebx
leave
ret 0x150