Function at 0x140006330
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x1040
call fcn.140046160
sub rsp, rax
mov rax, qword [0x14008b040]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rdi, rdx
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x30]
call fcn.14006cda0
mov r14b, 1
mov rdx, qword [0x14008fa20]
mov rsi, 0xffffffffffffffff
cmp dword [rdx - 0x10], 0
jne 0x14000667a
call fcn.140002aa0
mov rcx, rax
test rax, rax
je 0x140006703
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
mov rcx, qword [0x14008fa28]
call fcn.140011660
test al, al
je 0x14000649b
mov r9, rsi
mov rbx, qword [rsp + 0x20]
mov r8, rbx
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.140051758
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400063fa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
cmp word [rsp + 0x30], 0
je 0x1400064b9
lea rax, [rsp + 0x30]
mov r8, rsi
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140006410
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140001ca0
mov rcx, qword [rdi]
cmp dword [rcx - 0x10], 0
jl 0x1400065ee
lea rbx, str.logs
mov rdx, rbx
call fcn.1400475dc
test rax, rax
je 0x1400065ee
mov rcx, qword [rdi]
sub rax, rcx
sar rax, 1
cmp eax, 0xffffffff
je 0x1400065ee
movsxd rcx, dword [rcx - 0x10]
sub rcx, 4
cdqe
cmp rax, rcx
jae 0x1400065ee
mov rcx, rdi
call fcn.140011ee0
mov r8, rsi
nop dword [rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140006480
mov rdx, rbx
mov rcx, rdi
call fcn.14000e0d0
jmp 0x1400065ee
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400064b9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x830]
call fcn.14006cda0
call fcn.140013d50
mov ecx, 0x23
mov r8d, 0x1c
test al, al
cmovne r8d, ecx
lea r9d, [rcx - 0x22]
lea rdx, [rsp + 0x830]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140006599
lea rax, [rsp + 0x830]
mov r8, rsi
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140006510
lea rdx, [rsp + 0x830]
mov rcx, rdi
call fcn.140001ca0
mov rcx, rdi
call fcn.140011ee0
lea rdx, str.ProcessLasso
mov r8, rsi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140006540
mov rcx, rdi
call fcn.14000e0d0
mov rcx, rdi
call fcn.140011ee0
lea rbx, str.logs
mov r8, rsi
inc r8
cmp word [rbx + r8*2], 0
jne 0x140006565
mov rdx, rbx
mov rcx, rdi
call fcn.14000e0d0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400065eb
xor r8d, r8d
mov rdx, qword [rdi]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
jmp 0x1400065eb
mov rax, qword [rdi]
lea rdx, [rax - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], 0
je 0x1400065eb
cmp dword [rdx + 0x10], 0
jge 0x1400065c6
cmp dword [rax - 0xc], 0
jl 0x1400066f8
xor ecx, ecx
mov dword [rax - 0x10], ecx
mov rax, qword [rdi]
mov word [rax], cx
jmp 0x1400065eb
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400065db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
xor r14b, r14b
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000660a
xor r8d, r8d
mov rdx, qword [rdi]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rcx, qword [rdi]
lea r8, [rcx - 0x18]
mov rdx, qword [0x14008fa20]
lea rbx, [rdx - 0x18]
cmp r8, rbx
je 0x14000667a
cmp dword [rbx + 0x10], 0
jl 0x140006660
mov rax, qword [rbx]
cmp qword [r8], rax
jne 0x140006660
mov rcx, r8
call fcn.140001bb0
mov rbp, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140006653
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rVariantCopy + 8]
lea rdx, [rbp + 0x18]
mov qword [0x14008fa20], rdx
jmp 0x14000667a
mov r8d, dword [rcx - 0x10]
mov rdx, rcx
lea rcx, [0x14008fa20]
call fcn.140001ca0
mov rdx, qword [0x14008fa20]
lea rcx, [rdx - 0x18]
mov rbx, qword [rdi]
sub rbx, 0x18
cmp rcx, rbx
je 0x1400066cc
cmp dword [rbx + 0x10], 0
jl 0x1400066c0
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400066c0
call fcn.140001bb0
mov rbp, rax
lock xadd dword [rbx + 0x10], esi
sub esi, 1
jg 0x1400066b7
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rVariantCopy + 8]
lea rax, [rbp + 0x18]
mov qword [rdi], rax
jmp 0x1400066cc
mov r8d, dword [rdx - 0x10]
mov rcx, rdi
call fcn.140001ca0
movzx eax, r14b
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1400454d0
lea r11, [rsp + 0x1040]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.140002830
int3
mov ecx, 0x80004005
call fcn.140002830
int3