Function at 0x140013c80
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r12, rdx
mov rbx, rcx
mov dword [rcx + 0x288], 0
mov rax, qword [rcx + 0x2b0]
test rax, rax
jne 0x140013ccc
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
cmp rax, 2
jl 0x140014085
mov r14, qword [rcx + 0x2a8]
mov r15, qword [r14 + 8]
jle 0x140014085
mov rsi, qword [r14 + 0x10]
cmp rax, 8
jle 0x140014085
mov r14, qword [r14 + 0x40]
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov r8d, dword [rbx + 0x234]
lea rdx, str.SELECT__FROM__Condition_List__WHERE_CondID_ld
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
mov r9, qword [rsp + 0x70]
mov r8d, 4
lea rdx, str.Condition_List
mov rcx, rbx
call fcn.1400174e0
mov rdi, rax
test rax, rax
je 0x14001406a
mov r9, qword [rax]
lea r8, str.InspDone
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [r9 + reloc.OLEAUT32.dll_VariantTimeToSystemTime]
mov ecx, dword [rax + 8]
mov dword [rbx + 0x2f0], ecx
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [rdi]
lea r8, str.PmoDone
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantTimeToSystemTime]
mov ecx, dword [rax + 8]
mov dword [rbx + 0x2fc], ecx
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [rdi]
lea r8, str.RcmDone
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantTimeToSystemTime]
mov ecx, dword [rax + 8]
mov dword [rbx + 0x300], ecx
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [rdi]
lea r8, str.RestTimeChanged
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantTimeToSystemTime]
mov ecx, dword [rax + 8]
mov dword [rbx + 0x30c], ecx
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x40]
test eax, eax
je 0x140013e0b
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x48]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
cmp dword [rbx + 0x2f0], 0
je 0x140013e29
mov rcx, rbx
call fcn.140013460
lea rdx, [0x140134658]
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__12]
mov r10, qword [r15]
xor r9d, r9d
mov r8, rax
lea edx, [r9 - 1]
mov rcx, r15
call qword [r10 + VariantCopy]
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x50]
test eax, eax
je 0x14001406a
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x40]
test eax, eax
jne 0x140013e99
lea rdx, [0x140134658]
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__12]
mov r10, qword [rsi]
xor r9d, r9d
mov r8, rax
lea edx, [r9 - 1]
mov rcx, rsi
call qword [r10 + VariantCopy]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x50]
test eax, eax
je 0x14001406a
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x40]
test eax, eax
jne 0x140013ee0
lea rdx, [0x140134658]
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__12]
mov r10, qword [r14]
xor r9d, r9d
mov r8, rax
lea edx, [r9 - 1]
mov rcx, r14
call qword [r10 + VariantCopy]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x50]
test eax, eax
je 0x14001406a
cmp qword [rbx + 0x2b0], 3
jle 0x14001407f
mov rax, qword [rbx + 0x2a8]
mov rdi, qword [rax + 0x18]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x40]
test eax, eax
jne 0x140013f40
lea rdx, [0x140134658]
lea rcx, [rsp + 0x80]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__12]
mov r10, qword [rdi]
xor r9d, r9d
mov r8, rax
lea edx, [r9 - 1]
mov rcx, rdi
call qword [r10 + VariantCopy]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
test eax, eax
jne 0x140013f68
mov rax, qword [rbx + 0x2c8]
mov rcx, qword [rax + 0x1c8]
cmp dword [rcx + 0x100], 3
jne 0x14001406a
mov ecx, 0x13d18
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
mov qword [rsp + 0x80], rax
test rax, rax
je 0x140013f8c
mov rcx, rax
call fcn.14001c640
mov r14, rax
jmp 0x140013f8f
xor r14d, r14d
mov eax, dword [rbx + 0x230]
mov dword [0x14019d51c], eax
mov dword [rbx + 0x288], 0
lea r9, [rbx + 0x288]
mov r8, r15
mov rdx, r12
mov rcx, r14
call fcn.14002cb00
mov qword [rbx + 0x2c8], rax
test r14, r14
je 0x140013fd4
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax + VariantCopy]
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x48]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x48]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x48]
mov r8d, dword [rbx + 0x234]
lea rdx, str.SELECT__FROM__Spare_Fixed_Qty__WHERE_CondID_ld
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
mov r9, qword [rsp + 0x70]
mov r8d, 4
lea rdx, str.Spare_Fixed_Qty
mov rcx, rbx
call fcn.1400174e0
mov rdi, rax
test rax, rax
je 0x14001406a
mov rdx, rax
mov rcx, qword [rbx + 0x2c8]
call fcn.140025c20
mov r8, qword [rdi]
mov rcx, rdi
call qword [r8 + 0x40]
test eax, eax
je 0x140014051
mov r8, qword [rdi]
mov rcx, rdi
call qword [r8 + 0x48]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
cmp dword [rbx + 0x288], 0
setg bl
jmp 0x14001406c
xor bl, bl
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
movzx eax, bl
jmp 0x140013cb2
call sub.mfc140u.dll_AfxRegDeleteKey
nop
call sub.mfc140u.dll_AfxRegDeleteKey
int3