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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be16e
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [0x4e2210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x407d19
cmp dword [ebp + 0xc], 0
jne 0x407d20
xor eax, eax
jmp 0x407fc2
mov word [ebp - 0x4b4], 0
push 0x208
push 0
lea eax, [ebp - 0x4b2]
push eax
call fcn.0049d120
add esp, 0xc
push 0x104
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x4b4]
push edx
call fcn.0049f8f8
add esp, 0xc
test eax, eax
jne 0x407d62
xor eax, eax
jmp 0x407fc2
lea eax, [ebp - 0x4b4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004089f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
call fcn.0047db40
mov ecx, eax
call fcn.00401cb0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407db6
mov dword [ebp - 0x4f0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0042a190
mov eax, dword [ebp - 0x4f0]
jmp 0x407fc2
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x50]
call fcn.004089f0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x50]
call fcn.0048a5f0
push 0x4cd750
lea edi, [ebp - 0x50]
call fcn.0048a8a0
lea edx, [ebp - 0x2a4]
push edx
lea eax, [ebp - 0x50]
call fcn.0047db40
mov ecx, eax
call fcn.00401cb0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
lea ecx, [ebp - 0x34]
call fcn.00420ee0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00408070
test eax, eax
jne 0x407e50
mov dword [ebp - 0x4f4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00408090
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0042a190
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0042a190
mov eax, dword [ebp - 0x4f4]
jmp 0x407fc2
mov dword [ebp - 0x30], 1
cmp dword [ebp - 0x30], 0
je 0x407f8b
push 0x4cd754
lea eax, [ebp - 0x278]
push eax
call fcn.0049dabb
add esp, 8
test eax, eax
je 0x407e91
push 0x4cd758
lea ecx, [ebp - 0x278]
push ecx
call fcn.0049dabb
add esp, 8
test eax, eax
jne 0x407eac
lea edx, [ebp - 0x2a4]
push edx
lea ecx, [ebp - 0x34]
call fcn.004683f0
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x30], eax
jmp 0x407e57
mov eax, dword [ebp - 0x2a4]
and eax, 0x10
je 0x407f6d
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x4d0]
call fcn.00408a10
mov byte [ebp - 4], 3
lea esi, [ebp - 0x4d0]
call fcn.0048a5f0
lea edx, [ebp - 0x278]
push edx
lea edi, [ebp - 0x4d0]
call fcn.0048a8a0
lea eax, [ebp - 0x4d0]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00408040
cmp dword [ebp + 0x10], 0
je 0x407f5e
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x4ec]
call fcn.004089f0
mov byte [ebp - 4], 4
lea esi, [ebp - 0x4ec]
call fcn.0048a5f0
lea edx, [ebp - 0x278]
push edx
lea edi, [ebp - 0x4ec]
call fcn.0048a8a0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x4ec]
call fcn.0048a4e0
push eax
call fcn.00407ce0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4ec]
call fcn.0042a190
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4d0]
call fcn.0042a190
lea edx, [ebp - 0x2a4]
push edx
lea ecx, [ebp - 0x34]
call fcn.004683f0
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x30], eax
jmp 0x407e57
mov dword [ebp - 0x4f8], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00408090
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0042a190
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0042a190
mov eax, dword [ebp - 0x4f8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049d270
mov esp, ebp
pop ebp
ret