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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a4
call fcn.005b5230
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10a4], ecx
mov dword [ebp - 0x418], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.005b4de0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x410], dx
push 0x1fe
push 0
lea eax, [ebp - 0x40e]
push eax
call fcn.005b4de0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x618], cx
push 0x1fe
push 0
lea edx, [ebp - 0x616]
push edx
call fcn.005b4de0
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x618]
push ecx
call fcn.005b4dbe
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
push 0x65a9bc
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x65a9cc
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x868]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x86c], eax
cmp dword [ebp - 0x86c], 0xffffffff
jne 0x565c2b
cmp dword [ebp - 0x418], 0
setne al
jmp 0x565fca
mov edx, 1
test edx, edx
je 0x565fb3
movzx eax, word [ebp - 0x83c]
cmp eax, 0x2e
je 0x565f89
movzx ecx, word [ebp - 0x83a]
test ecx, ecx
je 0x565f89
movzx edx, word [ebp - 0x83a]
cmp edx, 0x2e
jne 0x565c72
movzx eax, word [ebp - 0x838]
test eax, eax
je 0x565f89
mov ecx, dword [ebp - 0x868]
and ecx, 0x10
je 0x565d7c
xor edx, edx
mov word [ebp - 0xa78], dx
push 0x206
push 0
lea eax, [ebp - 0xa76]
push eax
call fcn.005b4de0
add esp, 0xc
lea ecx, [ebp - 0x83c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x65a9d8
lea eax, [ebp - 0xa78]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
jne 0x565d41
xor edx, edx
mov word [ebp - 0xc80], dx
push 0x206
push 0
lea eax, [ebp - 0xc7e]
push eax
call fcn.005b4de0
add esp, 0xc
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x83c]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x65a9e4
lea ecx, [ebp - 0xc80]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea edx, [ebp - 0xc80]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x565d41
mov dword [ebp - 0x418], 1
lea eax, [ebp - 0xc80]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.005b4dbe
add esp, 8
jmp 0x565fb3
movzx edx, byte [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xa78]
push edx
mov ecx, dword [ebp - 0x10a4]
call fcn.00565b30
movzx eax, al
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x565d77
jmp 0x565fb3
jmp 0x565f89
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x565eee
lea edx, [ebp - 0x83c]
push edx
call fcn.005b50b1
add esp, 4
mov dword [ebp - 0xc84], eax
lea eax, [ebp - 0x618]
push eax
call fcn.005b50b1
add esp, 4
mov dword [ebp - 0xc88], eax
cmp dword [ebp - 0xc84], 0
jle 0x565ee9
cmp dword [ebp - 0xc88], 0
jle 0x565ee9
mov ecx, dword [ebp - 0xc84]
cmp ecx, dword [ebp - 0xc88]
jl 0x565ee9
mov byte [ebp - 0xc89], 0
lea edx, [ebp - 0x618]
push edx
call fcn.005b86e0
add esp, 4
push eax
lea eax, [ebp - 0x83c]
push eax
call fcn.005b86e0
add esp, 4
push eax
call fcn.0041c6e0
add esp, 8
test eax, eax
je 0x565e6c
mov byte [ebp - 0xc89], 1
mov dword [ebp - 0xc90], 0
jmp 0x565e33
mov ecx, dword [ebp - 0xc90]
add ecx, 1
mov dword [ebp - 0xc90], ecx
mov edx, dword [ebp - 0xc90]
cmp edx, dword [ebp - 0xc88]
jge 0x565e6c
mov eax, dword [ebp - 0xc90]
movzx ecx, word [ebp + eax*2 - 0x83c]
mov edx, dword [ebp - 0xc90]
movzx eax, word [ebp + edx*2 - 0x618]
cmp ecx, eax
je 0x565e6a
mov byte [ebp - 0xc89], 0
jmp 0x565e6c
jmp 0x565e24
movzx ecx, byte [ebp - 0xc89]
test ecx, ecx
je 0x565ee9
xor edx, edx
mov word [ebp - 0xe98], dx
push 0x206
push 0
lea eax, [ebp - 0xe96]
push eax
call fcn.005b4de0
add esp, 0xc
lea ecx, [ebp - 0x83c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x65a9f4
lea eax, [ebp - 0xe98]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0xe98]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x565ee9
mov dword [ebp - 0x418], 1
lea edx, [ebp - 0xe98]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.005b4dbe
add esp, 8
jmp 0x565fb3
jmp 0x565f89
lea ecx, [ebp - 0x410]
push ecx
call fcn.005b86e0
add esp, 4
push eax
lea edx, [ebp - 0x83c]
push edx
call fcn.005b86e0
add esp, 4
push eax
call fcn.005b51f3
add esp, 8
test eax, eax
jne 0x565f89
xor eax, eax
mov word [ebp - 0x10a0], ax
push 0x206
push 0
lea ecx, [ebp - 0x109e]
push ecx
call fcn.005b4de0
add esp, 0xc
lea edx, [ebp - 0x83c]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x65aa00
lea ecx, [ebp - 0x10a0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x10a0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x565f89
mov dword [ebp - 0x418], 1
lea eax, [ebp - 0x10a0]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.005b4dbe
add esp, 8
jmp 0x565fb3
lea edx, [ebp - 0x868]
push edx
mov eax, dword [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
jne 0x565fae
jmp 0x565fb3
jmp 0x565c2b
mov ecx, dword [ebp - 0x86c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x418], 0
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret 0x10