Function at 0x14006c9e0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x3f8
mov rax, qword [0x140125310]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov rsi, r9
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov r14, qword [rsp + 0x440]
mov rdx, r8
lea rcx, [rsp + 0x130]
call qword [sym.imp.DBInterface.dll_public:_void___cdecl_RecordsetWrapCOM::constructor_class_DatabaseWrapCOM____ptr64____ptr64]
nop
mov rdx, qword [rbx + 0xcb0]
lea rcx, [rsp + 0x80]
call qword [sym.imp.DBInterface.dll_public:_void___cdecl_RecordsetWrapCOM::constructor_class_DatabaseWrapCOM____ptr64____ptr64]
nop
lea rdx, [0x1401274f8]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
nop
lea rcx, [rbx + 0xa38]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
call qword [sym.imp.mfc140u.dll_CMFCToolBar::DrawButton]
nop
mov dword [rsp + 0x28], 9
lea rax, str.PredMetID
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, str.RecQty
lea rdx, str.SELECT_COUNT_PredMetID__AS__s_FROM__s_WHERE__s___d
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
xor r9d, r9d
mov r8, rax
lea edx, [r9 + 4]
lea rcx, [rsp + 0x130]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::Open_int__class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____int____ptr64]
lea r8, str.RecQty
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x130]
call qword [sym.imp.DBInterface.dll_public_virtual:_class_COleVariant___cdecl_RecordsetWrapCOM::GetFieldValue_wchar_t_const____ptr64____ptr64]
mov eax, dword [rax + 8]
mov dword [r14], eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
xor r9d, r9d
mov r8, rax
lea edx, [r9 + 4]
lea rcx, [rsp + 0x80]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::Open_int__class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____int____ptr64]
lea r8, str.RecQty
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x80]
call qword [sym.imp.DBInterface.dll_public_virtual:_class_COleVariant___cdecl_RecordsetWrapCOM::GetFieldValue_wchar_t_const____ptr64____ptr64]
mov eax, dword [rax + 8]
mov dword [rsi], eax
lea rcx, [rsp + 0x58]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rsp + 0x130]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::Close_void____ptr64]
lea rcx, [rsp + 0x80]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::Close_void____ptr64]
nop
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
cmp dword [rcx - 0x10], 0
je 0x14006cb7b
xor edx, edx
call fcn.14006b910
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCToolBar::DrawButton]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x130]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::destructor_void____ptr64]
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.1400c5ea0
add rsp, 0x3f8
pop r14
pop rdi
pop rsi
pop rbx
ret