Function at 0x140016960
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov r15, rdx
lea r9, str.SELECT__FROM__Task_Resources__WHERE__CategoryID__0_AND_ResourceID__0_
mov r8d, 4
lea rdx, str.Task_Resources
lea rcx, [0x14019d0a0]
call fcn.1400174e0
mov r14, rax
mov r8, qword [rax]
mov rcx, rax
call qword [r8 + 0x50]
test eax, eax
je 0x140016d1a
lea rcx, [rbp + 0x2f]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 0x58]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x78]
test eax, eax
jne 0x140016d10
xor r12d, r12d
movabs r13, 0x3ffffffffffffff
movzx ebx, byte [rbp + 0x77]
mov rax, qword [r14]
lea r8, str.TaskID
lea rdx, [rbp - 9]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantTimeToSystemTime]
mov ecx, dword [rax + 8]
mov dword [rbp + 0xf], ecx
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [r14]
lea r8, str.CategoryID
lea rdx, [rbp - 9]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantTimeToSystemTime]
mov ecx, dword [rax + 8]
mov dword [rbp + 0x13], ecx
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [r14]
lea r8, str.ResourceID
lea rdx, [rbp - 9]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantTimeToSystemTime]
mov ecx, dword [rax + 8]
mov dword [rbp + 0x17], ecx
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [r14]
lea r8, str.ResourceType
lea rdx, [rbp - 9]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantTimeToSystemTime]
nop
mov rdx, qword [rax + 8]
lea rcx, [rbp + 0x2f]
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
nop
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [r14]
lea r8, str.ResourceQty
lea rdx, [rbp - 9]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantTimeToSystemTime]
movsd xmm0, qword [rax + 8]
movsd qword [rbp + 0x1f], xmm0
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rax, qword [r14]
lea r8, str.ResourceUsage
lea rdx, [rbp - 9]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantTimeToSystemTime]
movsd xmm0, qword [rax + 8]
movsd qword [rbp + 0x27], xmm0
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [r15]
mov rax, qword [rcx + 8]
mov rdx, rcx
mov r8d, dword [rbp + 0xf]
cmp byte [rax + 0x19], 0
jne 0x140016b1a
cmp dword [rax + 0x20], r8d
jge 0x140016b0e
mov rax, qword [rax + 0x10]
jmp 0x140016b14
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140016b02
cmp byte [rcx + 0x19], 0
jne 0x140016b26
cmp r8d, dword [rcx + 0x20]
jge 0x140016b29
mov rcx, rdx
cmp rcx, rdx
jne 0x140016ca4
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r12
lea r8, [rbp + 0xf]
xor edx, edx
lea rcx, [rbp - 9]
call fcn.14000f830
mov rdi, qword [r15]
mov rax, qword [rdi + 8]
mov qword [rbp - 0x29], rax
mov dword [rbp - 0x21], r12d
mov rcx, rdi
mov edx, dword [rbp + 0xf]
cmp byte [rax + 0x19], 0
jne 0x140016b96
nop dword [rax + rax]
mov qword [rbp - 0x29], rax
cmp dword [rax + 0x20], edx
jge 0x140016b83
mov dword [rbp - 0x21], r12d
mov rax, qword [rax + 0x10]
jmp 0x140016b90
mov dword [rbp - 0x21], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140016b70
cmp byte [rcx + 0x19], 0
jne 0x140016ba1
cmp edx, dword [rcx + 0x20]
jge 0x140016bff
cmp qword [r15 + 8], r13
je 0x140016d65
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x31], r12
mov ecx, 0x40
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
nop
mov ecx, dword [rbp + 0xf]
mov dword [rax + 0x20], ecx
mov qword [rax + 0x28], r12
mov qword [rax + 0x30], r12
mov qword [rax + 0x38], r12
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
mov word [rax + 0x18], 0
mov qword [rbp - 0x31], r12
movups xmm0, xmmword [rbp - 0x29]
movaps xmmword [rbp - 0x29], xmm0
mov r8, rax
lea rdx, [rbp - 0x29]
mov rcx, r15
call fcn.14001a1f0
mov rcx, rax
add rcx, 0x28
lea rax, [rbp - 9]
cmp rcx, rax
je 0x140016c1e
movzx r9d, bl
mov r8, qword [rbp - 1]
mov rdx, qword [rbp - 9]
call fcn.14000ee40
nop
mov rdi, qword [rbp - 9]
test rdi, rdi
je 0x140016cf6
mov rsi, qword [rbp - 1]
cmp rdi, rsi
je 0x140016c4b
lea rcx, [rdi + 0x20]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
add rdi, 0x28
cmp rdi, rsi
jne 0x140016c34
mov rdi, qword [rbp - 9]
mov rcx, qword [rbp + 7]
sub rcx, rdi
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 3
mov rax, rdi
cmp rdx, 0x1000
jb 0x140016c9a
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016d5e
mov rcx, rdi
call fcn.14003c5cc
jmp 0x140016cf6
lea rdi, [rcx + 0x28]
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140016cea
mov dword [rdx], r8d
mov eax, dword [rbp + 0x13]
mov dword [rdx + 4], eax
mov eax, dword [rbp + 0x17]
mov dword [rdx + 8], eax
movsd xmm0, qword [rbp + 0x1f]
movsd qword [rdx + 0x10], xmm0
movsd xmm1, qword [rbp + 0x27]
movsd qword [rdx + 0x18], xmm1
lea rcx, [rdx + 0x20]
lea rdx, [rbp + 0x2f]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__11]
add qword [rdi + 8], 0x28
jmp 0x140016cf6
lea r8, [rbp + 0xf]
mov rcx, rdi
call fcn.14000f830
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x60]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x78]
test eax, eax
je 0x1400169f2
lea rcx, [rbp + 0x2f]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x40]
test eax, eax
je 0x140016d30
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x48]
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
jmp qword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140009750
int3