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

Disassembly:
push 0xffffffffffffffff
push 0x50e067
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
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 0x4dea20
test eax, eax
je 0x4dea20
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x2ce]
push ecx
mov word [esp + 0x2d0], ax
call fcn.004f0190
add esp, 0xc
push 0x104
lea edx, [esp + 0x2c8]
push esi
push edx
call fcn.004efa98
add esp, 0xc
test eax, eax
je 0x4dea20
lea eax, [esp + 0x2c4]
lea ecx, [esp + 0x3c]
call fcn.004134d0
mov dword [esp + 0x4e4], 0
mov eax, dword [esp + 0x40]
mov esi, 8
cmp dword [esp + 0x54], esi
jae 0x4de9a9
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4dea17
lea eax, [esp + 0x2c4]
lea ecx, [esp + 0x58]
call fcn.004134d0
lea edi, [esp + 0x58]
mov byte [esp + 0x4e4], 1
call fcn.004e3210
push 0x521f74
mov ebx, edi
call fcn.004e3310
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], esi
jae 0x4de9ef
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 0x4dea4a
lea esi, [esp + 0x58]
call fcn.00426800
lea esi, [esp + 0x3c]
call fcn.00426800
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.004ea10a
add esp, 0x4d4
ret
mov ecx, 0x521f78
lea eax, [esp + 0xa0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4dea7c
test dx, dx
je 0x4dea78
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4dea7c
add eax, 4
add ecx, 4
test dx, dx
jne 0x4dea56
xor eax, eax
jmp 0x4dea81
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4deb7d
mov ecx, 0x521f7c
lea eax, [esp + 0xa0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4deabb
test dx, dx
je 0x4deab7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4deabb
add eax, 4
add ecx, 4
test dx, dx
jne 0x4dea95
xor eax, eax
jmp 0x4deac0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4deb7d
test byte [esp + 0x74], 0x10
je 0x4deb2e
mov esi, dword [esp + 0x4f4]
test esi, esi
je 0x4deb76
lea eax, [esp + 0x2c4]
lea ecx, [esp + 0x20]
call fcn.004134d0
lea edi, [esp + 0x20]
mov byte [esp + 0x4e4], 3
call fcn.004e3210
lea edx, [esp + 0xa0]
push edx
mov ebx, edi
call fcn.004e3310
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x4deb1d
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x18]
push esi
push ecx
push eax
call fcn.004de8e0
add esp, 0xc
jmp 0x4deb65
lea edx, [esp + 0x3c]
push edx
lea esi, [esp + 0x24]
call fcn.0040e3e0
mov edi, esi
mov byte [esp + 0x4e4], 4
call fcn.004e3210
lea eax, [esp + 0xa0]
push eax
mov ebx, esi
call fcn.004e3310
mov ebx, dword [esp + 0x18]
mov eax, esi
call fcn.004dee20
lea esi, [esp + 0x20]
mov byte [esp + 0x4e4], 2
call fcn.00426800
lea ecx, [esp + 0x74]
push ecx
jmp 0x4deb82
lea edx, [esp + 0x74]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4dea4a
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea esi, [esp + 0x58]
call fcn.00426800
lea esi, [esp + 0x3c]
call fcn.00426800
mov eax, 1
jmp 0x4dea22