Function at 0x140017a20
Capabilities:
Check for software breakpoints
Get graphical window text
Open clipboard
Read clipboard data

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1e8]
sub rsp, 0x2e0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140035868]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov dword [rsp + 0x30], r8d
mov esi, edx
mov rdi, rcx
mov ebx, 1
and dword [rsp + 0x40], 0
cmp dword [rcx + 0x3f0], 0
je 0x140017a90
call fcn.14001a9d0
mov rcx, rdi
call fcn.140018b00
mov rdx, rax
xor r8d, r8d
mov rcx, rdi
call fcn.140018b5c
mov rcx, rdi
call fcn.140018b00
mov rcx, rax
xor edx, edx
test rax, rax
je 0x140017b10
mov rax, qword [rax]
mov rax, qword [rax + 0x60]
call qword [0x140022358]
xor edx, edx
test eax, eax
jne 0x140017b10
mov rcx, qword [rdi + 0x48]
mov qword [rsp + 0x48], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [0x140022358]
xor edx, edx
test eax, eax
je 0x140017b10
mov dword [rsp + 0x40], ebx
mov edx, 0x7f02
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov rbx, rax
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [0x140022358]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetCursor]
mov ebx, 1
xor edx, edx
mov eax, 0x800c
cmp esi, eax
jg 0x140017d83
je 0x140017d6c
mov eax, 0x8000
cmp esi, eax
jg 0x140017c60
je 0x140017c35
cmp esi, 3
jl 0x140017ef4
cmp esi, 4
jle 0x140017ebb
cmp esi, 5
je 0x140017c21
mov eax, 0xcb
cmp esi, eax
je 0x140017bc5
mov eax, 0xcc
cmp esi, eax
je 0x140017b9a
cmp esi, 0xcd
je 0x140017b7c
cmp esi, 0xd1
je 0x140017c21
jmp 0x140017ef4
mov edx, 0xcd
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, ebx
jne 0x1400180b3
mov edx, 0xcc
jmp 0x140017bb3
mov edx, eax
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, ebx
jne 0x1400180b3
mov edx, 0xcd
xor r8d, r8d
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_CheckDlgButton]
jmp 0x1400180b3
cmp dword [rsp + 0x30], 0x300
jne 0x1400180b3
mov dword [rdi + 0x3f8], edx
mov edx, eax
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r8d, 0x104
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rdi + 0x408]
test eax, eax
lea rdx, [0x140022b28]
je 0x140017c0e
lea rdx, [rbp - 0x40]
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
mov rcx, rdi
call fcn.140016da0
jmp 0x140017ca6
mov rcx, rdi
call fcn.14001aabc
or dword [0x14003abe0], 0x20
jmp 0x1400180b3
cmp dword [rdi + 0x3a8], edx
je 0x140017c4d
xor r8d, r8d
mov edx, 0xe124
mov rcx, rdi
call fcn.140017a20
mov rcx, rdi
call fcn.140019990
or dword [0x14003abe0], ebx
jmp 0x1400180b3
sub esi, 0x8001
je 0x140017d58
sub esi, 1
je 0x140017d36
sub esi, 4
je 0x140017d22
sub esi, 4
je 0x140017cb3
cmp esi, 1
jne 0x140017ef4
cmp dword [rdi + 0x84], edx
je 0x1400180b3
mov dword [rdi + 0x84], edx
mov rcx, rdi
call fcn.1400197f0
mov rcx, rdi
call fcn.14001a29c
jmp 0x1400180b3
mov rcx, rdi
call fcn.140018b00
mov rbx, rax
test rax, rax
je 0x1400180d2
mov rax, qword [rax]
mov rcx, rbx
mov rax, qword [rax + 0x60]
call qword [0x140022358]
test eax, eax
jne 0x1400180d2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1009
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
lea edx, [r9 + 0x67]
mov rcx, rdi
call fcn.140019740
mov rax, qword [rbx]
xor r8d, r8d
mov rdx, qword [rdi + 0x48]
mov rcx, rbx
mov rax, qword [rax + 0xb8]
call qword [0x140022358]
jmp 0x1400180d2
mov rcx, rdi
call fcn.140019cac
or dword [0x14003abe0], 4
jmp 0x1400180b3
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400180b3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1400180b3
mov rcx, rdi
call fcn.140019afc
or dword [0x14003abe0], 2
jmp 0x1400180b3
cmp dword [rdi + 0x84], edx
jne 0x1400180b3
mov dword [rdi + 0x84], ebx
jmp 0x140017c9e
mov eax, 0x8017
cmp esi, eax
jg 0x140017ec8
je 0x140017e63
sub esi, 0x800d
je 0x140017e40
sub esi, 3
je 0x140017ddc
sub esi, 1
je 0x140017dc8
sub esi, 1
je 0x1400180b3
cmp esi, 2
jne 0x140017ef4
call fcn.14001bc84
jmp 0x1400180b3
mov rcx, rdi
call fcn.140018104
or dword [0x14003abe0], 0x10
jmp 0x1400180b3
mov rcx, rdi
call fcn.140018b00
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x1400180b3
xor esi, esi
mov eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x70], 2
mov dword [rsp + 0x6c], 2
lea r9, [rsp + 0x60]
mov r8, rsi
mov edx, 0x102b
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsi, rbx
sub qword [rsp + 0x38], rbx
jne 0x140017e0a
jmp 0x1400180b3
mov qword [rsp + 0x20], rdx
lea r9, [0x1400056e0]
mov r8, qword [rdi + 8]
mov edx, 0xcd
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x1400180b3
call qword [sym.imp.USER32.dll_GetFocus]
cmp dword [rdi + 0x3a8], 0
je 0x1400180b3
cmp rax, qword [rdi + 0x3d8]
je 0x140017ebb
cmp rax, qword [rdi + 0x3e8]
je 0x140017ebb
mov rcx, qword [rdi + 0x3d0]
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x140017eae
mov rcx, qword [rdi + 0x3e0]
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1400180b3
mov rcx, rdi
call fcn.14001aabc
jmp 0x1400180b3
mov rcx, rdi
call fcn.14001aa6c
jmp 0x1400180b3
sub esi, 0xe102
je 0x140018093
sub esi, 5
je 0x140018082
sub esi, 0x1b
je 0x140018078
sub esi, 2
je 0x140018030
cmp esi, 1
je 0x140017efb
mov ebx, edx
jmp 0x1400180b3
mov rsi, qword [rdi + 0x3b8]
call qword [sym.imp.USER32.dll_GetFocus]
cmp rax, rsi
jne 0x1400180b3
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1400180b3
mov rcx, qword [rdi + 0x3b8]
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1400180b3
and dword [rsp + 0x30], 0
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140018013
mov esi, SafeArrayGetElemsize
mov ecx, esi
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140018002
mov ecx, esi
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rsi, rax
test rax, rax
je 0x140018002
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140018002
mov rdx, rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDaoException::CDaoException]
nop
mov edx, 9
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CRichEditView::FindTextSimple]
cmp eax, 0xffffffff
je 0x140017fbd
mov edx, 9
lea r8d, [rdx + 0x17]
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CFontHolder::SetFont]
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x4c], 0x4b0
mov r9, qword [rsp + 0x38]
lea r8, [rsp + 0x48]
mov edx, AfxDaoGetEngine
mov rcx, qword [rdi + 0x3b8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rsp + 0x30], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
call qword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [rsp + 0x30], 0
jne 0x1400180b3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x302
mov rcx, qword [rdi + 0x3b8]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1400180b3
mov eax, edx
cmp dword [rdi + 0x3a8], edx
sete al
mov dword [rdi + 0x3a8], eax
and qword [rdi + 0x3f4], 0
mov qword [rdi + reloc.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef], rdx
mov dword [rdi + 0x3f0], edx
mov rcx, rdi
call fcn.140016c70
mov rcx, rdi
call fcn.140016980
mov rcx, rdi
call fcn.14001a29c
mov rcx, rdi
call fcn.140016da0
jmp 0x1400180b3
mov rcx, rdi
call fcn.14001a5f0
jmp 0x1400180b3
mov rcx, rdi
call fcn.14001a814
or dword [0x14003abe0], 8
jmp 0x1400180b3
cmp dword [rdi + 0x3a8], edx
je 0x1400180ab
xor r8d, r8d
mov edx, 0xe124
mov rcx, rdi
call fcn.140017a20
mov rcx, rdi
call fcn.140017828
cmp dword [rsp + 0x40], 0
je 0x1400180d7
mov rcx, rdi
call fcn.140018b00
mov rdx, rax
xor r8d, r8d
mov rcx, rdi
call fcn.140018b5c
jmp 0x1400180d7
mov ebx, 1
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14001c820
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret