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

Disassembly:
push 0xffffffffffffffff
push 0x50e167
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x4dc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4ec]
mov eax, dword [esp + 0x4f0]
mov dword [esp + 0x18], eax
test esi, esi
je 0x4df170
test eax, eax
je 0x4df170
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x2ce]
push ecx
mov word [esp + 0x2d0], ax
call fcn.004f08c0
add esp, 0xc
push 0x104
lea edx, [esp + 0x2c8]
push esi
push edx
call fcn.004f01c8
add esp, 0xc
test eax, eax
je 0x4df170
lea eax, [esp + 0x2c4]
lea ecx, [esp + 0x3c]
call fcn.00408b00
mov dword [esp + 0x4e4], 0
mov eax, dword [esp + 0x40]
mov esi, 8
cmp dword [esp + 0x54], esi
jae 0x4df0f9
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4df167
lea eax, [esp + 0x2c4]
lea ecx, [esp + 0x58]
call fcn.00408b00
lea edi, [esp + 0x58]
mov byte [esp + 0x4e4], 1
call fcn.004e3920
push 0x52324c
mov ebx, edi
call fcn.004e3a20
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], esi
jae 0x4df13f
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x74]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x4e4], 2
cmp ebp, 0xffffffff
jne 0x4df19a
lea esi, [esp + 0x58]
call fcn.0040efa0
lea esi, [esp + 0x3c]
call fcn.0040efa0
xor eax, eax
mov ecx, dword [esp + 0x4dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.004ea83a
add esp, 0x4d4
ret
mov ecx, 0x523250
lea eax, [esp + 0xa0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4df1cc
test dx, dx
je 0x4df1c8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4df1cc
add eax, 4
add ecx, 4
test dx, dx
jne 0x4df1a6
xor eax, eax
jmp 0x4df1d1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4df2cd
mov ecx, 0x523254
lea eax, [esp + 0xa0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4df20b
test dx, dx
je 0x4df207
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4df20b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4df1e5
xor eax, eax
jmp 0x4df210
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4df2cd
test byte [esp + 0x74], 0x10
je 0x4df27e
mov esi, dword [esp + 0x4f4]
test esi, esi
je 0x4df2c6
lea eax, [esp + 0x2c4]
lea ecx, [esp + 0x20]
call fcn.00408b00
lea edi, [esp + 0x20]
mov byte [esp + 0x4e4], 3
call fcn.004e3920
lea edx, [esp + 0xa0]
push edx
mov ebx, edi
call fcn.004e3a20
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x4df26d
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x18]
push esi
push ecx
push eax
call fcn.004df030
add esp, 0xc
jmp 0x4df2b5
lea edx, [esp + 0x3c]
push edx
lea esi, [esp + 0x24]
call fcn.004270c0
mov edi, esi
mov byte [esp + 0x4e4], 4
call fcn.004e3920
lea eax, [esp + 0xa0]
push eax
mov ebx, esi
call fcn.004e3a20
mov ebx, dword [esp + 0x18]
mov eax, esi
call fcn.004df570
lea esi, [esp + 0x20]
mov byte [esp + 0x4e4], 2
call fcn.0040efa0
lea ecx, [esp + 0x74]
push ecx
jmp 0x4df2d2
lea edx, [esp + 0x74]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4df19a
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea esi, [esp + 0x58]
call fcn.0040efa0
lea esi, [esp + 0x3c]
call fcn.0040efa0
mov eax, 1
jmp 0x4df172