Function at 0x140104ce0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x14039e2e8]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r13, r8
movzx r14d, dl
mov byte [rsp + 0x31], r14b
mov r12, rcx
mov qword [rsp + 0x50], rcx
xor r15d, r15d
mov dword [rsp + 0x58], r15d
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r9, rax
mov qword [rsp + 0x20], r15
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xe0]
call fcn.14012f020
nop
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
call fcn.14015a800
movzx esi, al
mov byte [rsp + 0x30], al
mov rdi, qword [r12 + 0x10]
mov qword [rsp + 0x80], rdi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildClipIds.cpp
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rbx, rax
mov r9d, r14d
mov r8, rdi
lea rdx, str.Begin_delete_clips__Count:__d_from_Window:__d
lea rcx, [rsp + 0x48]
call fcn.14015b330
nop
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
nop
mov r9d, ATL::CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char>
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14015b6c0
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
test rdi, rdi
jle 0x14010536d
lea rdx, str.DELETE_FROM_Main_where_lId_in_
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
nop
lea rdx, [0x1402ac320]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
nop
lea rdx, str.Deleting_clips__building_query_statement
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__15]
nop
mov qword [rsp + 0x48], r15
test sil, sil
je 0x140104e30
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.14012f5f0
mov r14, r15
cmp r14, rdi
jge 0x140105181
test r14, r14
js 0x14010539f
cmp r14, qword [r12 + 0x10]
jge 0x14010539f
mov rax, qword [r12 + 8]
mov r12d, dword [rax + r14*4]
test r12d, r12d
jle 0x140105174
lea rax, [rsp + 0x90]
mov qword [rsp + 0x58], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildClipIds.cpp
lea rcx, [rsp + 0x90]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rbx, rax
mov r8d, r12d
lea rdx, str.Delete_clip_Id:__d
lea rcx, [rsp + 0x98]
call fcn.14015b330
nop
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
nop
mov r9d, 0x14f
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14015b6c0
nop
lea rcx, [rsp + 0x98]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
xor bl, bl
mov r9d, r12d
lea r8, str.SELECT_bIsGroup_FROM_Main_WHERE_lId___d
lea rdx, [rsp + 0xb0]
mov rcx, r13
call fcn.140143da0
nop
lea rcx, [rsp + 0xb0]
call fcn.1401437b0
test al, al
sete dil
test al, al
jne 0x140104f1b
xor r8d, r8d
lea rdx, str.bIsGroup
lea rcx, [rsp + 0xb0]
call fcn.140144630
test eax, eax
setg bl
lea rcx, [rsp + 0xb0]
call fcn.140143000
test dil, dil
je 0x140104f99
test bl, bl
je 0x140104f43
mov r8d, r12d
lea rdx, str.UPDATE_Main_SET_lParentID___1_WHERE_lParentID___d_
mov rcx, r13
call fcn.140143b90
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
test eax, eax
jle 0x140104f64
lea rdx, [0x1402b0b5c]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator]
mov r8d, r12d
lea rdx, [0x1402c334c]
lea rcx, [rsp + 0xa0]
call fcn.14015b330
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_1667]
nop
lea rcx, [rsp + 0xa0]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
test r14, r14
jle 0x140105156
movabs rax, 0xa3d70a3d70a3d70b
imul r14
add rdx, r14
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rcx, rdx, 0x19
cmp r14, rcx
jne 0x140105156
test sil, sil
je 0x14010500e
mov r8, qword [rsp + 0x48]
inc r8
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, r14
lea rdx, str.Deleting__d____d_of__d...
lea rcx, [rsp + 0x88]
call fcn.14015b330
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.14012f5f0
mov qword [rsp + 0x48], r14
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_CMFCRibbonUndoButton::GetIconSize]
mov rdx, rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_Ordinal_285]
or r15d, 4
mov dword [rsp + 0x58], r15d
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov esi, eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rdi, rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov ebx, eax
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov dword [rsp + 0x20], esi
mov r9, rdi
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCTasksPane::CollapseAllGroups_1]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonUndoButton::GetIconSize]
mov rdx, rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_Ordinal_285]
or r15d, 8
mov dword [rsp + 0x58], r15d
lea rcx, [0x1402c3354]
call qword [sym.imp.mfc140u.dll_CCheckListBox::SetSelectionCheck]
mov edi, eax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov ebx, eax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov dword [rsp + 0x20], edi
lea r9, [0x1402c3354]
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_CMFCTasksPane::CollapseAllGroups_1]
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rdx, rax
mov rcx, r13
call fcn.140143b90
and r15d, 0xfffffff7
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
and r15d, 0xfffffffb
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rdx, [0x1402b04e8]
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XPanel::XPanel]
movzx esi, byte [rsp + 0x30]
test sil, sil
je 0x140105156
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.14012f5f0
cmp byte [rsp + 0x31], 0
jne 0x14010516c
mov edx, r12d
lea rcx, [0x1403c4350]
call fcn.14010bc80
mov rdi, qword [rsp + 0x80]
inc r14
mov r12, qword [rsp + 0x50]
jmp 0x140104e33
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
test eax, eax
jle 0x1401052d4
test sil, sil
je 0x1401051cb
mov r8, qword [rsp + 0x48]
inc r8
mov qword [rsp + 0x20], rdi
mov r9, r14
lea rdx, str.Deleting__d____d_of__d...
lea rcx, [rsp + 0x50]
call fcn.14015b330
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.14012f5f0
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_CMFCRibbonUndoButton::GetIconSize]
mov rdx, rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_Ordinal_285]
or r15d, 1
mov dword [rsp + 0x58], r15d
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov esi, eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rdi, rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov ebx, eax
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov dword [rsp + 0x20], esi
mov r9, rdi
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCTasksPane::CollapseAllGroups_1]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonUndoButton::GetIconSize]
mov rdx, rax
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_Ordinal_285]
or r15d, 2
mov dword [rsp + 0x58], r15d
lea rcx, [0x1402c3354]
call qword [sym.imp.mfc140u.dll_CCheckListBox::SetSelectionCheck]
mov edi, eax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
mov ebx, eax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov dword [rsp + 0x20], edi
lea r9, [0x1402c3354]
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CMFCTasksPane::CollapseAllGroups_1]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
mov rdx, rax
mov rcx, r13
call fcn.140143b90
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rdi, qword [rsp + 0x80]
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
lea rdx, str.C:UsersScottBrAppDataLocalTempDitto_BuildClipIds.cpp
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
mov rbx, rax
mov r8, rdi
lea rdx, str.End_delete_clips__Count:__d
lea rcx, [rsp + 0x68]
call fcn.14015b330
nop
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator___3]
nop
mov r9d, 0x191
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14015b6c0
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0xe0]
call fcn.14012f0d0
mov eax, 1
jmp 0x14010537c
lea rcx, [rsp + 0xe0]
call fcn.14012f0d0
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1402654f0
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
call sub.mfc140u.dll_AfxRegDeleteKey
nop
int3