Function at 0x56a850
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 str._s.lnk
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str._s.
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 0x56a94b
cmp dword [ebp - 0x418], 0
setne al
jmp 0x56acea
mov edx, 1
test edx, edx
je 0x56acd3
movzx eax, word [ebp - 0x83c]
cmp eax, 0x2e
je 0x56aca9
movzx ecx, word [ebp - 0x83a]
test ecx, ecx
je 0x56aca9
movzx edx, word [ebp - 0x83a]
cmp edx, 0x2e
jne 0x56a992
movzx eax, word [ebp - 0x838]
test eax, eax
je 0x56aca9
mov ecx, dword [ebp - 0x868]
and ecx, 0x10
je 0x56aa9c
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 str._s_s_
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 0x56aa61
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 0x65bca4
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 0x56aa61
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 0x56acd3
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.0056a850
movzx eax, al
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x56aa97
jmp 0x56acd3
jmp 0x56aca9
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x56ac0e
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 0x56ac09
cmp dword [ebp - 0xc88], 0
jle 0x56ac09
mov ecx, dword [ebp - 0xc84]
cmp ecx, dword [ebp - 0xc88]
jl 0x56ac09
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 0x56ab8c
mov byte [ebp - 0xc89], 1
mov dword [ebp - 0xc90], 0
jmp 0x56ab53
mov ecx, dword [ebp - 0xc90]
add ecx, 1
mov dword [ebp - 0xc90], ecx
mov edx, dword [ebp - 0xc90]
cmp edx, dword [ebp - 0xc88]
jge 0x56ab8c
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 0x56ab8a
mov byte [ebp - 0xc89], 0
jmp 0x56ab8c
jmp 0x56ab44
movzx ecx, byte [ebp - 0xc89]
test ecx, ecx
je 0x56ac09
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 0x65bcb4
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 0x56ac09
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 0x56acd3
jmp 0x56aca9
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 0x56aca9
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 0x65bcc0
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 0x56aca9
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 0x56acd3
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 0x56acce
jmp 0x56acd3
jmp 0x56a94b
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