Function at 0x4ad0ccaf
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 [0x4ad2406c]
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 0x4ad0ccd7
sub eax, edx
sar eax, 1
add eax, 2
cmp eax, dword [ebp + 0xc]
ja 0x4ad15422
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad0ccf6
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 0x4ad15429
test al, 0x10
jne 0x4ad1543b
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad013fa
leave
ret 0xc
xor eax, eax
jmp 0x4ad0cd2a
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.4ad080e2
pop ecx
pop ecx
jmp 0x4ad15422
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad15440
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2]
cmp word [eax - 2], 0x5c
jne 0x4ad15463
and word [eax + 2], cx
mov word [eax], 0x2a
jmp 0x4ad15473
and word [eax + 4], 0
mov word [eax], 0x5c
mov word [eax + 2], 0x2a
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x460], eax
jne 0x4ad154aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 2
je 0x4ad0cd27
jmp 0x4ad1563d
push edi
xor edi, edi
inc edi
mov esi, 0x104
mov ecx, 0x4ad01c20
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ad154e4
test dx, dx
je 0x4ad154e0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ad154e4
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ad154be
xor eax, eax
jmp 0x4ad154e9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4ad15603
mov ecx, 0x4ad01c18
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ad15522
test dx, dx
je 0x4ad1551e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ad15522
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ad154fc
xor eax, eax
jmp 0x4ad15527
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4ad15603
lea eax, [ebp - 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad15538
sub eax, edx
sar eax, 1
je 0x4ad15603
test byte [ebp - 0x45c], 0x10
jne 0x4ad155c9
push dword [ebp - 0x46c]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.4ad01416
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad15571
sub eax, edx
sar eax, 1
and word [ebp + eax*2 - 0x20e], cx
lea eax, [ebp - 0x430]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.4ad014d2
lea eax, [ebp - 0x468]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.4ad0ccaf
test eax, eax
je 0x4ad15620
mov ecx, dword [ebp - 0x464]
mov eax, dword [ebp - 0x468]
add eax, ecx
mov ecx, dword [ebx]
cmp ecx, eax
jg 0x4ad155e6
jmp 0x4ad15601
lea eax, [ebp - 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad155d2
mov ecx, dword [ebx]
sub eax, edx
sar eax, 1
cmp ecx, eax
jle 0x4ad155ea
mov eax, ecx
jmp 0x4ad15601
lea eax, [ebp - 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad155f3
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 0x4ad154b3
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 0x4ad15422
cmp esi, 0x12
je 0x4ad0cd27
push 0
push esi
call fcn.4ad080e2
pop ecx
xor eax, eax
pop ecx
jmp 0x4ad0cd2a