Function at 0x14029f396
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 rbx, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x70], rax
call fcn.14029f088
mov edi, 0x1126
test al, al
je 0x14029f3e6
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140156fe0
mov eax, edi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rcx, rbx
mov rdx, rsi
call fcn.14029f6af
mov edi, eax
mov rcx, rsi
call fcn.14029f76e
mov ebx, eax
mov rcx, rsi
mov rdx, rsi
call fcn.14029f7d1
test bl, bl
jne 0x14029f44d
test dil, dil
jne 0x14029f44d
mov edi, 0x7b
test al, al
jne 0x14029f44d
cmp byte [rsp + 0x57], 0
jns 0x14029f3c6
mov rcx, qword [rsp + 0x40]
call fcn.140153bcc
jmp 0x14029f3c6
cmp r12d, 2
jne 0x14029f42d
mov edi, 0x1126
jmp 0x14029f42d
test bl, bl
je 0x14029f5e1
mov r15, 0xffffffffffffffff
xor ebp, ebp
lea r12, [rsp + 0x60]
lea r14, [rsp + 0x28]
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x14029f4cc
xor edi, edi
jmp 0x14029f42d
bt eax, 0xa
jb 0x14029f471
movzx ecx, byte [rsp + 0x57]
mov eax, ecx
and eax, 0x7f
test cl, cl
cmovs rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmovns rcx, rsi
mov r15, 0xffffffffffffffff
mov bpl, 1
test rax, rax
je 0x14029f4c2
add rax, rax
test rax, rax
je 0x14029f4c2
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x14029f4a8
sar rdx, 1
mov r15, rdx
cmp r15, 2
jbe 0x14029f446
mov qword [rsp + 0x20], r12
mov rcx, r14
mov rdx, rsi
xor r8d, r8d
mov r9, r15
call fcn.1400dffce
cmp byte [rsp + 0x57], 0
jns 0x14029f4f3
mov rcx, qword [rsp + 0x40]
call fcn.140153bcc
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rsp + 0x40], xmm0
cmp byte [rsp + 0x57], 0
mov rcx, rsi
jns 0x14029f516
mov rcx, qword [rsp + 0x40]
call r13
cmp eax, 0xffffffff
jne 0x14029f475
mov r14, r13
mov r13, r12
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
ja 0x14029f57d
mov ecx, 0x2e
bt ecx, eax
jae 0x14029f57d
cmp eax, 5
ja 0x14029f55f
mov ecx, 0x2e
bt ecx, eax
jae 0x14029f55f
mov r12, r13
mov r13, r14
lea r14, [rsp + 0x28]
jmp 0x14029f47b
cmp eax, 0x7b
je 0x14029f54f
test r12d, r12d
jne 0x14029f440
mov r12, r13
mov r13, r14
lea r14, [rsp + 0x28]
jmp 0x14029f4c2
cmp eax, 0x7b
je 0x14029f540
test bpl, 1
sete cl
or cl, bl
jne 0x14029f5d4
movzx edx, byte [rsp + 0x57]
mov ecx, edx
and ecx, 0x7f
test dl, dl
cmovs rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
cmovns rdx, rsi
test rcx, rcx
je 0x14029f5d4
add rcx, rcx
test rcx, rcx
je 0x14029f5d4
lea r8, [rcx - 2]
cmp word [rdx + rcx - 2], 0x5c
mov rcx, r8
jne 0x14029f5b0
mov r12d, 2
cmp r8, 6
je 0x14029f540
mov r12d, 1
mov edi, eax
jmp 0x14029f540
lea rcx, [rsp + 0x28]
mov byte [rcx + 0x17], 4
lea rax, str.._
cmp rcx, rax
ja 0x14029f604
lea rcx, [rsp + 0x30]
cmp rcx, rax
ja 0x14029f6ab
lea rdi, [rsp + 0x48]
movabs rax, 0x5c002e005c005c
lea rcx, [rsp + 0x28]
mov qword [rcx], rax
movzx eax, byte [rdi + 0xf]
mov r8d, eax
and r8d, 0x7f
test al, al
cmovs r8, qword [rdi]
mov word [rcx + 8], 0
mov rdx, qword [rdi - 8]
cmovns rdx, rsi
call fcn.1401300e2
mov r14, qword [rax]
mov rcx, qword [rax + 8]
mov rdx, qword [rax + 0xf]
mov qword [rsp + 0x67], rdx
mov qword [rsp + 0x60], rcx
mov bpl, byte [rax + 0x17]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
cmp byte [rdi + 0xf], 0
jns 0x14029f676
mov rcx, qword [rsp + 0x40]
call fcn.140153bcc
mov qword [rsp + 0x40], r14
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x67]
mov qword [rdi + 7], rcx
mov qword [rdi], rax
mov byte [rsp + 0x57], bpl
cmp byte [rsp + 0x3f], 0
jns 0x14029f455
mov rcx, qword [rsp + 0x28]
call fcn.140153bcc
jmp 0x14029f455
int3