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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4c4e
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x6670f4]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x26c], edi
mov eax, dword [ebp + 0xc]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x568a45
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x568a45
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x568c87
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00567f60
add esp, 8
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004bfcd0
mov edx, dword [ebp - 0x264]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x5689ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5ffa8c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.004c3c70
add esp, 0xc
mov eax, dword [ebp - 0x268]
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], 0x104
jl 0x568a84
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x568a45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x568a66
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.0050ed5c
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x568c51
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x568ab0
sub ecx, edx
sar ecx, 1
je 0x568aff
lea edx, [ebp - 0x234]
mov eax, 0x6453c8
nop dword [eax]
mov si, word [eax]
cmp si, word [edx]
jne 0x568af6
test si, si
je 0x568af2
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x568af6
add eax, 4
add edx, 4
test si, si
jne 0x568ad0
xor eax, eax
jmp 0x568afb
sbb eax, eax
or eax, 1
test eax, eax
je 0x568b5f
test ecx, ecx
je 0x568b3f
lea ecx, [ebp - 0x234]
mov eax, 0x6453c0
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x568b36
test dx, dx
je 0x568b32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x568b36
add eax, 4
add ecx, 4
test dx, dx
jne 0x568b10
xor eax, eax
jmp 0x568b3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x568b5f
push ecx
mov eax, esp
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.004c3c70
add esp, 0xc
push edi
call fcn.00568950
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop word [eax + eax]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call ebx
test eax, eax
je 0x568c48
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x568b90
sub ecx, edx
sar ecx, 1
je 0x568bdf
lea edx, [ebp - 0x234]
mov eax, 0x6453c8
nop dword [eax]
mov si, word [eax]
cmp si, word [edx]
jne 0x568bd6
test si, si
je 0x568bd2
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x568bd6
add eax, 4
add edx, 4
test si, si
jne 0x568bb0
xor eax, eax
jmp 0x568bdb
sbb eax, eax
or eax, 1
test eax, eax
je 0x568b70
test ecx, ecx
je 0x568c23
lea ecx, [ebp - 0x234]
mov eax, 0x6453c0
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x568c16
test dx, dx
je 0x568c12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x568c16
add eax, 4
add ecx, 4
test dx, dx
jne 0x568bf0
xor eax, eax
jmp 0x568c1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x568b70
push ecx
mov eax, esp
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.004c3c70
add esp, 0xc
push edi
call fcn.00568950
add esp, 8
jmp 0x568b70
mov eax, dword [ebp - 0x264]
or ebx, 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x268]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x568d23
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x568a47
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], eax
test eax, eax
je 0x568cf8
mov edi, eax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x568ca1
sub edi, ecx
mov edx, 2
sar edi, 1
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050f771
lea ecx, [esi + esi]
mov ebx, eax
push ecx
push 0
push ebx
mov dword [ebp - 0x268], ebx
call fcn.0058c8f0
lea ecx, [edi + edi]
push ecx
push dword [ebp - 0x264]
push ebx
call fcn.0058bd80
mov edi, dword [ebp - 0x26c]
add esp, 0x1c
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x568d11
mov dword [eax], ebx
add dword [edi + 4], 4
or ebx, 0xffffffff
lea esi, [ebx + 2]
jmp 0x568a47
lea ecx, [ebp - 0x268]
push ecx
push eax
mov ecx, edi
call fcn.00544fb0
or ebx, 0xffffffff
mov esi, 1
jmp 0x568a47