Function at 0x14006ef70
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx + 0xa40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x402
mov rcx, qword [rcx + 0x430]
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, 0xc8
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14006efcc
mov rdx, qword [rdi + 0xcb0]
mov rcx, rax
call fcn.140023330
mov rbx, rax
xor esi, esi
jmp 0x14006efd0
xor esi, esi
mov ebx, esi
test rbx, rbx
jne 0x14006eff1
xor edx, edx
lea rcx, str.Couldnt_create_the_recordset_G_
call fcn.14006b910
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rdi + 0xa40]
xor r9d, r9d
mov edx, 0x402
lea r8d, [r9 + 0x14]
mov rcx, qword [rcx + 0x430]
call qword [sym.imp.USER32.dll_SendMessageW]
nop
lea rdx, str.SELECT__FROM_Global_WHERE_Global.Group__1
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
mov r10, qword [rbx]
xor r9d, r9d
mov r8, rax
lea edx, [r9 + 4]
mov rcx, rbx
call qword [r10 + VariantCopy]
nop
mov rcx, qword [rdi + 0xa40]
xor r9d, r9d
mov edx, 0x402
lea r8d, [r9 + 0x28]
mov rcx, qword [rcx + 0x430]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rbx]
lea rdx, str.Parameter__QLp
mov rcx, rbx
call qword [rax + ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>]
lea r14, [rbx + 0xc0]
lea rcx, [rdi + 0xa78]
mov rdx, r14
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
mov rax, qword [rbx]
lea rdx, str.Parameter__TjCalc
mov rcx, rbx
call qword [rax + ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>]
lea rcx, [rdi + 0xa70]
mov rdx, r14
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
mov rax, qword [rbx]
lea rdx, str.Parameter__Year
mov rcx, rbx
call qword [rax + ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>]
mov rcx, qword [r14]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rdi + 0xa68], eax
mov rax, qword [rbx]
lea rdx, str.Parameter__LibKey
mov rcx, rbx
call qword [rax + ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>]
mov rdx, r14
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
nop
mov word [rdi + 0xa80], si
cmp qword [str.PartNum], 0
je 0x14006f138
lea r15, str.PartNum
movsx rdx, si
mov rdx, qword [r15 + rdx*8]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CFileFind::CloseContext]
test eax, eax
je 0x14006f138
movzx eax, word [rdi + 0xa80]
inc ax
mov word [rdi + 0xa80], ax
movzx esi, ax
movsx rax, ax
cmp qword [r15 + rax*8], 0
jne 0x14006f102
cmp word [rdi + 0xa80], 2
jl 0x14006f16a
xor edx, edx
lea rcx, str.Global_Data_Error:_Parameter_LibKey.
call fcn.14006b910
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rbx]
lea rdx, str.Parameter__FRparam
mov rcx, rbx
call qword [rax + ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>]
mov rcx, qword [r14]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rdi + 0x678], eax
mov rax, qword [rbx]
lea rdx, str.Parameter__StressPercentage
mov rcx, rbx
call qword [rax + ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>]
test eax, eax
je 0x14006f1b2
mov rcx, qword [r14]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rdi + 0xa90], eax
mov rcx, qword [rdi + 0xa40]
xor r9d, r9d
mov edx, 0x402
lea r8d, [r9 + 0x3c]
mov rcx, qword [rcx + 0x430]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rbx]
lea rdx, str.Parameter__LinkBlock
mov rcx, rbx
call qword [rax + ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>]
lea rsi, [rdi + 0xa84]
test eax, eax
je 0x14006f20d
xor edx, edx
mov rcx, r14
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov rcx, rax
mov r8, rsi
lea rdx, [0x1400ea080]
call fcn.140011dd0
cmp dword [rsi], 0
je 0x14006f298
mov rax, qword [rbx]
lea rdx, str.Parameter__LinkProjectA
mov rcx, rbx
call qword [rax + ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>]
test eax, eax
je 0x14006f23d
mov rdx, r14
lea rcx, [rdi + 0xa88]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
mov rax, qword [rbx]
lea rdx, str.Parameter__LinkProjectB
mov rcx, rbx
call qword [rax + ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>]
test eax, eax
je 0x14006f264
mov rdx, r14
lea rcx, [rdi + 0xa88]
call qword [sym.imp.mfc140u.dll_Ordinal_1667]
mov rax, qword [rbx]
lea rdx, str.Parameter__LinkProjectC
mov rcx, rbx
call qword [rax + ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>]
test eax, eax
je 0x14006f28b
mov rdx, r14
lea rcx, [rdi + 0xa88]
call qword [sym.imp.mfc140u.dll_Ordinal_1667]
lea rcx, [rdi + 0xa88]
call qword [sym.imp.mfc140u.dll_CStatusCmdUI::SetText]
mov rcx, qword [rdi + 0xa40]
xor r9d, r9d
mov edx, 0x402
lea r8d, [r9 + 0x50]
mov rcx, qword [rcx + 0x430]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x40]
test eax, eax
je 0x14006f2ce
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x48]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rcx, qword [rdi + 0xa40]
xor r9d, r9d
mov edx, 0x402
lea r8d, [r9 + 0x64]
mov rcx, qword [rcx + 0x430]
call qword [sym.imp.USER32.dll_SendMessageW]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, 1
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret