Function at 0x140009590
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
lea rdx, [0x14005d7d8]
mov rbx, rcx
mov edi, 1
call fcn.140009320
xor esi, esi
mov r14, rax
test rax, rax
jne 0x1400095ca
mov edi, esi
jmp 0x140009739
test byte [0x14005da04], 2
je 0x14000961c
mov rdx, qword [rax]
mov qword [rsp + 0x30], rbp
test rdx, rdx
je 0x140009615
call fcn.140015f80
mov rbp, rax
test rax, rax
je 0x140009615
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140009615
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rbp
mov ecx, 8
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x140009617
mov edi, esi
mov rbp, qword [rsp + 0x30]
test byte [0x14005da04], 8
je 0x1400096aa
lea rcx, [r14 + 8]
call qword [sym.imp.CrlUtils.dll_bool___cdecl_SystemIO::File::Exists_wchar_t_const____ptr64_]
test al, al
je 0x14000965a
cmp dword [0x14005ee9c], esi
je 0x14000965a
mov edx, 1
mov dword [rbx + 0x22c], 2
mov rcx, rbx
call fcn.14000a0f0
test eax, eax
je 0x1400096aa
mov rcx, qword [0x140060a30]
mov r8, r14
call fcn.140018750
test eax, eax
jne 0x140009685
mov dword [rbx + 0x228], 5
mov edi, esi
mov dword [rbx + 0x22c], 1
jmp 0x1400096aa
cmp dword [0x14005ee2c], esi
je 0x1400096aa
mov ecx, dword [0x14005ee3c]
mov eax, ecx
inc ecx
mov dword [0x14005ee3c], ecx
cmp eax, 0x3e7
jl 0x1400096aa
mov dword [0x14005ee3c], esi
test byte [0x14005da04], 4
je 0x1400096c0
mov r8, r14
call fcn.140018960
test eax, eax
cmove edi, esi
test byte [0x14005da04], 0x40
je 0x1400096e9
mov rdx, rsi
test rbx, rbx
je 0x1400096d5
mov rdx, qword [rbx + 0x40]
mov rcx, qword [0x140060a30]
mov r8, r14
call fcn.140017de0
test eax, eax
cmove edi, esi
test byte [0x14005da04], 0x20
cmovne edi, esi
test byte [0x14005da04], 0x10
je 0x140009739
mov r8, r14
call fcn.140018370
test eax, eax
jne 0x14000970c
mov edi, esi
jmp 0x140009739
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_SetActiveWindow]
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CMFCRibbonComboBox::FindItem]
lea rdx, str.Corel_CAPTURE_2022
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCToolBar::SetOrigButtons]
cmp dword [0x14005f0d4], 0
jne 0x140009790
mov ecx, dword [0x14005dc2c]
sub ecx, 3
je 0x140009783
sub ecx, 1
je 0x14000977a
cmp ecx, 1
jne 0x140009790
lea rcx, [0x14005dc2c]
call qword [sym.imp.Caphk.dll_void___cdecl_CAPFreePolyPoints_struct_SOURCE_CAPTUREINFO____ptr64_]
lea rcx, [rbx + 0x2a0]
call qword [sym.imp.USER32.dll_SetRectEmpty]
lea rcx, [0x14005ddcc]
jmp 0x14000978a
lea rcx, [rbx + 0x290]
jmp 0x14000978a
lea rcx, [rbx + 0x280]
call qword [sym.imp.USER32.dll_SetRectEmpty]
test r14, r14
je 0x1400097d1
mov rbx, qword [r14]
test rbx, rbx
je 0x1400097d1
mov rcx, rbx
call qword [sym.imp.CdrRip.dll_struct___RPALETTE____ptr64___cdecl_RIPGetPalette_struct__RIMAGE____ptr64_]
test rax, rax
je 0x1400097c8
mov rcx, rbx
call qword [sym.imp.CdrRip.dll_struct___RPALETTE____ptr64___cdecl_RIPGetPalette_struct__RIMAGE____ptr64_]
mov rcx, rax
call qword [sym.imp.CdrRip.dll_int___cdecl_RIPDestroyPalette_struct___RPALETTE____ptr64_]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.CdrRip.dll_void___cdecl_RIPSetPalette_struct__RIMAGE____ptr64__struct___RPALETTE____ptr64_]
mov rcx, rbx
call qword [sym.imp.CdrRip.dll_int___cdecl_RIPDestroyImage_struct__RIMAGE____ptr64_]
mov rcx, r14
mov qword [r14], rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret