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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x4b0
mov rax, qword [0x4ad2e1c8]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rbx, rcx
xor eax, eax
or rbp, 0xffffffffffffffff
lea esi, [rax + 1]
mov rcx, rbp
mov rdi, rbx
repne scasw ax, word [rdi]
mov qword [rsp + 0x30], rdx
not rcx
sub rcx, rsi
lea eax, [rcx - 2]
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov dword [rdx], eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ad18861
test al, 0x10
jne 0x4ad18877
mov eax, esi
jmp 0x4ad10ef5
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.4ad01000
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4b0
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor edx, edx
call fcn.4ad0b8b0
xor eax, eax
jmp 0x4ad10ef5
xor eax, eax
mov rcx, rbp
mov rdi, rbx
repne scasw ax, word [rdi]
mov eax, 0x5c
xor ebp, ebp
not rcx
sub rcx, rsi
cmp word [rbx + rcx*2 - 2], ax
jne 0x4ad188a4
lea eax, [rbp + 0x2a]
mov word [rbx + rcx*2 + 2], bp
mov word [rbx + rcx*2], ax
jmp 0x4ad188b7
mov word [rbx + rcx*2], ax
mov eax, 0x2a
mov word [rbx + rcx*2 + 4], bp
mov word [rbx + rcx*2 + 2], ax
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x4ad188fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
or rcx, 0xffffffffffffffff
mov edi, eax
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 2
je 0x4ad10ef1
cmp edi, 0x12
je 0x4ad10ef1
mov ecx, edi
jmp 0x4ad18869
mov dword [rsp + 0x20], esi
lea rsi, [rsp + 0x6c]
lea rdi, [0x4ad29788]
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x4ad18a31
lea rsi, [rsp + 0x6c]
lea rdi, [0x4ad2978c]
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x4ad18a31
or rsi, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x6c]
mov rcx, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
je 0x4ad18a31
test byte [rsp + 0x40], 0x10
jne 0x4ad18a25
lea rax, [rsp + 0x290]
mov rdi, rbx
mov edx, 0x104
sub rdi, rax
lea rcx, [rsp + 0x290]
lea rax, [rdx + 0x7ffffefa]
cmp rax, rbp
je 0x4ad18999
movzx eax, word [rdi + rcx]
cmp ax, bp
je 0x4ad18999
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x4ad18977
cmp rdx, rbp
jne 0x4ad189a2
sub rcx, 2
mov word [rcx], bp
xor eax, eax
lea rdi, [rsp + 0x290]
mov rcx, rsi
lea r8, [rsp + 0x6c]
mov edx, 0x104
repne scasw ax, word [rdi]
not rcx
mov word [rsp + rcx*2 + 0x28c], bp
lea rcx, [rsp + 0x290]
call fcn.4ad01ac0
xor eax, eax
lea rdi, [rsp + 0x290]
mov rcx, rsi
repne scasw ax, word [rdi]
not rcx
inc rcx
cmp rcx, 0x104
ja 0x4ad18a4d
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x290]
call fcn.4ad10e8c
cmp eax, ebp
je 0x4ad18a4d
mov rdi, qword [rsp + 0x30]
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
add ecx, eax
cmp dword [rdi], ecx
cmovg ecx, dword [rdi]
mov dword [rdi], ecx
jmp 0x4ad18a31
mov rax, qword [rsp + 0x30]
cmp dword [rax], ecx
cmovg ecx, dword [rax]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [rsp + 0x20], eax
cmp eax, ebp
jne 0x4ad188ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x28]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
cmp eax, ebp
jne 0x4ad18870
cmp edi, 0x12
jne 0x4ad188f4
lea eax, [rdi - 0x11]
jmp 0x4ad10ef5