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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10140d08
mov eax, dword fs:[0]
push eax
mov eax, 0x1548
call fcn.10123480
mov eax, dword [0x101ba518]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x10097530
mov eax, dword [esi]
jmp 0x10097532
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10097887
test al, 0x10
je 0x10097887
push dword [ebp - 0x1550]
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
call fcn.100162a0
mov eax, dword [edi]
add esp, 8
mov dword [edi + 4], eax
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov dword [ebp - 4], 3
lea eax, [ebp - 0x44]
cmp eax, esi
je 0x1009759f
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.10009170
push 0x1016e2c4
lea ecx, [ebp - 0x2c]
call fcn.100062a0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.10095880
add esp, 4
test al, al
sete bl
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 8
jb 0x100975d8
push dword [ebp - 0x2c]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
test bl, bl
je 0x100975ff
push 1
push 0x1016e2c4
lea ecx, [ebp - 0x44]
call fcn.10009090
push 0xffffffffffffffff
push 0
push 0x101bbc88
lea ecx, [ebp - 0x44]
call fcn.10008fc0
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x2ac]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1550], eax
cmp eax, 0xffffffff
jne 0x10097695
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x100977ff
cmp eax, 2
je 0x100977ff
push str.FIO::GetFiles:_FindFirstFile_failed
lea ecx, [ebp - 0x2c]
call fcn.100062a0
mov byte [ebp - 4], 5
sub esp, 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x154c]
push 0
push 0
push eax
push 0x11
call fcn.1008dbf0
mov esi, eax
lea edi, [ebp - 0xd24]
push 0x101b7cc0
lea eax, [ebp - 0xd24]
mov ecx, 0x20a
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.1011935b
xor eax, eax
mov dword [ebp - 0x4c], 0
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x5c]
push esi
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
call fcn.10009170
mov byte [ebp - 4], 6
xor eax, eax
push 1
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
push 0x1016e2c4
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.10009290
mov byte [ebp - 4], 7
lea edx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.10095880
add esp, 4
test al, al
sete bl
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], 8
jb 0x10097725
push dword [ebp - 0x2c]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
test bl, bl
je 0x1009774c
push 1
push 0x1016e2c4
lea ecx, [ebp - 0x5c]
call fcn.10009090
cmp word [ebp - 0x280], 0
jne 0x1009775a
xor ecx, ecx
jmp 0x10097772
lea ecx, [ebp - 0x280]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10097763
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10009090
push 0x250
lea eax, [ebp - 0x4fc]
push 0
push eax
call fcn.1011da50
add esp, 0xc
cmp dword [ebp - 0x48], 8
jb 0x10097847
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x1009784a
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x48], 8
jb 0x100977c8
push dword [ebp - 0x5c]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp - 0x1550]
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10097695
push dword [ebp - 0x1550]
call ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x30], 8
jb 0x10097817
push dword [ebp - 0x44]
call fcn.10115284
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10115289
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x4fc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, 0xffffffff
je 0x100977b3
push eax
call ebx
test byte [ebp - 0x4fc], 0x10
jne 0x100977b3
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.10014d00
jmp 0x100977b3
push str.FIO::GetFiles:_search_path_does_not_exist:
lea ecx, [ebp - 0x2c]
call fcn.100062a0
mov dword [ebp - 4], 0
mov edx, eax
push esi
lea ecx, [ebp - 0x5c]
call fcn.1001cf30
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
jb 0x100978be
push dword [ebp - 0x2c]
call fcn.10115284
add esp, 4
sub esp, 8
mov dword [ebp - 0x18], 7
xor eax, eax
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x154c]
push eax
push eax
lea eax, [ebp - 0x5c]
push eax
push 0x32
call fcn.1008dbf0
mov esi, eax
lea edi, [ebp - 0xd24]
push 0x101b7cc0
lea eax, [ebp - 0xd24]
mov ecx, 0x20a
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.1011935b
int3