Function at 0x14002e661
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, 0x88
mov rbx, rcx
mov rax, qword [0x140222818]
xor rax, rsp
mov qword [rsp + 0x80], rax
call fcn.14002e1dc
mov esi, 0x1126
test al, al
jne 0x14002eb38
lea rdi, [rsp + 0x60]
mov qword [rdi], 0
movaps xmm0, xmmword [0x1401b6c10]
movups xmmword [rdi + 8], xmm0
mov qword [rdi + 0x18], 7
mov word [rdi], 0
mov rcx, rbx
mov rdx, rdi
call fcn.14002eb69
mov ebx, eax
mov rcx, rdi
call fcn.14002ed6d
mov byte [rsp + 0x33], al
mov rcx, rdi
mov rdx, rdi
call fcn.14002edb2
test bl, bl
jne 0x14002e6fe
cmp byte [rsp + 0x33], 0
jne 0x14002e6fe
mov dword [rsp + 0x34], 0x7b
test al, al
je 0x14002eaf0
cmp byte [rsp + 0x33], 0
jne 0x14002e847
movaps xmm0, xmmword [0x1401b8460]
movups xmmword [rsp + 0x50], xmm0
movabs rax, 0x5c002e005c005c
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], 0
mov rsi, qword [rsp + 0x70]
cmp qword [rsp + 0x78], 8
jb 0x14002e73d
mov rdi, qword [rsp + 0x60]
cmp rsi, 3
jbe 0x14002e75a
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x40]
mov rdx, rsi
mov r9, rdi
call fcn.140007260
jmp 0x14002e77f
lea rcx, [rsp + 0x48]
lea rax, [rsi + 4]
mov qword [rcx + 8], rax
lea r8, [rsi + rsi]
mov rdx, rdi
call fcn.14013b1d0
mov word [rsp + rsi*2 + 0x48], 0
lea rax, [rsp + 0x40]
mov rsi, qword [rax]
mov rdi, qword [rax + 8]
mov rbx, qword [rax + 0x10]
mov rbp, qword [rax + 0x18]
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 7
mov word [rax], 0
mov rax, qword [rsp + 0x78]
cmp rax, 8
jb 0x14002e7eb
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14002e7e6
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14002eb63
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140139cc4
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x14002e847
mov rcx, qword [rsp + 0x40]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14002e842
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x14002eb63
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbp
call fcn.140139cc4
mov rdi, 0xffffffffffffffff
xor esi, esi
lea r15, [rsp + 0x60]
mov r14, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], 0
mov r13, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
cmp r13, rdi
cmovae r13, rdi
mov rbx, r15
cmp rbp, 8
jb 0x14002e894
mov rbx, qword [rsp + 0x60]
cmp r13, 7
jbe 0x14002e8f6
mov qword [rsp + 0x38], rdi
movabs rax, 0x7ffffffffffffffe
cmp r13, rax
ja 0x14002eb5e
mov r12, r13
or r12, 7
mov rcx, 0xfffffffffffffffe
mov rdi, rax
cmp r12, rax
ja 0x14002e8e9
cmp r12, 0xb
mov eax, 0xa
cmovb r12, rax
lea rcx, [r12 + r12]
add rcx, 2
cmp r12, 0x7ff
jb 0x14002e918
mov rdi, r12
call fcn.14005207c
mov rbp, rax
mov r12, rdi
jmp 0x14002e920
mov qword [rsp + 0x50], r13
mov r8, r13
add r8, r13
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.14013b1d0
mov word [rsp + r13*2 + 0x40], 0
jmp 0x14002e952
call fcn.140139c88
mov rbp, rax
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r12
mov r8, r13
add r8, r13
mov rcx, rbp
mov rdx, rbx
call fcn.14013b1d0
mov word [rbp + r13*2], 0
mov qword [rsp + 0x40], rbp
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x38]
cmp rbp, 8
jb 0x14002e998
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp + 2]
add rdx, rbp
cmp rdx, 0x1000
jb 0x14002e993
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x14002eb63
add rbp, rbp
add rbp, 0x29
mov rdx, rbp
mov rcx, rax
call fcn.140139cc4
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
cmp qword [rsp + 0x78], 8
mov rcx, r15
jb 0x14002e9bc
mov rcx, qword [rsp + 0x60]
call r14
cmp eax, 0xffffffff
je 0x14002e9d3
bt eax, 0xa
jae 0x14002ea67
jmp 0x14002eae8
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 2
jb 0x14002ea5d
cmp eax, 0x7b
je 0x14002ea5d
test sil, 1
sete dl
or dl, byte [rsp + 0x33]
jne 0x14002ea52
cmp qword [rsp + 0x78], 8
mov r8, r15
jb 0x14002ea05
mov r8, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
test rbp, rbp
je 0x14002ea52
lea rdx, [r8 + rbp*2]
add rdx, 0xfffffffffffffffe
cmp word [rdx], 0x5c
jne 0x14002ea22
mov rbp, rdx
jmp 0x14002ea44
add rbp, rbp
mov ebx, 2
sub rbx, rbp
test rbx, rbx
je 0x14002ea52
lea rbp, [rdx - 2]
add rbx, 2
cmp word [rdx - 2], 0x5c
mov rdx, rbp
jne 0x14002ea2d
sub rbp, r8
mov ebx, 2
cmp rbp, 6
je 0x14002ea5d
mov ebx, 1
mov edx, eax
mov dword [rsp + 0x34], eax
cmp ecx, 2
jb 0x14002ea67
cmp eax, 0x7b
jne 0x14002ead5
cmp qword [rsp + 0x78], 8
mov rax, r15
jb 0x14002ea77
mov rax, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rdi, 0xffffffffffffffff
mov sil, 1
test rbp, rbp
je 0x14002eac9
lea rcx, [rax + rbp*2]
add rcx, 0xfffffffffffffffe
cmp word [rcx], 0x5c
jne 0x14002ea9e
mov rbp, rcx
jmp 0x14002eac0
add rbp, rbp
mov edx, 2
sub rdx, rbp
test rdx, rdx
je 0x14002eac9
lea rbp, [rcx - 2]
add rdx, 2
cmp word [rcx - 2], 0x5c
mov rcx, rbp
jne 0x14002eaa9
sub rbp, rax
sar rbp, 1
mov rdi, rbp
cmp rdi, 2
ja 0x14002e85c
jmp 0x14002eade
test ebx, ebx
je 0x14002eac9
cmp ebx, 2
jne 0x14002eaf0
mov dword [rsp + 0x34], 0x1126
jmp 0x14002eaf0
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x78]
cmp rax, 8
mov esi, dword [rsp + 0x34]
jb 0x14002eb38
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14002eb33
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x14002eb63
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rbp
call fcn.140139cc4
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14013a2d0
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140055710
call fcn.140140ecc
int3