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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r15, r9
mov r14, r8
mov r12, rdx
mov rdi, rcx
mov r13, rcx
xor esi, esi
mov rbp, rsi
mov qword [rdx], rcx
mov dword [r8], esi
test rcx, rcx
je 0x1283e360
movzx eax, word [rcx]
test ax, ax
je 0x1283e0e6
cmp ax, 0x20
jne 0x1283e0e6
add rdi, 2
mov ax, word [rdi]
test ax, ax
jne 0x1283e0d4
mov r13, rdi
mov qword [rdx], rdi
movzx eax, word [rdi]
test ax, ax
je 0x1283e360
cmp ax, 0x22
jne 0x1283e141
add rdi, 2
movzx eax, word [rdi]
test ax, ax
je 0x1283e122
nop word [rax + rax]
cmp ax, 0x22
jne 0x1283e122
add rdi, 2
mov ax, word [rdi]
test ax, ax
jne 0x1283e110
mov r13, rdi
lea rdx, [0x129cacc8]
mov rcx, rdi
call fcn.1295bbd0
lea rcx, [rdi + rax*2]
mov qword [r12], rcx
jmp 0x1283e360
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
cmp word [rdi], 0
je 0x1283e33b
nop
lea rdx, [0x129bce5c]
mov rcx, rdi
call fcn.1295bbd0
lea rbx, [rdi + rax*2]
cmp word [rbx], 0
je 0x1283e337
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.1281aed0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1283e1b1
test al, 0x10
je 0x1283e31d
mov rax, rbx
cmp rbx, rdi
jbe 0x1283e1cf
nop dword [rax]
cmp word [rax], 0x2e
je 0x1283e1cf
sub rax, 2
cmp rax, rdi
ja 0x1283e1c0
mov rdi, qword [rsp + 0x40]
cmp word [rax], 0x2e
je 0x1283e1f8
mov r8d, 4
lea rdx, [0x129becd0]
lea rcx, [rsp + 0x28]
call fcn.12803a10
lea rbp, [0x129becd0]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1283e21c
test al, 0x10
je 0x1283e32a
mov rbp, rsi
mov r9, qword [rsp + 0x40]
cmp rdi, r9
ja 0x1283e2c3
or rsi, 0xffffffffffffffff
cmp r9, rdi
jae 0x1283e240
call fcn.129581ac
mov r9, qword [rsp + 0x40]
mov rax, r9
sub rax, rdi
cmp rax, 0xffffffffffffffff
jae 0x1283e258
mov rsi, rax
test rax, rax
je 0x1283e2d8
lea r8, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
cmovae r8, rax
lea rcx, [rsp + 0x30]
cmp rdx, 8
cmovae rcx, rax
sub r9, rsi
sub r9, rdi
sub rdx, rdi
lea rcx, [rcx + rdi*2]
add r9, r9
lea rax, [rsi + rdi]
lea r8, [r8 + rax*2]
add rdx, rdx
call fcn.129582f0
mov r11, qword [rsp + 0x40]
sub r11, rsi
mov qword [rsp + 0x40], r11
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
xor esi, esi
mov word [rax + r11*2], si
jmp 0x1283e2da
xor r8d, r8d
sub rdi, r9
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.12803b90
jmp 0x1283e2da
xor esi, esi
mov rdx, rbx
add rbx, 2
movzx eax, word [rbx]
test ax, ax
je 0x1283e302
nop dword [rax]
cmp ax, 0x20
jne 0x1283e302
add rbx, 2
mov ax, word [rbx]
test ax, ax
jne 0x1283e2f0
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.1281aed0
mov rdi, rbx
cmp word [rbx], 0
je 0x1283e33b
jmp 0x1283e160
mov qword [r12], rbx
mov dword [r14], 1
jmp 0x1283e33b
mov qword [r12], rbx
mov dword [r14], 1
jmp 0x1283e33b
mov qword [r12], rbx
cmp qword [rsp + 0x48], 8
jb 0x1283e34d
mov rcx, qword [rsp + 0x30]
call fcn.12958250
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
test r15, r15
je 0x1283e36d
mov qword [r15], rbp
mov rax, r13
jmp 0x1283e370
mov rax, r13
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.12959850
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret