Function at 0x140146420
Capabilities:
Reference sql statements

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x80
mov rdi, rdx
mov esi, ecx
lea rax, [r11 + 0x18]
mov qword [r11 - 0x68], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildDatabaseUtilities.cpp
lea rcx, [r11 + 0x18]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rbx, rax
mov r8d, esi
lea rdx, str.Start_of_ReOrderStickyClips__ParentId__d
lea rcx, [rsp + 0xa8]
call fcn.14015b330
nop
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
nop
mov r9d, 0xe6
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14015b6c0
nop
lea rcx, [rsp + 0xa8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
cmp esi, 0xffffffff
jne 0x1401464bb
lea rdx, str.Update_Main_Set_stickyClipOrder____2147483647__where_bIsGroup__1_AND_stickyClipOrder__0
mov rcx, rdi
call fcn.140143b90
lea rdx, str.Update_Main_Set_stickyClipGroupOrder____2147483647__where_bIsGroup__1_AND_stickyClipGroupOrder__0
mov rcx, rdi
call fcn.140143b90
mov r9d, esi
lea r8, str.SELECT_lID__mText_FROM_Main_WHERE_bIsGroup__1_AND_lParentID___d
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.140143da0
nop
lea rcx, [rsp + 0x58]
call fcn.1401437b0
test al, al
jne 0x140146628
lea rcx, [rsp + 0x58]
call fcn.1401437b0
test al, al
jne 0x140146628
mov r8d, esi
lea rdx, str.SELECT_lID_FROM_Main_WHERE_stickyClipOrder______2147483647__AND_lParentID___d_ORDER_BY_stickyClipOrder_DESC
lea rcx, [rsp + 0xa0]
call fcn.14015b330
nop
cmp esi, 0xffffffff
jle 0x14014654c
mov r8d, esi
lea rdx, str.SELECT_lID_FROM_Main_WHERE_stickyClipGroupOrder______2147483647__AND_lParentID___d_ORDER_BY_stickyClipGroupOrder_DESC
lea rcx, [rsp + 0xa8]
call fcn.14015b330
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0xa8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140143da0
nop
mov ebx, 1
lea rcx, [rsp + 0x30]
call fcn.1401437b0
test al, al
jne 0x1401465e1
nop
lea rcx, [rsp + 0x30]
call fcn.1401437b0
test al, al
jne 0x1401465e1
xor r8d, r8d
lea rdx, [0x1402bee18]
lea rcx, [rsp + 0x30]
call fcn.140144630
cmp esi, 0xffffffff
jle 0x1401465be
mov r9d, eax
mov r8d, ebx
lea rdx, str.Update_Main_Set_stickyClipGroupOrder___d_where_lID___d
mov rcx, rdi
call fcn.140143b90
jmp 0x1401465d3
mov r9d, eax
mov r8d, ebx
lea rdx, str.Update_Main_Set_stickyClipOrder___d_where_lID___d
mov rcx, rdi
call fcn.140143b90
lea rcx, [rsp + 0x30]
call fcn.1401446f0
dec ebx
jmp 0x140146580
xor r8d, r8d
lea rdx, [0x1402bee18]
lea rcx, [rsp + 0x58]
call fcn.140144630
mov rdx, rdi
mov ecx, eax
call fcn.140146420
lea rcx, [rsp + 0x58]
call fcn.1401446f0
nop
lea rcx, [rsp + 0x30]
call fcn.140143000
nop
lea rcx, [rsp + 0xa0]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
jmp 0x1401464e5
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildDatabaseUtilities.cpp
lea rcx, [rsp + 0xa0]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rbx, rax
mov r8d, esi
lea rdx, str.End_of_ReOrderStickyClips__ParentId__d
lea rcx, [rsp + 0xa8]
call fcn.14015b330
nop
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
nop
mov r9d, ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14015b6c0
nop
lea rcx, [rsp + 0xa8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x58]
call fcn.140143000
nop
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret