Function at 0x14018ead0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x190
mov rax, qword [0x14039e2e8]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r15, r8
movsxd rbx, edx
mov r14, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x78], r8
call fcn.140168e90
test al, al
je 0x14018ee97
call sub.mfc140u.dll_AfxFieldText
mov rcx, qword [rax + 8]
call sub.mfc140u.dll_Ordinal_2514
nop
lea rax, [r14 + 0x878]
mov qword [rsp + 0x80], rax
mov byte [rax], 0
lea rcx, [rsp + 0x88]
call fcn.140006750
lea rax, vtable.CClipIDs.0
mov qword [rsp + 0x88], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1032
mov rcx, qword [r14 + 0x3b8]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x14018ee7e
lea rcx, [r14 + 0x378]
lea rdx, [rsp + 0x88]
call fcn.140233fb0
mov r13, qword [rsp + 0x98]
test r13, r13
jle 0x14018ee7e
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov byte [rsp + 0x70], 1
mov rdx, r15
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rdx, [0x1402ac320]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_Ordinal_2903]
nop
test eax, eax
jne 0x14018ec11
mov rdx, rbx
shl rdx, 5
lea rax, [0x1403c53e8]
add rdx, rax
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rdx, [0x1402ac320]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_Ordinal_2903]
nop
test eax, eax
je 0x14018ee0b
mov qword [rsp + 0x20], 0
mov r9, qword [r14 + 0x40]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xf0]
call fcn.14012f020
nop
mov r8, qword [rsp + 0x58]
lea rdx, str.Sending_clip_to__s
lea rcx, [rsp + 0x38]
call fcn.14015b330
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.14012f5f0
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x60], rax
mov ecx, gethostname
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
mov rbx, rax
test rbx, rbx
je 0x14018eca8
mov edx, 0xa
mov rcx, rax
call fcn.14000cf80
lea rax, vtable.CClipList.0
mov qword [rbx], rax
mov qword [rsp + 0x50], rbx
xor edi, edi
nop
movsxd rax, edi
cmp rax, r13
jge 0x14018ed97
lea r14, [rax*4]
mov rax, qword [rsp + 0x90]
mov r9d, dword [r14 + rax]
lea r8, str.SELECT_mText_FROM_Main_WHERE_lID___d
lea rdx, [rsp + 0xc0]
lea rcx, [0x1403c44c8]
call fcn.140143da0
nop
lea rcx, [rsp + 0xc0]
call fcn.1401437b0
test al, al
jne 0x14018ed83
mov ecx, reloc.OLEAUT32.dll_VariantTimeToSystemTime
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14018ed22
mov rcx, rax
call fcn.1400fa810
mov rbx, rax
jmp 0x14018ed24
xor ebx, ebx
test rbx, rbx
je 0x14018ed83
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rsp + 0x90]
mov edx, dword [r14 + rax]
mov rcx, rbx
call fcn.1400fdae0
lea r8, [0x1402ac320]
xor edx, edx
lea rcx, [rsp + 0xc0]
call fcn.140144660
lea rcx, [rbx + 0x48]
mov rdx, rax
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov rax, qword [rsp + 0x90]
mov ecx, dword [r14 + rax]
mov dword [rbx + 8], ecx
mov rdx, rbx
mov rcx, qword [rsp + 0x50]
call fcn.14000d260
nop
lea rcx, [rsp + 0xc0]
call fcn.140143000
inc edi
jmp 0x14018ecb0
lea rcx, [rsp + 0x50]
call fcn.140244900
test eax, eax
jne 0x14018edf2
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x58]
lea rdx, str.Error_Sending_data_to__s_n_n_s
lea rcx, [rsp + 0x38]
call fcn.14015b330
nop
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rdx, rax
mov r9d, 0x40000
lea r8, [0x1402ac728]
mov rcx, qword [rsp + 0x48]
call sub.mfc140u.dll_CMFCRibbonStatusBar::LoadState
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
jmp 0x14018edfd
mov r12d, 1
mov dword [rsp + 0x40], r12d
lea rcx, [rsp + 0xf0]
call fcn.14012f0d0
nop
jmp 0x14018ee17
mov rax, qword [rsp + 0x80]
mov byte [rax], 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14018ee40
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x88]
call fcn.140006800
nop
lea rcx, [rsp + 0x30]
call fcn.1400075a0
nop
mov rcx, r15
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, r12d
jmp 0x14018eea2
lea rcx, [rsp + 0x88]
call fcn.140006800
nop
lea rcx, [rsp + 0x30]
call fcn.1400075a0
nop
mov rcx, r15
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1402654f0
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
ret