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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x1c]
push ebx
push esi
and dword [edi], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
push esi
jne 0x7cf7a2c2
call fcn.7cf9d3b4
test eax, eax
je 0x7cf7a2b8
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x7cf7a494
mov eax, 0x402
jmp 0x7cf7a496
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov dword [ebp + 0x20], 1
lea eax, [ebx + 0x2c]
push eax
call fcn.7cf72b87
test eax, eax
jne 0x7cf7a3cc
test byte [ebp + 0x18], 1
je 0x7cf7a2ed
mov eax, dword [ebx]
and eax, 0x10
je 0x7cf7a302
test byte [ebp + 0x18], 2
je 0x7cf7a3cc
mov eax, dword [ebx]
and eax, 0x10
je 0x7cf7a3cc
cmp dword [ebp + 0x24], 0
jne 0x7cf7a354
cmp dword [ebp + 0x2c], 0
je 0x7cf7a354
mov ecx, dword [ebp + 0x30]
test eax, eax
lea esi, [ebx + ecx*2 + 0x2c]
je 0x7cf7a330
push 0x16
push 0x7cf32c58
push esi
call fcn.7cf7a23d
test eax, eax
je 0x7cf7a3cc
jmp 0x7cf7a350
push 0x7cf32c28
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x7cf7a350
push 0x7cf32c38
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x7cf7a3cc
and dword [ebp + 0x20], 0
push dword [ebp + 0x2c]
push dword [edi]
push dword [ebp + 0x24]
push ebx
push dword [ebp + 8]
call fcn.7cf7a16e
test eax, eax
mov dword [edi], eax
je 0x7cf7a3f2
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
cmp edx, dword [eax]
jne 0x7cf7a37a
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
test byte [eax + 0xd], 0x20
jne 0x7cf7a3c5
mov esi, dword [ebp + 0x28]
test esi, esi
je 0x7cf7a3c5
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push eax
push dword [ebp + 8]
call fcn.7cf7a49d
mov ecx, 0x408
cmp eax, ecx
je 0x7cf7a3fc
mov eax, dword [esi]
test eax, eax
je 0x7cf7a3b8
mov ecx, dword [edi]
mov dword [ecx + 0x34], eax
mov eax, dword [esi]
mov dword [eax + 0x3c], 7
mov eax, dword [esi]
test eax, eax
je 0x7cf7a3c5
mov dword [ebp + 0x28], eax
mov eax, dword [eax]
jmp 0x7cf7a3ba
test byte [ebx], 0x10
jne 0x7cf7a3cc
mov edi, dword [edi]
xor esi, esi
cmp dword [ebp + 0x20], esi
je 0x7cf7a403
push dword [ebp + 0xc]
call fcn.7cf7b001
test eax, eax
jne 0x7cf7a403
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x7cf7a403
jmp 0x7cf7a2cf
mov eax, 0x408
jmp 0x7cf7a496
mov eax, ecx
jmp 0x7cf7a496
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
call fcn.7cf7b001
test eax, eax
jne 0x7cf7a494
mov eax, dword [edi]
test eax, eax
je 0x7cf7a494
cmp dword [ebp + 0x14], 0
je 0x7cf7a481
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add eax, 0x5c
push eax
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x7cf7a47a
push 0x7cf333a8
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x7cf7a46a
mov eax, dword [edi]
push 0
push dword [ebp + 0x2c]
push 0
push eax
add eax, 4
push ebx
push eax
push 3
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.7cf7a275
mov esi, eax
jmp 0x7cf7a46f
mov esi, 0x47c
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x7cf7a485
mov esi, 0x47c
jmp 0x7cf7a485
and dword [eax + 4], 0
test esi, esi
jne 0x7cf7a490
mov edi, dword [edi]
jmp 0x7cf7a40c
mov eax, esi
jmp 0x7cf7a496
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x2c