Function at 0x140012930
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x98]
sub rsp, 0x198
mov rsi, rcx
xor r13d, r13d
mov edi, r13d
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov r8d, dword [rsi + 0x234]
lea rdx, str.SELECT__FROM__Spare_Fixed_Qty__WHERE__CondID_ld_AND_InitSpareNum___0__ORDER_BY_PartNumID
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
mov rdx, qword [rsi + 0x298]
lea rcx, [rbp - 0x20]
call qword [sym.imp.DBInterface.dll_public:_void___cdecl_RecordsetWrapCOM::constructor_class_DatabaseWrapCOM____ptr64____ptr64]
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0xe8]
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, [r13 + 4]
lea rcx, [rbp - 0x20]
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, [rbp - 0x20]
call qword [sym.imp.DBInterface.dll_public_virtual:_long_int___cdecl_RecordsetWrapCOM::GetRecordCount_void_const___ptr64]
test eax, eax
je 0x140012fbb
lea rcx, [rbp - 0x20]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::MoveFirst_void____ptr64]
lea rcx, [rbp - 0x20]
call qword [sym.imp.DBInterface.dll_public_virtual:_int___cdecl_RecordsetWrapCOM::IsEOF_void____ptr64]
test eax, eax
jne 0x140012fbb
movzx ebx, byte [rbp + 0xe0]
movabs r14, 0x666666666666666
lea r8, str.PartNumID
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x20]
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 + 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp r15d, edi
je 0x140012d8a
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r13
mov ecx, 0x28
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
mov rdi, rax
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], SerializeElements<ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], r13d
cmp byte [rax + 0x19], 0
jne 0x140012a66
cmp dword [rax + 0x1c], 0
jle 0x140012ac5
cmp qword [rsp + 0x40], r14
je 0x14001318d
lea rax, [rsp + 0x38]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], r13
mov ecx, 0x28
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
nop
mov qword [rax + 0x1c], 0
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
mov word [rax + 0x18], 0
mov qword [rbp - 0x30], r13
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.1400094d0
mov rdi, rax
mov dword [rdi + 0x20], 0xffffffff
mov rdi, qword [rsp + 0x38]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r13d
mov rcx, rdi
cmp byte [rax + 0x19], 0
jne 0x140012b1a
nop dword [rax + rax]
mov qword [rsp + 0x50], rax
cmp dword [rax + 0x1c], 1
jge 0x140012b06
mov dword [rsp + 0x58], r13d
mov rax, qword [rax + 0x10]
jmp 0x140012b14
mov dword [rsp + 0x58], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140012af0
cmp byte [rcx + 0x19], 0
jne 0x140012b26
cmp dword [rcx + 0x1c], 1
jle 0x140012b85
cmp qword [rsp + 0x40], r14
je 0x140013187
lea rax, [rsp + 0x38]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], r13
mov ecx, 0x28
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
nop
mov qword [rax + 0x1c], 1
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
mov word [rax + 0x18], 0
mov qword [rbp - 0x68], r13
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.1400094d0
mov rcx, rax
mov dword [rcx + 0x20], 0xffffffff
lea r12, [rsi + 0x448]
mov r14, qword [r12]
mov rax, qword [r14 + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r13d
mov rcx, r14
cmp byte [rax + 0x19], 0
jne 0x140012bda
nop
mov qword [rsp + 0x50], rax
cmp dword [rax + 0x20], r15d
jge 0x140012bc6
mov dword [rsp + 0x58], r13d
mov rax, qword [rax + 0x10]
jmp 0x140012bd4
mov dword [rsp + 0x58], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140012bb0
cmp byte [rcx + 0x19], 0
jne 0x140012bea
cmp r15d, dword [rcx + 0x20]
jge 0x140012c81
movabs rax, 0x492492492492492
cmp qword [r12 + 8], rax
je 0x140013181
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r13
mov ecx, 0x38
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
mov rsi, rax
mov qword [rbp - 0x50], rax
mov dword [rax + 0x20], r15d
lea rdi, [rax + 0x28]
mov qword [rbp + 0xe8], rdi
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov edx, 1
mov rcx, rdi
call fcn.14001aa30
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], SerializeElements<ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
mov qword [rdi], rax
mov qword [rsi], r14
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r14
mov word [rsi + 0x18], 0
mov qword [rbp - 0x50], r13
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rsi
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.140019870
mov rcx, rax
lea rsi, [rcx + 0x28]
lea rax, [rsp + 0x38]
cmp rsi, rax
je 0x140012d40
mov rdi, qword [rsi]
mov r8, qword [rdi + 8]
mov rdx, rsi
mov rcx, rsi
call fcn.14000fab0
mov qword [rdi + 8], rdi
mov qword [rdi], rdi
mov qword [rdi + 0x10], rdi
mov qword [rsi + 8], r13
movzx r9d, bl
mov r8, qword [rsi]
mov rdx, qword [rsp + 0x38]
mov rdx, qword [rdx + 8]
mov rcx, rsi
call fcn.14000f080
mov rcx, qword [rsi]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x40]
mov qword [rsi + 8], rax
mov r8, qword [rsi]
mov rdx, qword [r8 + 8]
cmp byte [rdx + 0x19], 0
jne 0x140012d36
mov rcx, qword [rdx]
cmp byte [rcx + 0x19], 0
jne 0x140012d0f
nop dword [rax]
nop word [rax + rax]
mov rdx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140012d00
mov qword [r8], rdx
mov rdx, qword [rsi]
mov rcx, qword [rdx + 8]
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140012d30
mov rcx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x140012d23
mov qword [rdx + 0x10], rcx
jmp 0x140012d40
mov qword [r8], r8
mov rax, qword [rsi]
mov qword [rax + 0x10], rax
mov rcx, qword [rsp + 0x38]
mov rdi, qword [rcx + 8]
cmp byte [rdi + 0x19], 0
jne 0x140012d7e
nop
mov r8, qword [rdi + 0x10]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.14000fab0
mov rcx, rdi
mov rdi, qword [rdi]
mov edx, 0x28
call fcn.14003c5cc
cmp byte [rdi + 0x19], 0
je 0x140012d50
mov rcx, qword [rsp + 0x38]
mov edx, 0x28
call fcn.14003c5cc
jmp 0x140012d91
lea r12, [rsi + 0x448]
mov dword [rbp + 0xf0], r15d
lea r8, str.SelSiteID
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x20]
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 [rbp + 0xe8], eax
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea r8, str.StockType
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.DBInterface.dll_public_virtual:_class_COleVariant___cdecl_RecordsetWrapCOM::GetFieldValue_wchar_t_const____ptr64____ptr64]
mov r14d, dword [rax + 8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov r13, qword [r12]
mov rax, qword [r13 + 8]
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rsp + 0x28], edx
mov rcx, r13
cmp byte [rax + 0x19], dl
jne 0x140012e2a
mov qword [rsp + 0x20], rax
cmp dword [rax + 0x20], r15d
jge 0x140012e17
mov dword [rsp + 0x28], edx
mov rax, qword [rax + 0x10]
jmp 0x140012e25
mov dword [rsp + 0x28], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], dl
je 0x140012e02
cmp byte [rcx + 0x19], dl
jne 0x140012e3d
cmp r15d, dword [rcx + 0x20]
jl 0x140012e3d
xor r13d, r13d
jmp 0x140012ed2
movabs rax, 0x492492492492492
cmp qword [r12 + 8], rax
je 0x140013175
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], rdx
mov ecx, 0x38
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
mov rsi, rax
mov qword [rbp - 0x40], rax
mov dword [rax + 0x20], r15d
lea rdi, [rax + 0x28]
mov qword [rsp + 0x50], rdi
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea ecx, [rax + 0x28]
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], SerializeElements<ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>
mov qword [rdi], rax
mov qword [rsi], r13
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r13
mov word [rsi + 0x18], 0
xor r13d, r13d
mov qword [rbp - 0x40], r13
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rsi
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.140019870
mov rcx, rax
lea rsi, [rcx + 0x28]
mov rdi, qword [rsi]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], r13d
mov rcx, rdi
cmp byte [rax + 0x19], 0
jne 0x140012f1a
mov qword [rsp + 0x20], rax
cmp dword [rax + 0x1c], r14d
jge 0x140012f06
mov dword [rsp + 0x28], r13d
mov rax, qword [rax + 0x10]
jmp 0x140012f14
mov dword [rsp + 0x28], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140012ef0
cmp byte [rcx + 0x19], 0
jne 0x140012f26
cmp r14d, dword [rcx + 0x1c]
jge 0x140012f88
movabs rax, 0x666666666666666
cmp qword [rsi + 8], rax
je 0x140013175
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], r13
mov ecx, 0x28
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
nop
mov dword [rax + 0x1c], r14d
mov dword [rax + 0x20], r13d
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
mov word [rax + 0x18], 0
mov qword [rbp - 0x80], r13
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x50], xmm0
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1400094d0
mov rcx, rax
mov eax, dword [rbp + 0xe8]
mov dword [rcx + 0x20], eax
lea rcx, [rbp - 0x20]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::MoveNext_void____ptr64]
lea rcx, [rbp - 0x20]
call qword [sym.imp.DBInterface.dll_public_virtual:_int___cdecl_RecordsetWrapCOM::IsEOF_void____ptr64]
mov rsi, qword [rbp + 0xe0]
test eax, eax
jne 0x140012fbb
mov edi, dword [rbp + 0xf0]
jmp 0x1400129eb
lea rcx, [rbp - 0x20]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::Close_void____ptr64]
mov r8d, dword [rsi + 0x234]
lea rdx, str.SELECT__FROM__Block_Library_Ex__WHERE__CondID_ld_AND_MinInitSpares___0_AND_IsFixInitSpares____0_
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0xe0]
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, [r9 + 4]
lea rcx, [rbp - 0x20]
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, [rbp - 0x20]
call qword [sym.imp.DBInterface.dll_public_virtual:_long_int___cdecl_RecordsetWrapCOM::GetRecordCount_void_const___ptr64]
test eax, eax
je 0x140013140
lea rcx, [rbp - 0x20]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::MoveFirst_void____ptr64]
lea rcx, [rbp - 0x20]
call qword [sym.imp.DBInterface.dll_public_virtual:_int___cdecl_RecordsetWrapCOM::IsEOF_void____ptr64]
test eax, eax
jne 0x140013140
lea rdi, [rsi + 0x458]
movabs r14, 0x7ffffffffffffff
nop dword [rax]
nop word [rax + rax]
lea r8, str.PartNumID
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x20]
call qword [sym.imp.DBInterface.dll_public_virtual:_class_COleVariant___cdecl_RecordsetWrapCOM::GetFieldValue_wchar_t_const____ptr64____ptr64]
mov rsi, rax
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x28], r13d
mov rdx, rbx
cmp byte [rcx + 0x19], 0
jne 0x1400130ba
mov r8d, dword [rax + 8]
nop word [rax + rax]
mov qword [rsp + 0x20], rcx
cmp dword [rcx + 0x1c], r8d
jge 0x1400130a6
mov dword [rsp + 0x28], r13d
mov rcx, qword [rcx + 0x10]
jmp 0x1400130b4
mov dword [rsp + 0x28], 1
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140013090
cmp byte [rdx + 0x19], 0
jne 0x1400130c8
mov eax, dword [rdx + 0x1c]
cmp dword [rsi + 8], eax
jge 0x14001311a
cmp qword [rdi + 8], r14
je 0x14001317b
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], r13
mov ecx, 0x20
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
nop
mov ecx, dword [rsi + 8]
mov dword [rax + 0x1c], ecx
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov word [rax + 0x18], 0
mov qword [rbp - 0x80], r13
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [rbp - 0x70], xmm0
mov r8, rax
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.140018ef0
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp - 0x20]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::MoveNext_void____ptr64]
lea rcx, [rbp - 0x20]
call qword [sym.imp.DBInterface.dll_public_virtual:_int___cdecl_RecordsetWrapCOM::IsEOF_void____ptr64]
test eax, eax
je 0x140013050
lea rcx, [rbp - 0x20]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::Close_void____ptr64]
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.DBInterface.dll_public_virtual:_void___cdecl_RecordsetWrapCOM::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
add rsp, 0x198
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140009750
nop
call fcn.140009750
nop
call fcn.140009750
int3
call fcn.140009750
int3
call fcn.140009750
int3