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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x103c
call fcn.0044c8e0
mov eax, dword [0x502204]
xor eax, esp
mov dword [esp + 0x1038], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [esp + 0x28], vtable.t_str.0
mov ebx, ecx
mov dword [esp + 0x38], esi
push 4
mov dword [esp + 0x40], ebx
call fcn.0046c3ce
add esp, 4
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], 0
mov dword [eax], 0
call fcn.004a60e0
push esi
lea ecx, [esp + 0x2c]
call fcn.004a5ed0
push 4
mov dword [esp + 0x1c], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
mov dword [eax], 0
call fcn.004a60e0
push ebx
lea ecx, [esp + 0x1c]
call fcn.004a5ed0
mov eax, dword [esp + 0x30]
mov bl, 1
add eax, 4
mov byte [esp + 0x14], 0
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad2fb
shr eax, 4
not al
and al, bl
je 0x4ad2fb
push ecx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
call fcn.004b6bb0
test al, al
jne 0x4ad2b9
lea ecx, [esp + 0x10]
call fcn.004a7c70
xor bl, bl
lea ecx, [esp + 0x10]
call fcn.004a7cc0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4ad2d3
push eax
call fcn.00459651
add esp, 4
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4ad2e4
push ecx
call fcn.00459651
add esp, 4
mov ecx, dword [esp + 0x1044]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x28]
call fcn.004b7370
test al, al
je 0x4ad2b7
lea ecx, [esp + 0x18]
call fcn.004b7370
test al, al
jne 0x4ad328
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004b71c0
test al, al
je 0x4ad2b7
push esi
lea eax, [esp + 0x44]
push 0x4e535c
push eax
call fcn.00404d60
add esp, 0xc
lea eax, [esp + 0x40]
push 0x51ea70
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4ad2b9
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax]
mov edx, 0x4e52bc
mov ecx, 0x51ea9c
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4ad396
test ax, ax
je 0x4ad392
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4ad396
add ecx, 4
add edx, 4
test ax, ax
jne 0x4ad370
xor eax, eax
jmp 0x4ad39b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4ad42b
mov eax, 0x4e536c
mov ecx, 0x51ea9c
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4ad3d6
test dx, dx
je 0x4ad3d2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4ad3d6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4ad3b0
xor eax, eax
jmp 0x4ad3db
sbb eax, eax
or eax, 1
test eax, eax
je 0x4ad42b
push 0x51ea9c
push dword [esp + 0x3c]
lea eax, [esp + 0x48]
push 0x4e5374
push eax
call fcn.00404d60
push 0x51ea9c
push dword [esp + 0x50]
lea eax, [esp + 0x858]
push 0x4e5380
push eax
call fcn.00404d60
add esp, 0x20
lea edx, [esp + 0x40]
lea ecx, [esp + 0x840]
call fcn.004ad1d0
neg al
sbb al, al
and bl, al
push 0x51ea70
push esi
call edi
test eax, eax
jne 0x4ad360
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4ad2b9