Function at 0x10007580
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001922e
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x1001e2c0]
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 eax, dword [ebp + 8]
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x274], ecx
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0x14]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100075d7
sub eax, edx
sar eax, 1
cmp eax, dword [ebp + 0x18]
jb 0x10007606
push 0x1001ca50
lea edx, [ebp - 0x268]
push edx
mov dword [ebp - 0x268], str.The_string_has_no_terminating_null_character_
call fcn.1000cf14
cmp eax, 1
jle 0x10007623
cmp word [esi + eax*2 - 2], 0x5c
je 0x10007623
mov ebx, 0x1001c21c
lea eax, [ebp + 0x14]
call fcn.10001560
mov esi, dword [ebp + 0x14]
mov eax, esi
lea edx, [eax + 2]
jmp 0x10007630
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10007630
sub eax, edx
sar eax, 1
mov dword [ebp - 0x280], eax
cmp eax, dword [ebp + 0x18]
jb 0x10007665
push 0x1001ca50
lea eax, [ebp - 0x268]
push eax
mov dword [ebp - 0x268], str.The_string_has_no_terminating_null_character_
call fcn.1000cf14
cmp dword [ebp - 0x274], 0
jge 0x10007674
mov dword [ebp - 0x274], eax
mov ebx, dword [ebp - 0x27c]
lea eax, [ebp + 0x14]
call fcn.10001600
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x264]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or esi, 0xffffffff
mov dword [ebp - 0x278], eax
cmp eax, esi
jne 0x100076d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], esi
cmp eax, 2
je 0x100078b1
xor ecx, ecx
mov dword [edi + 0x10b4], ecx
mov dword [edi + 0x10bc], ecx
mov ecx, dword [ebp + 0x14]
push ecx
mov dword [edi + 0x10b8], eax
call fcn.1000a8ba
add esp, 4
xor eax, eax
jmp 0x100078c2
xor eax, eax
push 0x12c
lea esi, [ebp - 0x270]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], eax
call fcn.10001400
mov eax, dword [ebp - 0x270]
xor edx, edx
mov word [eax], dx
mov byte [ebp - 4], 1
cmp word [ebp - 0x238], 0x2e
jne 0x10007734
mov ax, word [ebp - 0x236]
test ax, ax
je 0x10007874
cmp ax, 0x2e
jne 0x10007734
cmp word [ebp - 0x234], 0
je 0x10007874
mov edi, dword [ebp + 0x14]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10007740
sub eax, edx
sar eax, 1
mov ebx, eax
cmp ebx, dword [ebp + 0x18]
jae 0x100078e0
push ebx
lea esi, [ebp - 0x270]
call fcn.10001400
mov esi, dword [ebp - 0x270]
push ebx
push edi
push esi
call fcn.1000abdd
mov eax, dword [ebp - 0x280]
xor ecx, ecx
mov word [esi + ebx*2], cx
xor edx, edx
mov word [esi + eax*2], dx
add esp, 0xc
lea ebx, [ebp - 0x238]
lea eax, [ebp - 0x270]
call fcn.10001560
test byte [ebp - 0x264], 0x10
je 0x10007818
sub esp, 8
lea ebx, [ebp - 0x270]
mov eax, esp
mov dword [ebp - 0x290], esp
call fcn.10001340
mov ecx, dword [ebp - 0x274]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x27c]
push ecx
mov ecx, dword [ebp - 0x268]
push edx
push eax
call fcn.10007580
test eax, eax
jne 0x10007874
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.1000a8ba
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x14]
add esp, 4
push edx
call fcn.1000a8ba
add esp, 4
xor eax, eax
jmp 0x100078c2
mov ecx, dword [ebp - 0x274]
mov esi, dword [ebp - 0x270]
lea edi, [esi + ecx*2]
lea eax, [ebp - 0x28c]
call fcn.100012d0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x268]
push ecx
push edx
call fcn.10007320
test eax, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28c]
push eax
sete bl
call fcn.1000a8ba
add esp, 4
test bl, bl
jne 0x100078fb
mov esi, dword [ebp - 0x278]
lea ecx, [ebp - 0x264]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10007706
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x270]
push edx
call fcn.1000a8ba
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
push eax
call fcn.1000a8ba
mov eax, 1
add esp, 4
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.1000a8ab
mov esp, ebp
pop ebp
ret 0x14
push 0x1001ca50
lea edx, [ebp - 0x284]
push edx
mov dword [ebp - 0x284], str.The_string_has_no_terminating_null_character_
call fcn.1000cf14
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
mov byte [ebp - 4], 0
call fcn.1000a8ba
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x14]
add esp, 4
push ecx
call fcn.1000a8ba
add esp, 4
xor eax, eax
jmp 0x100078c2