Function at 0x14008b710
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov r10, r8
mov rcx, rdx
xor r8d, r8d
mov rdx, r10
jmp 0x1400a7710
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2d8
mov rax, qword [0x140153558]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rdi, qword [rsp + 0x340]
xor al, al
movsxd r14, dword [rsp + 0x348]
mov rbx, rcx
mov byte [rsp + 0x40], al
xor eax, eax
mov qword [rsp + 0x68], r9
mov r13d, eax
mov qword [rsp + 0x48], r8
mov r15d, eax
mov qword [rsp + 0x50], rdx
mov ebp, eax
test rdi, rdi
je 0x1400a7774
test r14d, r14d
jle 0x1400a7774
mov byte [rdi], al
mov rsi, 0xffffffffffffffff
nop dword [rax + rax]
inc rsi
cmp byte [rcx + rsi], al
jne 0x1400a7780
movsxd rcx, esi
add rcx, 0xa
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x60], rax
mov r12, rax
test rax, rax
jne 0x1400a77d4
test rdi, rdi
je 0x1400a77ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rdx, r14
lea r8, [0x1401012a0]
mov r9, rax
mov rcx, rdi
call fcn.14005ba90
mov eax, 0xffffffff
jmp 0x1400a7b69
mov rcx, r12
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400a77e0
movzx eax, byte [r12]
mov rbx, r12
test al, al
je 0x1400a7812
nop word [rax + rax]
cmp al, 0x2f
jne 0x1400a7807
mov byte [rbx], 0x5c
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x1400a7800
test esi, esi
jne 0x1400a7820
mov dword [r12], 0x2a5c2e
jmp 0x1400a789c
cmp esi, 2
jne 0x1400a7847
cmp byte [r12 + 1], 0x3a
jne 0x1400a7865
movsx ecx, byte [r12]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalpha]
test eax, eax
je 0x1400a7865
mov byte [rbx], 0x5c
inc rbx
mov byte [rbx], bpl
jmp 0x1400a7865
cmp esi, 1
jne 0x1400a7861
cmp byte [rbx - 1], 0x2e
jne 0x1400a7865
mov dword [r12], 0x2a5c2e
mov byte [rsp + 0x40], sil
jmp 0x1400a7865
test esi, esi
jle 0x1400a787f
cmp byte [rbx - 1], 0x5c
jne 0x1400a7878
mov byte [rbx], 0x2a
mov al, 1
inc rbx
mov byte [rbx], bpl
jmp 0x1400a7881
movzx eax, byte [rsp + 0x40]
jmp 0x1400a7881
xor al, al
cmp esi, 1
jle 0x1400a7898
cmp byte [rbx - 1], 0x2e
jne 0x1400a7898
cmp byte [rbx - 2], 0x5c
jne 0x1400a7898
mov byte [rbx - 1], 0x2a
jmp 0x1400a78c2
test al, al
jne 0x1400a78c2
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400a78c2
test al, 0x10
je 0x1400a78c2
movzx eax, word [0x14011f87c]
mov word [rbx], ax
movzx eax, byte [0x14011f87e]
mov byte [rbx + 2], al
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp byte [r12 + rdx], bpl
jne 0x1400a78d0
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call fcn.140042830
lea ebx, [rax + 1]
mov ecx, ebx
add rcx, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov rdx, 0xffffffffffffffff
nop
inc rdx
cmp byte [r12 + rdx], bpl
jne 0x1400a7900
mov r9d, ebx
mov r8, rsi
mov rcx, r12
call fcn.140042830
xor ecx, ecx
mov eax, eax
lea rdx, [rsp + 0x70]
mov word [rsi + rax*2], cx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rsi
mov qword [rsp + 0x58], rax
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp rbx, 0xffffffffffffffff
jne 0x1400a7a21
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1400a7a12
mov r13d, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov ebx, eax
mov qword [rsp + 0x48], rcx
test rdi, rdi
je 0x1400a7a12
test r14d, r14d
jle 0x1400a7a12
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], ecx
mov r9d, 0x400
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
mov r8d, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rcx, rdi
test eax, eax
jne 0x1400a79d5
mov rdx, r14
lea r8, str.Error__lu
mov r9d, ebx
call fcn.14005ba90
mov rcx, qword [rsp + 0x50]
xor eax, eax
mov qword [rcx], rax
jmp 0x1400a7b66
mov r8, qword [rsp + 0x48]
mov r9d, eax
mov edx, r14d
call fcn.140042740
movzx eax, byte [rdi]
mov rcx, rdi
test al, al
je 0x1400a7a04
nop
cmp al, 0xd
je 0x1400a79f9
mov byte [rcx], al
inc rcx
movzx eax, byte [rdi + 1]
inc rdi
test al, al
jne 0x1400a79f0
mov byte [rcx], bpl
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
xor eax, eax
mov qword [rcx], rax
jmp 0x1400a7b66
mov r12, qword [rsp + 0x48]
xor eax, eax
mov r14d, eax
nop dword [rax + rax]
lea rax, [rsp + 0x9c]
mov rdi, 0xffffffffffffffff
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400a7a40
lea ebx, [rdi + rdi*4]
movsxd rcx, ebx
add rcx, 2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea edx, [rbx + 1]
mov r9d, edi
mov rcx, rax
lea r8, [rsp + 0x9c]
mov rsi, rax
call fcn.140042740
movsxd rcx, eax
mov byte [rcx + rsi], 0
test byte [rsp + 0x70], 0x10
je 0x1400a7a99
lea rcx, [rsi - 1]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400a7a85
movzx eax, word [0x140112ebc]
mov word [rcx], ax
test r12, r12
je 0x1400a7ab3
mov rcx, rsi
call r12
test eax, eax
jne 0x1400a7ab3
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400a7b0a
cmp r13d, r15d
jne 0x1400a7af9
lea eax, [r15 + 0x21]
mov ecx, 8
movsxd rdx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test r15d, r15d
je 0x1400a7ae4
movsxd r8, r15d
mov rdx, rbp
shl r8, 3
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
test rbp, rbp
je 0x1400a7af2
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbp, rbx
add r15d, 0x20
mov qword [r14 + rbp], rsi
inc r13d
add r14, 8
xor eax, eax
mov qword [r14 + rbp], rax
mov rbx, qword [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400a7a30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400a7b5e
movsxd rdx, r13d
mov r9, rax
mov r8d, 8
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rbp
mov eax, r13d
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1400fbfe0
add rsp, 0x2d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret