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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x370
mov rax, qword [0x14029fd68]
xor rax, rsp
mov qword [rsp + 0x360], rax
xor ebp, ebp
lea rbx, [0x14028ae1c]
cmp dword [0x14028ae18], ebp
mov r15, rdx
mov r14, rcx
lea rsi, [rbp - 1]
jle 0x1400ae425
nop dword [rax]
nop dword [rax + rax]
movzx edi, byte [rbx]
mov rax, rsi
inc rbx
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x1400ae350
mov r8, qword [0x1402aa850]
cmp rax, r8
jne 0x1400ae3ce
mov rdx, qword [0x1402aa848]
mov rcx, rbx
call fcn.14004fe28
test eax, eax
jne 0x1400ae3ce
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x1400ae380
inc rbx
add rbx, rax
cmp dil, 2
je 0x1400ae551
mov rcx, qword [0x1402aa878]
mov r9, rbx
movzx r8d, dil
mov rdx, r15
call fcn.1400c6ad0
test eax, eax
jne 0x1400ae551
mov rax, rsi
nop word [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x1400ae3c0
add rax, rbx
jmp 0x1400ae3f2
mov rax, rsi
cmp byte [rbx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400ae3d1
lea rcx, [rax + 1]
mov rax, rsi
add rcx, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x1400ae3e6
add rax, rcx
cmp byte [rax + 1], 6
lea rbx, [rax + 2]
jne 0x1400ae40f
mov rcx, rbx
call fcn.1400c2da0
add eax, dword [0x1402c0320]
movsxd rcx, eax
jmp 0x1400ae414
mov ecx, 8
inc ebp
add rbx, rcx
cmp ebp, dword [0x14028ae18]
jl 0x1400ae340
cmp byte [r15], 0
jne 0x1400ae700
cmp qword [0x1402aa880], 0
jne 0x1400ae67c
xor ecx, ecx
lea rdx, [0x140208d90]
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
mov byte [rsp + rcx + 0x160], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400ae450
lea rax, [rsp + 0x160]
dec rax
nop
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x1400ae470
movups xmm0, xmmword [str.Residents.res]
mov rbx, rsi
movups xmmword [rax], xmm0
lea rax, [rsp + 0x160]
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400ae490
lea rax, [rsp + 0x160]
sub rax, 5
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x160]
add rbx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, rsi
je 0x1400ae67c
nop word [rax + rax]
test byte [rsp + 0x20], 0x10
jne 0x1400ae65d
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x1400ae630
movsd xmm0, qword [str.Unicode_]
lea rcx, [rbx - 1]
movsd qword [rbx], xmm0
movzx eax, byte [0x14022cef0]
mov byte [rbx + 8], al
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400ae502
lea r8, [rsp + 0x4c]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400ae520
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400ae610
mov edx, 1
jmp 0x1400ae650
inc rsi
cmp byte [rbx + rsi], 0
jne 0x1400ae551
add rbx, rsi
movsx ecx, byte [rbx + 1]
sub ecx, 3
je 0x1400ae5f7
sub ecx, 2
je 0x1400ae5de
cmp ecx, 1
jne 0x1400ae813
lea rcx, [rbx + 2]
mov dword [r14], 0x25
call fcn.1400c2da0
add eax, dword [0x1402c0320]
xor edx, edx
mov rcx, qword [0x1402a74e8]
movsxd r8, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [r14 + 8], rax
test rax, rax
je 0x1400ae5bf
lea rdx, [rbx + 2]
mov rcx, rax
call fcn.1400c2d30
mov byte [r14 + 0x1a], 0
jmp 0x1400ae813
lea rdx, str.NoMemory
lea rcx, str.Parser
call fcn.1400b9c30
mov qword [0x1402aa698], rax
jmp 0x1400ae809
mov dword [r14], 0x24
mov rax, qword [rbx + 2]
mov qword [r14 + 8], rax
mov byte [r14 + 0x1a], 0
jmp 0x1400ae813
mov dword [r14], 0x23
mov rax, qword [rbx + 2]
mov qword [r14 + 8], rax
mov byte [r14 + 0x1a], 0
jmp 0x1400ae813
lea rax, [rsp + 0x4c]
mov rdx, rbx
sub rdx, rax
lea rcx, [rsp + 0x4c]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400ae620
jmp 0x1400ae64e
lea rax, [rsp + 0x4c]
mov rdx, rbx
sub rdx, rax
lea rcx, [rsp + 0x4c]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400ae640
xor edx, edx
lea rcx, [rsp + 0x160]
call fcn.1400ac820
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400ae4d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, qword [0x1402aa880]
test rdi, rdi
je 0x1400ae700
nop dword [rax + rax]
mov rbx, qword [rdi + 8]
movsxd rax, dword [rdi + 0x10]
add rax, rbx
cmp rbx, rax
jae 0x1400ae6f8
mov rax, rsi
inc rax
cmp byte [rbx + rax], 0
jne 0x1400ae6a3
mov r8, qword [0x1402aa850]
cmp rax, r8
jne 0x1400ae6cf
mov rdx, qword [0x1402aa848]
mov rcx, rbx
call fcn.14004fe28
test eax, eax
je 0x1400ae840
mov rax, rsi
inc rax
cmp byte [rbx + rax], 0
jne 0x1400ae6d2
mov edx, dword [rdi + 0x14]
lea rcx, [rbx + 1]
add rcx, rax
call qword [rdi + 0x20]
movsxd rcx, dword [rdi + 0x10]
mov rbx, rax
add rcx, qword [rdi + 8]
cmp rax, rcx
jb 0x1400ae6a0
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1400ae690
cmp dword [0x1402aa690], 0
jne 0x1400ae813
lea rdx, str.ConstantNotFound
lea rcx, str.Parser
call fcn.1400b9c30
lea rbx, [0x1402aa6a0]
mov rdx, rbx
sub rdx, rax
nop dword [rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x1400ae730
lea rcx, [rbx - 1]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400ae742
movzx eax, word [0x14022ced0]
mov word [rcx], ax
movzx eax, byte [0x14022ced2]
mov byte [rcx + 2], al
cmp byte [r15], 0
je 0x1400ae7b2
lea rcx, [rbx - 1]
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400ae770
xor edx, edx
nop dword [rax]
movzx eax, byte [r15 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400ae780
lea rcx, [rbx - 1]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400ae794
movzx eax, word [0x140210200]
mov word [rcx], ax
movzx eax, byte [0x140210202]
mov byte [rcx + 2], al
lea rcx, [rbx - 1]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400ae7b6
movzx eax, word [0x140226118]
mov r8, qword [0x1402aa850]
mov rdx, qword [0x1402aa848]
mov word [rcx], ax
mov rcx, rbx
call fcn.1401bc630
lea rcx, [rbx - 1]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400ae7e4
movzx eax, word [0x14022ced4]
mov word [rcx], ax
movzx eax, byte [0x14022ced6]
mov byte [rcx + 2], al
mov qword [0x1402aa698], rbx
mov dword [0x1402aa690], 1
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.14017f910
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x370
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
inc rsi
cmp byte [rbx + rsi], 0
jne 0x1400ae840
mov r8d, dword [rdi + 0x14]
lea rcx, [rbx + 1]
add rcx, rsi
mov rdx, r14
call qword [rdi + SafeArrayPutElement]
mov byte [r14 + 0x1a], 0
jmp 0x1400ae813