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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1040
call fcn.14003a390
sub rsp, rax
mov rax, qword [0x140077040]
xor rax, rsp
mov qword [rsp + 0x1030], rax
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x30]
call fcn.14005af20
mov sil, 1
mov rax, qword [0x14007dde0]
cmp dword [rax - 0x10], 0
jne 0x14000583b
call fcn.140002ed0
mov rcx, rax
test rax, rax
je 0x140005882
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
lea rdx, str.LogFolder
mov rcx, qword [0x14007dde8]
call fcn.14000b2a0
test al, al
je 0x140005694
mov rdi, 0xffffffffffffffff
mov r9, rdi
mov rbx, qword [rsp + 0x20]
mov r8, rbx
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.140045cc8
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400055eb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
cmp word [rsp + 0x30], 0
je 0x1400056b9
lea rax, [rsp + 0x30]
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140005600
lea rdx, [rsp + 0x30]
lea rcx, [0x14007dde0]
call fcn.140002210
mov rcx, qword [0x14007dde0]
cmp dword [rcx - 0x10], 0
jl 0x140005804
lea rbx, str.logs
mov rdx, rbx
call fcn.14003b83c
test rax, rax
je 0x140005804
mov rcx, qword [0x14007dde0]
sub rax, rcx
sar rax, 1
cmp eax, 0xffffffff
je 0x140005804
movsxd rcx, dword [rcx - 0x10]
sub rcx, 4
cdqe
cmp rax, rcx
jae 0x140005804
call fcn.14000d130
inc rdi
cmp word [rbx + rdi*2], 0
jne 0x140005673
mov r8d, edi
mov rdx, rbx
lea rcx, [0x14007dde0]
call fcn.140004940
jmp 0x140005804
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400056b9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x830]
call fcn.14005af20
call fcn.140013c30
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 0x1400057a5
lea rax, [rsp + 0x830]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140005710
lea rdx, [rsp + 0x830]
lea rcx, [0x14007dde0]
call fcn.140002210
call fcn.14000d130
lea rdx, str.ProcessLasso
mov r8, rdi
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x140005740
lea rcx, [0x14007dde0]
call fcn.140004940
call fcn.14000d130
lea rbx, str.logs
inc rdi
cmp word [rbx + rdi*2], 0
jne 0x140005763
mov r8d, edi
mov rdx, rbx
lea rcx, [0x14007dde0]
call fcn.140004940
mov rcx, qword [0x14007dde0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140005801
xor r8d, r8d
mov rdx, qword [0x14007dde0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
jmp 0x140005801
mov rax, qword [0x14007dde0]
lea rdx, [rax - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140005801
cmp dword [rdx + 0x10], 0
jge 0x1400057da
cmp dword [rax - 0xc], 0
jl 0x140005877
xor ecx, ecx
mov dword [rax - 0x10], ecx
mov rax, qword [0x14007dde0]
mov word [rax], cx
jmp 0x140005801
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400057ed
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 [0x14007dde0], rax
xor sil, sil
mov rcx, qword [0x14007dde0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140005828
xor r8d, r8d
mov rdx, qword [0x14007dde0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea rdx, [0x14007dde0]
lea rcx, [0x14007dde0]
call fcn.140001e50
lea rdx, [0x14007dde0]
lea rcx, [0x14007dde0]
call fcn.140001e50
movzx eax, sil
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1400398f0
lea r11, [rsp + 0x1040]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80070057
call fcn.140002c40
int3
mov ecx, 0x80004005
call fcn.140002c40
int3