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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x4ad240ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov eax, esi
mov dword [ebp - 0x46c], esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad0bbcc
sub eax, edx
sar eax, 1
add eax, 2
cmp eax, dword [ebp + 0xc]
ja 0x4ad15b21
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad0bbeb
sub eax, edx
sar eax, 1
add eax, 0xfffffffe
push esi
mov dword [ebp - 0x464], eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad15b28
test al, 0x10
jne 0x4ad15b3a
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad013a9
leave
ret 0xc
xor eax, eax
jmp 0x4ad0bc1f
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.4ad06d44
pop ecx
pop ecx
jmp 0x4ad15b21
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad15b3f
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2]
cmp word [eax - 2], 0x5c
jne 0x4ad15b65
push 0x2a
pop ecx
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x4ad15b78
push 0x5c
pop ecx
mov word [eax], cx
push 0x2a
pop ecx
mov word [eax + 2], cx
xor ecx, ecx
mov word [eax + 4], cx
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x460], eax
cmp eax, 0xffffffff
jne 0x4ad15baf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 2
je 0x4ad0bc1c
jmp 0x4ad15d44
push edi
xor edi, edi
inc edi
mov esi, 0x104
mov ecx, 0x4ad02ec4
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ad15be9
test dx, dx
je 0x4ad15be5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ad15be9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ad15bc3
xor eax, eax
jmp 0x4ad15bee
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4ad15d0a
mov ecx, 0x4ad02ebc
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ad15c27
test dx, dx
je 0x4ad15c23
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ad15c27
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ad15c01
xor eax, eax
jmp 0x4ad15c2c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4ad15d0a
lea eax, [ebp - 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad15c3d
sub eax, edx
sar eax, 1
je 0x4ad15d0a
test byte [ebp - 0x45c], 0x10
jne 0x4ad15cd0
push dword [ebp - 0x46c]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.4ad0185a
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad15c76
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [ebp - 0x430]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.4ad020a9
lea eax, [ebp - 0x468]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.4ad0bba4
test eax, eax
je 0x4ad15d27
mov ecx, dword [ebp - 0x464]
mov eax, dword [ebp - 0x468]
add eax, ecx
mov ecx, dword [ebx]
cmp ecx, eax
jg 0x4ad15ced
jmp 0x4ad15d08
lea eax, [ebp - 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad15cd9
mov ecx, dword [ebx]
sub eax, edx
sar eax, 1
cmp ecx, eax
jle 0x4ad15cf1
mov eax, ecx
jmp 0x4ad15d08
lea eax, [ebp - 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad15cfa
sub eax, edx
sar eax, 1
mov dword [ebx], eax
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
jne 0x4ad15bb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x460]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
pop edi
jne 0x4ad15b21
cmp esi, 0x12
je 0x4ad0bc1c
push 0
push esi
call fcn.4ad06d44
pop ecx
xor eax, eax
pop ecx
jmp 0x4ad0bc1f