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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x1401ec028]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp byte [rcx + 0x17], 0
jns 0x1400f7d5b
mov rcx, qword [rsi]
lea rdx, [0x1401d4510]
mov r8d, 4
call fcn.140156ee4
xor ecx, ecx
test eax, eax
sete cl
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x1400f7d82
mov rdx, qword [rsi + 8]
jmp 0x1400f7d87
mov edx, eax
and edx, 0x7f
lea r8, [rcx*4 + 5]
cmp rdx, r8
jb 0x1400f7dc0
shl rcx, 2
mov rdx, rsi
test al, al
jns 0x1400f7da2
mov rdx, qword [rsi]
lea rcx, [rdx + rcx*2]
lea rdx, str.pipe_
mov r8d, 5
call fcn.140156ee4
test eax, eax
je 0x1400f8028
xorps xmm0, xmm0
lea rdi, [rsp + 0x30]
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov rcx, rsi
mov rdx, rdi
call fcn.1400f81c0
mov ebx, eax
movzx eax, byte [rdi + 0x17]
mov edx, eax
and edx, 0x7f
test al, al
mov rcx, qword [rdi + 8]
cmovs rdx, rcx
cmp rdx, 3
jb 0x1400f7fee
test al, al
jns 0x1400f7fd1
test rcx, rcx
je 0x1400f7ffc
mov rdi, qword [rsp + 0x30]
cmp word [rdi + 2], 0x3a
jne 0x1400f7fee
cmp rcx, 2
jb 0x1400f7ffc
cmp word [rdi + 4], 0x5c
jne 0x1400f7fee
movzx edx, word [rdi]
and edx, 0xffffffdf
add edx, 0xffffffbf
cmp dx, 0x1a
setb bpl
mov edx, eax
and edx, 0x78
test al, al
cmovs rdx, rcx
cmp rdx, 8
jb 0x1400f7e7f
test al, al
jns 0x1400f7e60
mov rcx, qword [rsp + 0x30]
jmp 0x1400f7e65
lea rcx, [rsp + 0x30]
lea rdx, [0x1401d4760]
mov r8d, 8
call fcn.140156ee4
test eax, eax
je 0x1400f8032
or bl, bpl
cmp bl, 1
jne 0x1400f8084
test bpl, bpl
je 0x1400f808e
mov r14, 0xffffffffffffffff
lea r15, [rsp + 0x48]
xor r13d, r13d
lea rdi, [rsp + 0x48]
lea rbx, [rsp + 0x30]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov qword [rsp + 0x20], r15
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
mov r9, r14
call fcn.14008cc70
cmp byte [rsp + 0x47], 0
jns 0x1400f7edb
mov rcx, qword [rsp + 0x30]
call fcn.14013a790
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x30], xmm0
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x1400f7efe
mov rcx, qword [rsp + 0x30]
call r12
cmp eax, 0xffffffff
je 0x1400f7f95
bt eax, 0xa
jb 0x1400f7ff5
movzx ecx, byte [rsp + 0x47]
mov eax, ecx
and eax, 0x7f
test cl, cl
cmovs rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
cmovns rcx, rbx
mov r14, 0xffffffffffffffff
mov r13b, 1
test rax, rax
je 0x1400f7f5b
add rax, rax
test rax, rax
je 0x1400f7f5b
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x1400f7f41
sar rdx, 1
mov r14, rdx
cmp r14, 2
ja 0x1400f7eb4
mov esi, 0x1126
cmp byte [rsp + 0x47], 0
js 0x1400f8137
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14013bb80
mov eax, esi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jne 0x1400f8146
cmp eax, 0x7b
je 0x1400f7f14
add eax, 0xfffffffe
cmp eax, 2
jb 0x1400f7f14
cmp dword [rsp + 0x2c], 0
je 0x1400f7f5b
cmp dword [rsp + 0x2c], 2
je 0x1400f7f65
jmp 0x1400f7f6a
test rax, rax
je 0x1400f7ffc
cmp word [rsp + 0x32], 0x3a
jne 0x1400f7fee
cmp al, 1
jbe 0x1400f7ffc
cmp word [rsp + 0x34], 0x5c
je 0x1400f7e33
xor ebp, ebp
jmp 0x1400f7e44
xor esi, esi
jmp 0x1400f7f6a
lea rax, str.string_index_out_of_bounds
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string
lea r9, str.__pos___size__
mov r8d, 0x456
call fcn.140170320
mov esi, 0x1126
jmp 0x1400f7f75
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x48]
lea rsi, [rsp + 0x30]
mov r8d, 8
mov rdx, rsi
mov r9, 0xffffffffffffffff
call fcn.14008cc70
cmp byte [rsi + 0x17], 0
jns 0x1400f806b
mov rcx, qword [rsp + 0x30]
call fcn.14013a790
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x30], xmm0
jmp 0x1400f7e8b
mov esi, 0x7b
jmp 0x1400f7f6a
lea rdi, [rsp + 0x38]
lea rdx, [0x1401d45c0]
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.14016fbf0
movzx eax, byte [rdi + 0xf]
mov r8d, eax
and r8d, 0x7f
test al, al
cmovs r8, qword [rdi]
lea r14, [rsp + 0x30]
mov rdx, qword [r14]
cmovns rdx, r14
mov rcx, rsi
call fcn.14008c9f0
mov rsi, qword [rax]
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0xf]
mov qword [rsp + 0x67], rdx
mov qword [rsp + 0x60], rcx
mov bl, byte [rax + 0x17]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
cmp byte [r14 + 0x17], 0
jns 0x1400f8103
mov rcx, qword [rsp + 0x30]
call fcn.14013a790
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x67]
mov qword [rdi + 7], rcx
mov qword [rdi], rax
mov byte [rsp + 0x47], bl
cmp byte [rsp + 0x5f], 0
jns 0x1400f7e94
mov rcx, qword [rsp + 0x48]
call fcn.14013a790
jmp 0x1400f7e94
mov rcx, qword [rsp + 0x30]
call fcn.14013a790
jmp 0x1400f7f75
lea ecx, [rax - 2]
cmp ecx, 2
jb 0x1400f7fac
test r13b, 1
sete cl
or cl, bpl
je 0x1400f816d
mov dword [rsp + 0x2c], 1
mov esi, eax
jmp 0x1400f7fac
lea rcx, [rsp + 0x30]
movzx r8d, byte [rcx + 0x17]
mov edx, r8d
and edx, 0x7f
test r8b, r8b
cmovs rdx, qword [rcx + 8]
cmovs rcx, qword [rcx]
test rdx, rdx
je 0x1400f815e
add rdx, rdx
test rdx, rdx
je 0x1400f815e
lea r8, [rdx - 2]
cmp word [rcx + rdx - 2], 0x5c
mov rdx, r8
jne 0x1400f8191
mov dword [rsp + 0x2c], 2
cmp r8, 6
je 0x1400f7fac
jmp 0x1400f815e