Function at 0x140008580
Capabilities:
Get common file path
Open clipboard
Write clipboard data
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
mov eax, 0x56b0
call fcn.140022000
sub rsp, rax
mov rax, qword [0x14002b200]
xor rax, rsp
mov qword [rsp + 0x56a0], rax
mov rsi, rcx
lea rcx, [rsp + 0x6a2]
xor ebp, ebp
xor edx, edx
mov r8d, 0x4ffe
mov word [rsp + 0x6a0], bp
call fcn.140012bd0
lea rcx, [rsp + 0x492]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x490], bp
call fcn.140012bd0
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x70], bp
call fcn.140012bd0
lea rcx, [rsp + 0x282]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x280], bp
call fcn.140012bd0
lea rcx, [rsp + 0x490]
call fcn.140007aa0
test eax, eax
jne 0x140008644
lea rdx, [rsp + 0x490]
mov ecx, 0x104
call qword [0x1400231b8]
test eax, eax
je 0x140008929
lea rcx, [rsp + 0x490]
mov qword [rsp + 0x56c8], rbx
mov qword [rsp + 0x56d0], rdi
call qword [0x1400233c0]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x48e], 0x5c
je 0x140008685
lea rdx, [0x140023e58]
lea rcx, [rsp + 0x490]
call qword [0x140023108]
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x70]
call qword [0x140023100]
lea r8, [rsp + 0x280]
mov r9d, 0x104
mov edx, 0x3f4
mov rcx, rsi
call qword [0x1400236e0]
lea rcx, [rsp + 0x280]
call qword [0x1400233c0]
test eax, eax
jne 0x1400086db
lea rdx, str.Invitation
lea rcx, [rsp + 0x280]
call qword [0x140023100]
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x70]
call qword [0x140023108]
lea rdx, str..inv
lea rcx, [rsp + 0x70]
call qword [0x140023108]
xor eax, eax
mov rbx, rbp
mov edi, ebp
mov word [rsp + 0x48], bp
mov qword [rsp + 0x4a], rax
mov qword [rsp + 0x52], rax
mov qword [rsp + 0x5a], rax
mov qword [rsp + 0x62], rax
mov dword [rsp + 0x6a], eax
mov word [rsp + 0x6e], ax
nop dword [rax]
test rbx, rbx
je 0x14000873f
cmp rbx, 0xffffffffffffffff
jne 0x140008828
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 1
call qword [0x1400231b0]
mov rbx, rax
test rax, rax
je 0x140008778
cmp rax, 0xffffffffffffffff
jne 0x140008828
inc edi
cmp edi, 0x14
jg 0x140008828
lea rdx, [0x140023a4c]
lea rcx, [rsp + 0x48]
mov r8d, edi
call qword [0x1400236f8]
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0x70]
call qword [0x140023100]
lea r8, [rsp + 0x280]
mov r9d, 0x104
mov edx, 0x3f4
mov rcx, rsi
call qword [0x1400236e0]
lea rcx, [rsp + 0x280]
call qword [0x1400233c0]
test eax, eax
jne 0x1400087ee
lea rdx, str.Invitation
lea rcx, [rsp + 0x280]
call qword [0x140023100]
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x70]
call qword [0x140023108]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call qword [0x140023108]
lea rdx, str..inv
lea rcx, [rsp + 0x70]
call qword [0x140023108]
jmp 0x140008730
mov rdi, qword [rsp + 0x56d0]
test rbx, rbx
je 0x14000891f
cmp rbx, 0xffffffffffffffff
je 0x14000891f
lea r8, [rsp + 0x6a0]
mov r9d, 0x2800
mov edx, 0x3f0
mov rcx, rsi
call qword [0x1400236e0]
lea rcx, [rsp + 0x6a0]
call qword [0x1400233c0]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x6a0]
lea r8d, [rax + rax]
mov rcx, rbx
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x20], rbp
call qword [0x1400231a8]
mov rcx, rbx
call qword [0x140023130]
mov edx, 0x21e
mov ecx, 0x2040
call qword [0x140023120]
mov rbx, rax
test rax, rax
je 0x14000891f
mov rcx, rax
call qword [0x140023118]
test rax, rax
je 0x14000891f
lea rcx, [rax + 0x14]
lea rdx, [rsp + 0x70]
mov dword [rax], 0x14
mov dword [rax + 0xc], ebp
mov dword [rax + 0x10], 1
mov dword [rax + 4], ebp
mov dword [rax + 8], ebp
call qword [0x140023100]
mov rcx, rbx
call qword [0x140023110]
mov rcx, rsi
call qword [0x1400236d0]
test eax, eax
je 0x14000891f
call qword [0x1400236d8]
test eax, eax
je 0x14000891f
mov rdx, rbx
mov ecx, 0xf
call qword [0x1400236e8]
call qword [0x1400236f0]
mov eax, 1
jmp 0x140008921
xor eax, eax
mov rbx, qword [rsp + 0x56c8]
mov rcx, qword [rsp + 0x56a0]
xor rcx, rsp
call fcn.140012ba0
mov rbp, qword [rsp + 0x56d8]
add rsp, 0x56b0
pop rsi
ret