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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab616
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x5f300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2f0], ebx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2e8]
push 0x250
push 0
push eax
mov byte [ebp - 0x2e9], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
add ebx, 0xb0c
ret
or al, 0xb
add byte [eax], al
mov dword [ebp - 0x2f8], eax
push str.buffers
mov ecx, ebx
call fcn.00528190
mov dword [ebp - 0x7c], vtable.FilePath.0
mov esi, eax
mov edx, edi
test edi, edi
jne 0x56695b
mov edx, 0x5c0b38
mov ecx, edx
mov dword [ebp - 0x68], 0
xor eax, eax
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x2f4], eax
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x566980
sub ecx, dword [ebp - 0x2f4]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x78]
call fcn.0040acf0
mov eax, dword [ebp - 0x2f8]
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
je 0x566a43
test al, 0x10
je 0x566ea5
mov edi, dword [ebp - 0x2f0]
mov ecx, ebx
push str.open.filter
mov eax, dword [edi]
mov esi, dword [eax + 0x6c]
lea eax, [ebp - 0x28]
push eax
call fcn.00528070
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00560530
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x5669f0
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x7c]
mov ecx, edi
push eax
call esi
lea ecx, [ebp - 0x5c]
call fcn.0040ab30
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x566a37
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x566a2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x566a2d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0059e222
add esp, 8
mov byte [ebp - 0x2e9], 1
jmp 0x566ea5
cmp esi, 1
jle 0x566b69
lea eax, [ebp - 0x2e8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x566b69
lea eax, [ebp - 0x98]
mov byte [ebp - 0x2e9], 1
push eax
lea ecx, [ebp - 0x7c]
call fcn.00518860
mov byte [ebp - 4], 3
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x566a90
test byte [ebp - 0x2e8], 0x10
jne 0x566b3c
xor eax, eax
mov dword [ebp - 0x60], vtable.FilePath.0
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
lea edx, [ecx + 2]
mov word [ebp - 0x5c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x566ac1
sub ecx, edx
lea eax, [ebp - 0x2bc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040acf0
xor eax, eax
mov dword [ebp - 0x2c], vtable.FilePath.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x2c]
call fcn.005181f0
mov ecx, dword [ebp - 0x2f0]
lea eax, [ebp - 0x2c]
push 0
push eax
mov byte [ebp - 4], 6
call fcn.0054e6b0
lea ecx, [ebp - 0x28]
call fcn.0040ab30
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.0040ab30
dec esi
test esi, esi
jle 0x566b52
lea eax, [ebp - 0x2e8]
push eax
push edi
call ebx
test eax, eax
jne 0x566a90
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x94]
call fcn.0040ab30
jmp 0x566ea5
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00518580
lea ecx, [ebp - 0x94]
mov esi, dword [eax + 0x14]
call fcn.0040ab30
lea ecx, [ebp - 0x7c]
test esi, esi
jne 0x566cc4
lea eax, [ebp - 0x60]
mov byte [ebp - 0x2e9], 1
push eax
call fcn.00518860
mov byte [ebp - 4], 7
cmp dword [ebp - 0x4c], esi
ja 0x566be4
push 1
xor eax, eax
mov dword [ebp - 0x2c], vtable.FilePath.0
push 0x5d71a0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040acf0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x60]
call fcn.0050fc20
lea ecx, [ebp - 0x28]
call fcn.0040ab30
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00518470
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
push 1
xor eax, eax
mov dword [ebp - 0x34], 0
push 0x5d71b8
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.0040acf0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x566c27
mov edx, dword [ebp - 0x28]
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x566c30
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00519fc0
push 2
push 0x5d71b0
lea ecx, [ebp - 0x44]
call fcn.00519fc0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x566c64
mov edx, dword [ebp - 0x28]
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x566c70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00519fc0
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x2f0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x6c]
lea eax, [ebp - 0x44]
jb 0x566ca0
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x60]
push eax
call edx
lea ecx, [ebp - 0x44]
call fcn.0040ab30
lea ecx, [ebp - 0x28]
call fcn.0040ab30
lea ecx, [ebp - 0x5c]
call fcn.0040ab30
jmp 0x566ea5
lea eax, [ebp - 0x98]
push eax
call fcn.005186f0
lea ecx, [ebp - 0x94]
mov esi, dword [eax + 0x14]
call fcn.0040ab30
test esi, esi
jne 0x566ea5
push str.source.default.extensions
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call fcn.00528070
mov byte [ebp - 4], 0xa
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x566e6f
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 0x2ea], 0
mov byte [ebp - 0x2eb], 0x7c
cmp edx, 0x10
jb 0x566d23
mov ecx, eax
add esi, ecx
lea ecx, [ebp - 0x44]
cmp edx, 0x10
jb 0x566d2f
mov ecx, eax
push esi
push ecx
lea edx, [ebp - 0x2ea]
lea ecx, [ebp - 0x2eb]
call fcn.00450330
xor esi, esi
add esp, 8
cmp dword [ebp - 0x34], esi
jbe 0x566e6f
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
jb 0x566d62
mov eax, dword [ebp - 0x44]
lea edx, [eax + esi]
lea ecx, [ebp - 0x28]
call fcn.00560450
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x78]
cmp dword [ebp - 0x64], 8
jb 0x566d7d
mov edx, dword [ebp - 0x78]
mov ecx, edx
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x566d96
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.0040acf0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x566dbf
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00519fc0
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
jb 0x566dd7
mov eax, dword [ebp - 0x5c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x566e1c
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
jb 0x566deb
mov eax, dword [ebp - 0x44]
lea ecx, [eax + esi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x566df1
sub ecx, edx
inc ecx
add esi, ecx
lea ecx, [ebp - 0x5c]
call fcn.0040ab30
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.0040ab30
cmp esi, dword [ebp - 0x34]
jb 0x566d56
jmp 0x566e6f
lea eax, [ebp - 0x5c]
mov byte [ebp - 0x2e9], 1
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x98], vtable.FilePath.0
call fcn.005111c0
mov ecx, dword [ebp - 0x2f0]
lea eax, [ebp - 0x98]
push 0
push eax
mov byte [ebp - 4], 0xd
call fcn.0054e6b0
lea ecx, [ebp - 0x94]
call fcn.0040ab30
lea ecx, [ebp - 0x5c]
call fcn.0040ab30
lea ecx, [ebp - 0x28]
call fcn.0040ab30
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x566ea5
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x566e9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x566e9b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0059e222
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.0040ab30
mov al, byte [ebp - 0x2e9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059df64
mov esp, ebp
pop ebp
ret 4