Function at 0x140072270
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov r12, rdx
mov rbx, rcx
xor r13d, r13d
mov dword [rbp + 0x60], r13d
mov rcx, rdx
call qword [sym.imp.mfc140u.dll_CMFCRibbonUndoButton::GetIconSize]
mov rdx, rax
lea rcx, [rbp + 0x70]
call qword [sym.imp.mfc140u.dll_Ordinal_285]
mov dword [rbp + 0x60], 1
mov r9, qword [r12]
mov ecx, dword [r9 - 0x10]
lea rdx, str.SELECT__FROM_FRCalcList_WHERE_CondName
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400722d0
mov dword [rsp + 0x20], ecx
mov r8d, eax
lea rcx, [rbp + 0x70]
call qword [sym.imp.mfc140u.dll_CMFCTasksPane::CollapseAllGroups]
lea r8, [0x1400ee464]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x78]
call fcn.140058bb0
nop
lea rcx, [rbp + 0x70]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rdx, qword [rbx + 0xcb0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.DBInterface.dll_public:_void___cdecl_RecordsetWrapCOM::constructor_class_DatabaseWrapCOM____ptr64____ptr64]
nop
lea rdx, [rbp + 0x78]
lea rcx, [rbp + 0x60]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
xor r9d, r9d
mov r8, rax
lea edx, [r9 + 4]
lea rcx, [rsp + 0x60]
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 rcx, [rsp + 0x60]
call qword [sym.imp.DBInterface.dll_public_virtual:_long_int___cdecl_RecordsetWrapCOM::GetRecordCount_void_const___ptr64]
test eax, eax
je 0x140072504
lea rcx, [rsp + 0x60]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::MoveFirst_void____ptr64]
lea rcx, [rsp + 0x60]
call qword [sym.imp.DBInterface.dll_public_virtual:_int___cdecl_RecordsetWrapCOM::IsEOF_void____ptr64]
test eax, eax
jne 0x140072504
lea r14, [rbx + 0xed0]
movabs rdi, 0xdd67c8a60dd67c
lea r8, str.PredMetID
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call qword [sym.imp.DBInterface.dll_public_virtual:_class_COleVariant___cdecl_RecordsetWrapCOM::GetFieldValue_wchar_t_const____ptr64____ptr64]
mov r15d, dword [rax + 8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea r8, str.CompID
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call qword [sym.imp.DBInterface.dll_public_virtual:_class_COleVariant___cdecl_RecordsetWrapCOM::GetFieldValue_wchar_t_const____ptr64____ptr64]
mov ebx, dword [rax + 8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rsi, qword [r14]
mov rax, qword [rsi + 8]
mov rdx, rsi
movzx r8d, byte [rax + 0x19]
test r8b, r8b
jne 0x1400723fb
mov rcx, rax
cmp dword [rcx + 0x20], ebx
jge 0x1400723ef
mov rcx, qword [rcx + 0x10]
jmp 0x1400723f5
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x1400723e4
cmp byte [rdx + 0x19], 0
jne 0x1400724e6
cmp ebx, dword [rdx + 0x20]
jl 0x1400724e6
cmp rdx, rsi
je 0x1400724e6
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], r13d
mov rcx, rsi
test r8b, r8b
jne 0x140072459
nop dword [rax]
mov qword [rsp + 0x30], rax
cmp dword [rax + 0x20], ebx
jge 0x140072445
mov dword [rsp + 0x38], r13d
mov rax, qword [rax + 0x10]
jmp 0x140072453
mov dword [rsp + 0x38], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140072430
cmp byte [rcx + 0x19], 0
jne 0x140072464
cmp ebx, dword [rcx + 0x20]
jge 0x1400724df
cmp qword [r14 + 8], rdi
je 0x140072544
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r13
mov ecx, ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
mov rdi, rax
mov dword [rax + 0x20], ebx
xor edx, edx
mov r8d, SerializeElements<ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
lea rcx, [rax + 0x28]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rdi + 0x28]
call fcn.1400548e0
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
mov word [rdi + 0x18], 0
mov qword [rsp + 0x58], r13
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm0
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140076730
mov rcx, rax
movabs rdi, 0xdd67c8a60dd67c
mov dword [rcx + 0x120], r15d
lea rcx, [rsp + 0x60]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::MoveNext_void____ptr64]
lea rcx, [rsp + 0x60]
call qword [sym.imp.DBInterface.dll_public_virtual:_int___cdecl_RecordsetWrapCOM::IsEOF_void____ptr64]
test eax, eax
je 0x140072382
lea rcx, [rsp + 0x60]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::Close_void____ptr64]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x78]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rcx, r12
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140050470
nop
int3