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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400442d0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rcx
call fcn.1400011c0
mov rcx, rax
xor r13d, r13d
mov edx, r13d
test rax, rax
setne dl
test edx, edx
jne 0x14001288f
mov ecx, 0x80004005
call fcn.140004180
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x59], rbx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], r13
mov qword [rbp + 0x27], 7
mov qword [rbp + 0x1f], r13
mov word [rbp + 0xf], r13w
mov r8d, 1
lea rdx, [0x140039d70]
lea rcx, [rbp + 0xf]
call fcn.14000c8f0
nop
mov rdx, qword [rdi + 0x338]
mov qword [rbp + 7], 7
mov qword [rbp - 1], r13
mov word [rbp - 0x11], r13w
or r15, 0xffffffffffffffff
cmp word [rdx], 0
jne 0x1400128f8
mov r8, r13
jmp 0x14001290b
mov r8, r15
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140012900
lea rcx, [rbp - 0x11]
call fcn.14000c8f0
nop
lea r8, [rbp + 0xf]
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x11]
call fcn.140004430
nop
cmp qword [rbp + 7], 8
jb 0x140012937
mov rcx, qword [rbp - 0x11]
call fcn.140018e6c
mov qword [rbp + 7], 7
mov qword [rbp - 1], r13
mov word [rbp - 0x11], r13w
cmp qword [rbp + 0x27], 8
jb 0x140012958
mov rcx, qword [rbp + 0xf]
call fcn.140018e6c
mov rdi, qword [rbp - 0x49]
mov r14, qword [rbp - 0x41]
cmp rdi, r14
je 0x140012be6
lea rax, [rbp - 0x51]
mov qword [rbp - 0x19], rax
lea rsi, str.Inf_
call fcn.1400011c0
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
je 0x140012bdb
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbp - 0x51], rax
test rsi, 0xffffffffffff0000
jne 0x1400129c8
movzx esi, si
mov ecx, esi
call fcn.140004240
test rax, rax
je 0x1400129db
mov r8d, esi
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.14000cdd0
jmp 0x1400129db
mov r8d, 5
mov rdx, rsi
lea rcx, [rbp - 0x51]
call fcn.14000c770
nop
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x29]
call fcn.14000e800
nop
cmp qword [rdi + 0x18], 8
jb 0x1400129f5
mov r8, qword [rdi]
jmp 0x1400129f8
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.14000b6d0
nop
mov r13, qword [rax]
lea rcx, [r13 - 0x18]
lea rsi, [rbx - 0x18]
cmp rcx, rsi
je 0x140012b3b
cmp dword [rsi + 0x10], 0
jl 0x140012a51
mov rax, qword [rsi]
cmp qword [rcx], rax
jne 0x140012a51
call fcn.14000c860
mov rbx, rax
mov ecx, r15d
lock xadd dword [rsi + 0x10], ecx
dec ecx
jg 0x140012a48
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [r8 + 8]
lea rax, [rbx + 0x18]
jmp 0x140012b37
movsxd r14, dword [r13 - 0x10]
test r14d, r14d
jne 0x140012ab1
mov r14, qword [rsi]
cmp dword [rsi + 8], 0
je 0x140012b3b
cmp dword [rsi + 0x10], 0
jge 0x140012a87
cmp dword [rbx - 0xc], 0
jl 0x140012b9d
xor r13d, r13d
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x140012b3e
mov eax, r15d
lock xadd dword [rsi + 0x10], eax
dec eax
jg 0x140012a9f
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 8]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x18]
add rax, 0x18
jmp 0x140012b37
test r13, r13
je 0x140012bbe
mov r12d, dword [rbx - 0x10]
mov r15, r13
sub r15, rbx
sar r15, 1
test r14d, r14d
js 0x140012bb3
mov ecx, 1
sub ecx, dword [rsi + 0x10]
mov eax, dword [rsi + 0xc]
sub eax, r14d
or eax, ecx
jge 0x140012af2
mov edx, r14d
lea rcx, [rbp - 0x59]
call fcn.14000d100
mov rbx, qword [rbp - 0x59]
lea rsi, [r14 + r14]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
mov r9, rsi
add rdx, rdx
cmp r15, r12
ja 0x140012b13
lea r8, [rbx + r15*2]
call fcn.140019800
jmp 0x140012b1b
mov r8, r13
call fcn.14001a388
cmp r14d, dword [rbx - 0xc]
jg 0x140012ba8
mov dword [rbx - 0x10], r14d
xor r13d, r13d
mov word [rsi + rbx], r13w
or r15, 0xffffffffffffffff
jmp 0x140012b3e
mov qword [rbp - 0x59], rax
xor r13d, r13d
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140012b5c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140012b79
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp - 0x59]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [rbp - 0x41]
cmp eax, 0xffffffff
je 0x140012bcf
add rdi, 0x20
cmp rdi, r14
je 0x140012bc9
jmp 0x140012971
mov ecx, 0x80070057
call fcn.140004180
int3
mov ecx, 0x80070057
call fcn.140004180
int3
mov ecx, 0x80070057
call fcn.140004180
int3
mov ecx, 0x80070057
call fcn.140004180
nop
mov rdi, qword [rbp - 0x49]
jmp 0x140012be6
mov rdi, qword [rbp - 0x49]
mov r12d, 1
jmp 0x140012be9
mov ecx, 0x80004005
call fcn.140004180
int3
mov r12d, r13d
test rdi, rdi
je 0x140012c27
mov rsi, rdi
cmp rdi, r14
je 0x140012c1e
cmp qword [rsi + 0x18], 8
jb 0x140012c05
mov rcx, qword [rsi]
call fcn.140018e6c
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], r13
mov word [rsi], r13w
add rsi, 0x20
cmp rsi, r14
jne 0x140012bf6
mov rcx, rdi
call fcn.140018e6c
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r15d
dec r15d
jg 0x140012c40
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r12d
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140018e90
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret