Function at 0x14002dd50
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov r14, rcx
mov qword [0x14019d530], rcx
mov rax, qword [rcx + 0x1c8]
mov esi, dword [rax + 0x20]
movabs rax, 0x3ff0000000000000
mov qword [rcx + 0x13cd0], rax
movsd xmm8, qword [0x140135210]
movaps xmm6, xmm8
movaps xmm7, xmm8
mov ecx, 0x1a8
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
mov qword [rbp + 0x98], rax
xor r15d, r15d
test rax, rax
je 0x14002ddd8
mov rcx, rax
call fcn.14000c680
mov r12, rax
jmp 0x14002dddb
mov r12, r15
mov ecx, 0x38
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
mov qword [rbp + 0x98], rax
test rax, rax
je 0x14002de01
mov edx, 0xa
mov rcx, rax
call sub.mfc140u.dll_CMFCZoomKernel::CMFCZoomKernel
mov r15, rax
lea rcx, [r14 + 0x13c88]
lea rdx, [0x140138650]
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov rdi, qword [r14 + 0x158]
test rdi, rdi
je 0x14002de89
mov rbx, qword [rdi + 0x10]
mov rdi, qword [rdi]
test rbx, rbx
je 0x14002de84
mov qword [rbx + 8], r14
mov rcx, qword [rbx + 0x1d0]
test rcx, rcx
je 0x14002de84
call fcn.14000dfe0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
lea rcx, [rbp - 0x10]
call fcn.14000b9e0
nop
mov rcx, qword [rbx + 0x1d0]
add rcx, 0x88
lea rdx, [rbp - 0x10]
call sub.mfc140u.dll_CPaneFrameWnd::AddRemovePaneFromGlobalList
mov rdx, qword [rbx + 0x1d0]
mov rcx, r15
call sub.mfc140u.dll_CPaneFrameWnd::AddRemovePaneFromGlobalList
nop
lea rcx, [rbp - 0x10]
call fcn.14000c060
test rdi, rdi
jne 0x14002de21
mov r9d, 1
mov r8, r12
mov rdx, r15
mov rcx, r14
call fcn.14002f3b0
mov rax, qword [r12 + 0x38]
mov qword [r14 + 0x13cd0], rax
mov rdi, qword [r14 + 0x158]
test rdi, rdi
je 0x14002df2d
mov rbx, qword [rdi + 0x10]
mov rdi, qword [rdi]
test rbx, rbx
je 0x14002deb0
mov qword [rbx + 8], r14
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
mov edx, eax
cmp esi, 1
jne 0x14002def4
mov rcx, qword [rbx + 0x1d0]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movsd xmm0, qword [rcx + 0x40]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
mulsd xmm6, xmm0
jmp 0x14002deb0
cmp esi, 2
je 0x14002df26
cmp esi, 5
je 0x14002df26
cmp esi, 3
jne 0x14002deb0
mov rax, qword [rbx + 0x1d0]
movaps xmm0, xmm8
subsd xmm0, qword [rax + 0x40]
movd xmm1, edx
cvtdq2pd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
mulsd xmm7, xmm0
jmp 0x14002deb0
movsd xmm6, qword [r12 + 0x40]
cmp esi, 3
jne 0x14002df3a
movaps xmm6, xmm8
subsd xmm6, xmm7
movsd xmm0, qword [r12 + 0x108]
movsd xmm7, qword [0x140135280]
comisd xmm0, xmmword [0x1401351e8]
jbe 0x14002df5e
movaps xmm7, xmm8
divsd xmm7, xmm0
mov rax, qword [r14 + 0x1c8]
mov edi, dword [rax + 8]
mov rax, qword [0x14019d568]
mov ebx, dword [rax + 0x234]
lea rcx, [rbp + 0x90]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov r9d, edi
mov r8d, ebx
lea rdx, str.DELETE_FROM__PMO_Results__WHERE__CondID_ld_AND_BlockID1_
lea rcx, [rbp + 0x90]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
mov rax, qword [0x14019d568]
mov rcx, qword [rax + 0x298]
mov rax, qword [rcx]
mov r8d, InitCommonControls
mov rdx, qword [rbp + 0x90]
call qword [rax + 0x28]
mov rdx, qword [0x14019d568]
mov rdx, qword [rdx + 0x298]
lea rcx, [rsp + 0x40]
call qword [sym.imp.DBInterface.dll_public:_void___cdecl_RecordsetWrapCOM::constructor_class_DatabaseWrapCOM____ptr64____ptr64]
nop
lea rdx, str.SELECT__FROM__PMO_Results_
lea rcx, [rbp + 0x98]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__12]
xor r9d, r9d
mov r8, rax
lea edx, [r9 + 2]
lea rcx, [rsp + 0x40]
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 + 0x40]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::AddNew_void____ptr64]
mov r8d, 3
mov edx, ebx
lea rcx, [rsp + 0x20]
call sub.mfc140u.dll_COleSafeArray::COleSafeArray
nop
mov r8, rax
lea rdx, str.CondID
lea rcx, [rsp + 0x40]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::SetFieldValue_wchar_t_const____ptr64__class_COleVariant_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov r8d, 3
mov edx, edi
lea rcx, [rsp + 0x20]
call sub.mfc140u.dll_COleSafeArray::COleSafeArray
nop
mov r8, rax
lea rdx, str.BlockID
lea rcx, [rsp + 0x40]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::SetFieldValue_wchar_t_const____ptr64__class_COleVariant_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
xor edx, edx
lea r8d, [rdx + 3]
lea rcx, [rsp + 0x20]
call sub.mfc140u.dll_COleSafeArray::COleSafeArray
nop
mov r8, rax
lea rdx, [0x140135094]
lea rcx, [rsp + 0x40]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::SetFieldValue_wchar_t_const____ptr64__class_COleVariant_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
movsd xmm0, qword [r14 + 0x13cd0]
mov esi, 5
mov word [rsp + 0x20], si
movsd qword [rsp + 0x28], xmm0
lea r8, [rsp + 0x20]
lea rdx, [0x140135088]
lea rcx, [rsp + 0x40]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::SetFieldValue_wchar_t_const____ptr64__class_COleVariant_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov word [rsp + 0x20], si
movsd qword [rsp + 0x28], xmm6
lea r8, [rsp + 0x20]
lea rdx, [0x14013508c]
lea rcx, [rsp + 0x40]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::SetFieldValue_wchar_t_const____ptr64__class_COleVariant_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [rsi - 4]
lea r8d, [rsi - 2]
lea rcx, [rsp + 0x20]
call sub.mfc140u.dll_COleSafeArray::COleSafeArray
nop
mov r8, rax
lea rdx, str.Optimum
lea rcx, [rsp + 0x40]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::SetFieldValue_wchar_t_const____ptr64__class_COleVariant_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rsp + 0x40]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::Update_void____ptr64]
lea rcx, [rsp + 0x40]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::Close_void____ptr64]
mov r9d, ebx
mov r8d, edi
lea rdx, str.SELECT__FROM__Block_Data_Ex__WHERE__BlockID_ld_AND_CondID_ld_
lea rcx, [rbp + 0x90]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x98]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__11]
xor r9d, r9d
mov r8, rax
lea edx, [rsi - 3]
lea rcx, [rsp + 0x40]
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 + 0x40]
call qword [sym.imp.DBInterface.dll_public_virtual:_long_int___cdecl_RecordsetWrapCOM::GetRecordCount_void_const___ptr64]
test eax, eax
je 0x14002e1ee
lea rcx, [rsp + 0x40]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::Edit_void____ptr64]
mov word [rsp + 0x20], si
movsd qword [rsp + 0x28], xmm7
lea r8, [rsp + 0x20]
lea rdx, str.MTBFcalc
lea rcx, [rsp + 0x40]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::SetFieldValue_wchar_t_const____ptr64__class_COleVariant_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rsp + 0x40]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::Update_void____ptr64]
lea rcx, [rsp + 0x40]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::Close_void____ptr64]
mov rax, qword [r12]
mov edx, 1
mov rcx, r12
call qword [rax + VariantCopy]
test r15, r15
je 0x14002e21c
mov rax, qword [r15]
mov edx, 1
mov rcx, r15
call qword [rax + VariantCopy]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x90]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret