Function at 0x4ad0b341
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 0x4ad0b369
sub eax, edx
sar eax, 1
add eax, 2
cmp eax, dword [ebp + 0xc]
ja 0x4ad15b45
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad0b388
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 0x4ad15b4c
test al, 0x10
jne 0x4ad15b5e
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.4ad0139d
leave
ret 0xc
xor eax, eax
jmp 0x4ad0b3bc
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.4ad0ab8b
pop ecx
pop ecx
jmp 0x4ad15b45
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad15b63
sub eax, edx
sar eax, 1
lea eax, [esi + eax*2]
cmp word [eax - 2], 0x5c
jne 0x4ad15b89
push 0x2a
pop ecx
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x4ad15b9c
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 0x4ad15bd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 2
je 0x4ad0b3b9
jmp 0x4ad15d68
push edi
xor edi, edi
inc edi
mov esi, 0x104
mov ecx, 0x4ad02dc0
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ad15c0d
test dx, dx
je 0x4ad15c09
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ad15c0d
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ad15be7
xor eax, eax
jmp 0x4ad15c12
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4ad15d2e
mov ecx, 0x4ad02db8
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ad15c4b
test dx, dx
je 0x4ad15c47
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ad15c4b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ad15c25
xor eax, eax
jmp 0x4ad15c50
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4ad15d2e
lea eax, [ebp - 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad15c61
sub eax, edx
sar eax, 1
je 0x4ad15d2e
test byte [ebp - 0x45c], 0x10
jne 0x4ad15cf4
push dword [ebp - 0x46c]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.4ad017fb
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad15c9a
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.4ad01a89
lea eax, [ebp - 0x468]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.4ad0b341
test eax, eax
je 0x4ad15d4b
mov ecx, dword [ebp - 0x464]
mov eax, dword [ebp - 0x468]
add eax, ecx
mov ecx, dword [ebx]
cmp ecx, eax
jg 0x4ad15d11
jmp 0x4ad15d2c
lea eax, [ebp - 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad15cfd
mov ecx, dword [ebx]
sub eax, edx
sar eax, 1
cmp ecx, eax
jle 0x4ad15d15
mov eax, ecx
jmp 0x4ad15d2c
lea eax, [ebp - 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4ad15d1e
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 0x4ad15bdc
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 0x4ad15b45
cmp esi, 0x12
je 0x4ad0b3b9
push 0
push esi
call fcn.4ad0ab8b
pop ecx
xor eax, eax
pop ecx
jmp 0x4ad0b3bc