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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
push ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x260]
push eax
push edi
mov edi, eax
xor eax, eax
mov ecx, 0x94
rep stosd dword es:[edi], eax
pop edi
pop eax
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], 0xc
mov dword [ebp - 0x2d8], 0
lea eax, [ebp - 0x2d4]
push eax
push edi
mov edi, eax
xor eax, eax
mov ecx, 0x18
rep stosd dword es:[edi], eax
pop edi
pop eax
mov dword [ebp - 0x2ec], 0
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00407c80
mov dword [ebp - 0x2f0], eax
push dword [ebp - 0x2f0]
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
sete bl
shr ebx, 1
sbb ebx, ebx
mov dword [ebp - 0x2f4], ebx
push dword [ebp - 0x2f0]
call fcn.00407ce0
cmp dword [ebp - 0x2f4], 0
je 0x404e03
lea ebx, [ebp - 0x2e8]
push ebx
call fcn.0040a600
lea ebx, [ebp - 0x270]
push ebx
call fcn.004093e0
lea ebx, [ebp - 0x10]
push ebx
call fcn.004093e0
jmp 0x40532c
cmp dword [ebp + 0x18], 0
jne 0x404e31
mov dword [0x416020], 0
mov dword [0x416024], 0
mov dword [0x416028], 0
mov dword [0x41602c], 0
push 2
push 0x412018
push 0xffffffffffffffff
push 1
push dword [ebp + 8]
call fcn.0040a500
push eax
call fcn.00407a10
test eax, eax
je 0x404e96
push 0
push 0xffffffffffffffff
push 2
push 0x412018
push 0xffffffffffffffff
push dword [ebp + 8]
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0
lea eax, [ebp - 0x31c]
push eax
call fcn.00409280
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.004082d0
jmp 0x404ea8
push 0
push 0xffffffffffffffff
push dword [ebp + 8]
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.004082d0
lea eax, [ebp - 0x260]
push eax
mov dword [ebp - 0x30c], 0
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x304], 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x300], 0
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2f8], 0
lea eax, [ebp - 0x300]
push eax
call fcn.00409280
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x30c]
push eax
call fcn.004082d0
push dword [ebp - 0x30c]
call fcn.00407c80
mov dword [ebp - 0x310], eax
push dword [ebp - 0x310]
call sub.KERNEL32.dll_FindFirstFileW
mov dword [ebp - 0x264], eax
push dword [ebp - 0x310]
call fcn.00407ce0
lea eax, [ebp - 0x30c]
push eax
call fcn.004093e0
cmp dword [ebp - 0x264], 0xffffffff
je 0x405154
push 0
lea eax, [ebp - 0x234]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x270]
push eax
call fcn.00408730
mov eax, dword [ebp - 0x260]
and eax, 0x10
je 0x4050a2
push 2
push 0x412044
push 0xffffffffffffffff
lea eax, [ebp - 0x270]
push eax
call fcn.00407a10
test eax, eax
setne al
shr eax, 1
sbb eax, eax
push 3
push 0x412048
push 0xffffffffffffffff
lea ebx, [ebp - 0x270]
push ebx
mov ebx, eax
call fcn.00407a10
test eax, eax
setne al
shr eax, 1
sbb eax, eax
and ebx, eax
je 0x40509d
push dword [ebp - 0x2ec]
push 0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xc
lea eax, [ebp - 0x2e8]
push eax
call fcn.0040a3b0
add esp, 0x1c
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x270]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x2ec]
imul eax, eax, 0xc
add eax, dword [ebp - 0x2e8]
lea ebx, [eax]
push ebx
call fcn.004082d0
inc dword [ebp - 0x2ec]
mov eax, dword [0x416020]
cmp dword [0x416024], eax
jne 0x405042
add dword [0x416024], 0x3e8
push dword [0x416024]
push 0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xc
push dword [ebp + 0x14]
call fcn.0040a3b0
add esp, 0x1c
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x270]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0
lea eax, [ebp - 0x31c]
push eax
call fcn.00409280
push eax
push 0xffffffffffffffff
mov eax, dword [0x416020]
imul eax, eax, 0xc
mov ebx, dword [ebp + 0x14]
add eax, dword [ebx]
lea ebx, [eax]
push ebx
call fcn.004082d0
inc dword [0x416020]
jmp 0x40512f
mov eax, dword [0x416028]
cmp dword [0x41602c], eax
jne 0x4050d4
add dword [0x41602c], 0x3e8
push dword [0x41602c]
push 0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xc
push dword [ebp + 0x10]
call fcn.0040a3b0
add esp, 0x1c
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x270]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0
lea eax, [ebp - 0x31c]
push eax
call fcn.00409280
push eax
push 0xffffffffffffffff
mov eax, dword [0x416028]
imul eax, eax, 0xc
mov ebx, dword [ebp + 0x10]
add eax, dword [ebx]
lea ebx, [eax]
push ebx
call fcn.004082d0
inc dword [0x416028]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
jne 0x404f5b
push dword [ebp - 0x264]
call sub.KERNEL32.dll_FindClose
mov dword [ebp - 0x274], 0
mov eax, dword [ebp - 0x2ec]
dec eax
mov dword [ebp - 0x314], eax
jmp 0x405285
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov dword [ebp - 0x344], 0
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x33c], 0
push 0
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0xffffffffffffffff
lea eax, [ebp - 0x344]
push eax
call fcn.004082d0
lea eax, [ebp - 0x344]
push eax
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x330], 0
push 0
push 0xffffffffffffffff
push 2
push 0x412018
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x274]
imul eax, eax, 0xc
add eax, dword [ebp - 0x2e8]
lea ebx, [eax]
push ebx
push 0xffffffffffffffff
lea ebx, [ebp - 0x10]
push ebx
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 0
lea ebx, [ebp - 0x320]
push ebx
call fcn.00409280
push eax
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x324], 0
lea eax, [ebp - 0x32c]
push eax
call fcn.00409280
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x338]
push eax
call fcn.004082d0
lea eax, [ebp - 0x338]
push eax
call fcn.00404ce0
lea eax, [ebp - 0x344]
push eax
call fcn.004093e0
lea eax, [ebp - 0x338]
push eax
call fcn.004093e0
inc dword [ebp - 0x274]
mov eax, dword [ebp - 0x314]
cmp dword [ebp - 0x274], eax
jle 0x405170
mov eax, dword [ebp + 0x18]
test eax, eax
sete al
shr eax, 1
sbb eax, eax
mov ebx, dword [0x416028]
test ebx, ebx
setg bl
shr ebx, 1
sbb ebx, ebx
and eax, ebx
je 0x40530b
mov ebx, dword [0x416028]
mov dword [ebp - 4], ebx
cmp dword [0x416028], 0
jle 0x4052e5
mov ebx, dword [0x416028]
dec ebx
push ebx
push 0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xc
push dword [ebp + 0x10]
call fcn.0040a3b0
add esp, 0x1c
cmp dword [0x416020], 0
jle 0x40530b
mov ebx, dword [0x416020]
dec ebx
push ebx
push 0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xc
push dword [ebp + 0x14]
call fcn.0040a3b0
add esp, 0x1c
lea ebx, [ebp - 0x2e8]
push ebx
call fcn.0040a600
lea ebx, [ebp - 0x270]
push ebx
call fcn.004093e0
lea ebx, [ebp - 0x10]
push ebx
call fcn.004093e0
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 0x14