Function at 0x1400021e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x850
mov rax, qword [0x14007bb58]
xor rax, rsp
mov qword [rsp + 0x840], rax
movzx eax, byte [rcx]
xor r15d, r15d
cmp al, byte [0x140056c70]
mov r12d, r8d
mov dword [rsp + 0x30], edx
mov rdi, rcx
mov ebx, 1
mov r14d, r15d
mov r13d, r15d
mov ebp, r15d
jne 0x140002289
movzx eax, byte [rcx + 1]
cmp al, byte [0x140056c71]
jne 0x140002289
cmp dword [0x14007b008], ebp
jl 0x140002252
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_setbuf]
cmp dword [0x14007b0ec], ebx
jg 0x140002261
jne 0x140002268
test r12d, r12d
jne 0x140002268
mov r15, qword [section..data]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [section..data]
mov r9, r15
mov rcx, rax
xor edx, edx
call fcn.1400048c0
jmp 0x1400026de
mov edx, 0x2f
mov qword [rsp + 0x8a0], rsi
call sub.VCRUNTIME140.dll_strrchr
mov rsi, rax
test rax, rax
jne 0x1400022a8
mov rsi, rdi
jmp 0x1400022ab
inc rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140002411
test al, 0x10
je 0x140002411
cmp dword [0x14007b0e8], ebx
je 0x140002511
mov r8, qword [0x14007bc70]
mov rcx, rsi
mov rdx, qword [0x14007bc60]
call fcn.1400065f0
test eax, eax
je 0x140002511
cmp dword [0x14007b0e8], 2
jne 0x140002411
mov rcx, rdi
call fcn.140004720
mov r14, rax
test rax, rax
jne 0x14000233f
cmp dword [0x14007bd34], ebp
jne 0x1400026d1
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]
lea ecx, [r14 + 2]
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.pcre2grep:_Failed_to_open_directory__s:__s_n
jmp 0x1400026c3
mov rcx, r14
call fcn.140006430
mov rdx, rax
test rax, rax
je 0x1400023f8
mov ebp, dword [rsp + 0x30]
mov rsi, 0xffffffffffffffff
nop
mov rax, rsi
inc rax
cmp byte [rdi + rax], r13b
jne 0x140002363
mov rcx, rsi
nop
inc rcx
cmp byte [rdx + rcx], r13b
jne 0x140002370
add eax, 2
add eax, ecx
cmp eax, 0x800
jg 0x1400023d9
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x40]
lea rdx, str._s_c_s
mov r9d, 0x2f
mov r8, rdi
call fcn.140006510
xor r8d, r8d
lea rcx, [rsp + 0x40]
mov edx, ebp
call fcn.1400021e0
cmp eax, 1
jle 0x1400023bc
mov ebx, eax
jmp 0x1400023c7
test eax, eax
jne 0x1400023c7
cmp ebx, 1
cmove ebx, r15d
mov rcx, r14
call fcn.140006430
mov rdx, rax
test rax, rax
jne 0x140002360
jmp 0x1400023f8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.pcre2grep:_recursive_filename_is_too_long_n
call fcn.140002190
mov ebx, 2
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
jmp 0x1400026d6
lea rdx, [0x140056370]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
mov rcx, rdi
test rax, rax
je 0x1400024e0
call fcn.140004720
mov rsi, rax
test rax, rax
je 0x1400026d6
movzx eax, byte [rdi]
mov rdx, rdi
mov rcx, rdi
test al, al
je 0x140002467
nop dword [rax + rax]
cmp al, 0x2f
je 0x140002458
cmp al, 0x5c
jne 0x14000245c
lea rdx, [rcx + 1]
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140002450
mov rcx, rsi
mov byte [rdx], bpl
call fcn.140006430
test rax, rax
je 0x1400024c7
mov ebp, dword [rsp + 0x30]
nop dword [rax + rax]
mov r9, rax
lea rdx, str._.512s_.128s
mov r8, rdi
lea rcx, [rsp + 0x40]
call fcn.140006510
xor r8d, r8d
lea rcx, [rsp + 0x40]
mov edx, ebp
call fcn.1400021e0
cmp eax, 1
jle 0x1400024af
mov ebx, eax
jmp 0x1400024ba
test eax, eax
jne 0x1400024ba
cmp ebx, 1
cmove ebx, r15d
mov rcx, rsi
call fcn.140006430
test rax, rax
jne 0x140002480
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebx
jmp 0x1400026d6
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400024f7
test al, 0x10
je 0x1400024f7
cmp dword [0x14007bc98], ebx
je 0x140002511
mov r8, qword [0x14007bc50]
mov rcx, rsi
mov rdx, qword [0x14007bc40]
call fcn.1400065f0
test eax, eax
jne 0x14000251d
mov rax, 0xffffffffffffffff
jmp 0x1400026d6
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x140002524
movsxd rdx, esi
add rdx, rdi
cmp esi, 3
jle 0x140002587
mov rcx, r15
lea r8, [0x140056cf0]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + rcx - 3]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x140002587
cmp rcx, 4
jne 0x140002550
lea rdx, [0x140056cf4]
mov rcx, rdi
call sub.zlib.dll_gzopen
mov r13, rax
test rax, rax
jne 0x1400025ed
cmp dword [0x14007bd34], ebp
jmp 0x14000269e
cmp esi, 4
jle 0x1400025ce
mov rcx, r15
lea r8, str..bz2
nop word [rax + rax]
movzx eax, byte [rdx + rcx - 4]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x1400025ce
cmp rcx, 5
jne 0x1400025a0
lea rdx, [0x140056cf4]
mov rcx, rdi
call sub.LIBBZ2.dll_BZ2_bzopen
mov rbp, rax
mov ebx, 2
jmp 0x1400025e4
lea rdx, [0x140056cf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r14, rax
mov ebx, r15d
test rax, rax
je 0x140002697
cmp dword [0x14007b0ec], 1
jg 0x140002602
jne 0x1400025fd
test r12d, r12d
je 0x140002602
mov r9, r15
jmp 0x140002605
mov r9, rdi
mov r8, rdi
mov edx, ebx
mov rcx, rax
call fcn.1400048c0
mov esi, eax
cmp ebx, 1
je 0x14000268b
cmp ebx, 2
jne 0x14000267e
cmp eax, 3
jne 0x140002672
lea rdx, [rsp + 0x30]
mov rcx, rbp
call sub.LIBBZ2.dll_BZ2_bzerror
cmp dword [rsp + 0x30], 0xfffffffb
mov rbx, rax
jne 0x140002644
mov rcx, rbp
call sub.LIBBZ2.dll_BZ2_bzclose
jmp 0x1400025ce
cmp dword [0x14007bd34], r15d
jne 0x14000266d
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea rdx, str.pcre2grep:_Failed_to_read__s_using_bzlib:__s_n
mov rcx, rax
mov r8, rdi
call fcn.140002190
mov esi, 2
mov rcx, rbp
call sub.LIBBZ2.dll_BZ2_bzclose
mov eax, esi
jmp 0x1400026d6
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, esi
jmp 0x1400026d6
mov rcx, r13
call sub.zlib.dll_gzclose
mov eax, esi
jmp 0x1400026d6
cmp dword [0x14007bd34], r15d
jne 0x1400026d1
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 ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.pcre2grep:_Failed_to_open__s:__s_n
mov r9, rbx
mov r8, rdi
mov rcx, rax
call fcn.140002190
mov eax, 2
mov rsi, qword [rsp + 0x8a0]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140053760
add rsp, 0x850
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret