Function at 0x1401044e0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xd8], rbx
mov rax, qword [0x1402a98a8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbp, r8
mov qword [rsp + 0x38], r8
mov r15, rcx
xor r14d, r14d
mov rcx, rdx
call fcn.1401308f0
mov rbx, rax
test rax, rax
je 0x140104778
lea rdi, [rbx + 0x30]
cmp qword [rdi + 0x18], 8
jb 0x140104543
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [0x14022ad48]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1401045b7
test rbx, rbx
je 0x140104565
cmp dword [rbx + 0x18], 1
mov rcx, rbx
je 0x140104568
mov rcx, r14
lea rdx, str.name
call fcn.14012fcc0
mov rdx, rax
lea rcx, [r15 + 0x88]
mov qword [rsp + 0x20], r14
mov r9d, 4
mov r8, rbp
call fcn.140127000
cmp qword [rbx + 0x20], 0
je 0x14010476c
mov r8, rax
mov rdx, rbx
mov rcx, r15
call fcn.1401044e0
test al, al
jne 0x14010476c
jmp 0x14010477a
mov rdx, rdi
lea rcx, [0x140217220]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x14010476c
test rbx, rbx
je 0x1401045dd
cmp dword [rbx + 0x18], 1
mov rcx, rbx
je 0x1401045e0
mov rcx, r14
lea rdx, str.name
call fcn.14012fcc0
mov rdi, rax
mov r8, rax
lea rdx, [rsp + 0x58]
mov rcx, r15
call fcn.1401049f0
nop
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r13, rax
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb r12d, r12d
mov ecx, 0x20
call fcn.140181288
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1401046d0
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov r14, qword [rsp + 0x68]
lea rbp, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rbp, qword [rsp + 0x58]
cmp r14, 8
jae 0x140104684
movups xmm0, xmmword [rbp]
movups xmmword [rax], xmm0
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov rbp, qword [rsp + 0x38]
xor r14d, r14d
jmp 0x1401046d3
mov rdi, r14
or rdi, 7
movabs rax, 0x7ffffffffffffffe
cmp rdi, rax
cmova rdi, rax
lea rdx, [rdi + 1]
mov rcx, rsi
call fcn.1400069a0
mov qword [rsi], rax
lea r8, [r14*2 + 2]
mov rdx, rbp
mov rcx, rax
call fcn.14019f8d0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rdi
mov rbp, qword [rsp + 0x38]
xor r14d, r14d
jmp 0x1401046d3
mov rsi, r14
mov qword [rsp + 0x40], rsi
lea rcx, [r15 + 0x190]
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x1401046f3
mov qword [rdx], rsi
add qword [rcx + 8], 8
jmp 0x1401046fd
lea r8, [rsp + 0x40]
call fcn.14001c1e0
lea rcx, [r15 + 0x88]
mov qword [rsp + 0x20], rsi
lea r9d, [r12 + 6]
mov r8, rbp
mov rdx, r13
call fcn.140127000
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140104758
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140104753
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401047a2
call fcn.1401812c4
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r14w
mov rbx, qword [rbx + 0x58]
test rbx, rbx
jmp 0x14010452f
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401813e0
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401a2d8c
int3