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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rdx
xor r13d, r13d
mov edi, r13d
cmp qword [rcx + 0x10], rdi
je 0x1400c5a21
cmp qword [rcx + 0x18], 8
jb 0x1400c57fe
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rsi + 0x18]
cmp eax, 0xffffffff
jne 0x1400c5a05
mov rax, rsi
cmp rcx, 8
jb 0x1400c581d
mov rax, qword [rsi]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x1400c5a21
mov rbx, r13
mov r12d, 0x100
nop word [rax + rax]
inc rbx
mov rbp, qword [rsi + 0x10]
mov rdi, rsi
mov r14, qword [rsi + 0x18]
cmp r14, 8
jb 0x1400c5857
mov rdi, qword [rsi]
cmp rbx, rbp
jae 0x1400c5915
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140287fc8]
movzx eax, word [rcx]
cmp ax, r12w
jae 0x1400c58c2
movzx eax, al
mov byte [rsp + rax + 0x60], 1
add rcx, 2
lea rax, [0x140287fcc]
cmp rcx, rax
jne 0x1400c5876
lea rcx, [rdi + rbp*2]
lea rbx, [rdi + rbx*2]
cmp rbx, rcx
jae 0x1400c5915
movzx eax, word [rbx]
cmp ax, r12w
jae 0x1400c58b4
cmp byte [rsp + rax + 0x60], 0
jne 0x1400c58ba
add rbx, 2
jmp 0x1400c589f
sub rbx, rdi
sar rbx, 1
jmp 0x1400c591c
lea r8, [rdi + rbp*2]
lea rbx, [rdi + rbx*2]
cmp rbx, r8
jae 0x1400c5915
mov r9d, 0x5c
nop word [rax + rax]
mov eax, 2
movzx edx, word [rbx]
lea rcx, [0x140287fc8]
cmp r9w, dx
je 0x1400c58ba
cmp rax, 1
je 0x1400c590c
dec rax
add rcx, 2
cmp word [rcx], dx
jne 0x1400c58f5
test rcx, rcx
jne 0x1400c58ba
add rbx, 2
cmp rbx, r8
jb 0x1400c58e0
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r13w
mov r8, rbx
cmp rbp, rbx
cmovb r8, rbp
mov rdx, rsi
cmp r14, 8
jb 0x1400c594b
mov rdx, qword [rsi]
lea rcx, [rsp + 0x38]
call fcn.1400523d0
nop
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [r15 + 0x38]
cmp eax, 0xffffffff
jne 0x1400c5986
mov byte [rsp + 0x20], 0
test rcx, rcx
je 0x1400c5a74
jmp 0x1400c5994
mov byte [rsp + 0x20], 1
test rcx, rcx
je 0x1400c5a6e
mov rax, qword [rcx]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x38]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov edi, eax
test eax, eax
jne 0x1400c59b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400c59ef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c59ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c59fe
call fcn.1400e6a28
test edi, edi
je 0x1400c5a23
cmp rbx, 0xffffffffffffffff
je 0x1400c5a21
jmp 0x1400c5840
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 8
jb 0x1400c5a0e
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov ecx, 1
test eax, eax
cmovne edi, ecx
test edi, edi
setne bl
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x1400c5a40
mov r8, qword [rcx]
cmp rcx, r15
setne dl
call qword [r8 + 0x20]
mov qword [r15 + 0x38], r13
movzx eax, bl
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400e6b50
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
nop
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_
int3