Function at 0x180017ff0
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa38]
sub rsp, 0xb38
mov rax, qword [0x1800f68a8]
xor rax, rsp
mov qword [rbp + 0xa20], rax
mov rsi, r9
mov qword [rsp + 0x60], r9
mov rdi, r8
mov r12, rdx
mov r13, rcx
xor r14d, r14d
mov qword [rbp + 0x18], r14
mov qword [rbp + 0x20], r14
lea ecx, [r14 + 0x30]
call fcn.180098674
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp + 0x18], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 8], r14
mov qword [rbp - 0x10], r14
mov qword [rbp], r14
mov qword [rbp + 8], r14
mov word [rbp + 0x28], 0x100
mov dword [rbp + 0x10], r14d
mov dword [rbp + 0x14], 1
lea rcx, [rbp + 0x18]
call fcn.180011be0
nop
mov dword [rbp + 0xb0], 0x244
mov qword [rbp + 0xb8], rdi
mov dword [rbp + 0xc0], 8
mov qword [rbp + 0xc8], r14
mov dword [rbp + 0xd0], 0x244
lea rbx, [rdi + 8]
mov qword [rbp + 0xd8], rbx
mov dword [rbp + 0xe0], 8
mov qword [rbp + 0xe8], r14
mov dword [rbp + 0xf0], 0x244
lea rax, [rdi + 0x18]
mov qword [rbp + 0xf8], rax
mov dword [rbp + 0x100], 8
mov qword [rbp + 0x108], r14
mov dword [rbp + 0x110], 0x244
lea rax, [rdi + 0x28]
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x120], 8
mov qword [rbp + 0x128], r14
mov dword [rbp + 0x130], 0x244
lea rax, [rdi + 0x10]
mov qword [rbp + 0x138], rax
mov dword [rbp + 0x140], 8
mov qword [rbp + 0x148], r14
mov dword [rbp + 0x50], 0x244
mov qword [rbp + 0x58], rsi
mov dword [rbp + 0x60], 8
mov qword [rbp + 0x68], r14
mov dword [rbp + 0x70], 0x1c4
lea rax, [rsi + 0x30]
mov qword [rbp + 0x78], rax
mov dword [rbp + 0x80], 0x1f4
mov qword [rbp + 0x88], r14
mov dword [rbp + 0x90], 0x1f0
lea rax, [rsi + 8]
mov qword [rbp + 0x98], rax
mov dword [rbp + 0xa0], 4
mov qword [rbp + 0xa8], r14
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], 0xf
lea edx, [r14 + 0x20]
lea rcx, [rbp - 0x48]
call fcn.18000c560
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x38], 0x13
mov qword [rbp - 0x30], 0x1f
movups xmm0, xmmword [str.WITH_CTE_CONFIG_AS]
movups xmmword [rax], xmm0
movzx ecx, word [0x1800cbc58]
mov word [rax + 0x10], cx
movzx ecx, byte [0x1800cbc5a]
mov byte [rax + 0x12], cl
mov byte [rax + 0x13], r14b
mov r8, qword [rbx]
lea rdx, [rbp - 0x68]
mov rcx, r13
call fcn.180017710
mov rbx, rax
mov r8, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 0x1a
jb 0x18001829c
lea rax, [r8 + 0x1a]
mov qword [rbx + 0x10], rax
mov rdi, rbx
cmp rcx, 0x10
jb 0x180018231
mov rdi, qword [rbx]
lea rax, [0x1800cbcda]
mov r15d, 0x1a
lea r14, str.__SELECT_CONF_TPL_ID_FROM
cmp rax, rdi
jbe 0x180018264
lea rax, [rdi + r8]
cmp r14, rax
ja 0x180018264
cmp rdi, r14
ja 0x18001825c
xor esi, esi
jmp 0x180018267
mov rsi, rdi
sub rsi, r14
jmp 0x180018267
mov rsi, r15
lea rcx, [rdi + 0x1a]
inc r8
mov rdx, rdi
call fcn.18009a890
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.18009a890
lea rcx, [rdi + rsi]
sub r15, rsi
lea rdx, [r14 + 0x1a]
add rdx, rsi
mov r8, r15
call fcn.18009a890
jmp 0x1800182c7
mov r15d, 0x1a
mov qword [rsp + 0x28], r15
lea r14, str.__SELECT_CONF_TPL_ID_FROM
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov rcx, rbx
call fcn.180005d40
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x50], xmm1
xor edi, edi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], dil
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 0x5b
jb 0x180018349
lea rax, [rcx + 0x5b]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x40]
add rbx, rcx
lea r8d, [rdi + 0x5b]
lea rdx, str._WHERE_ORG_ID____AND_MODULE_ID____AND_REF_ID____AND_REF_TYPE____AND_PROCESS_TYPE_____
mov rcx, rbx
call fcn.18009a890
mov byte [rbx + 0x5b], dil
lea rax, [rsp + 0x40]
jmp 0x18001836a
mov qword [rsp + 0x20], 0x5b
lea r9, str._WHERE_ORG_ID____AND_MODULE_ID____AND_REF_ID____AND_REF_TYPE____AND_PROCESS_TYPE_____
xor r8d, r8d
lea edx, [r8 + 0x5b]
lea rcx, [rsp + 0x40]
call fcn.180005850
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea r9, [rsp + 0x70]
movq rdi, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r14, xmm0
cmp r14, 0x10
cmovae r9, rdi
mov r15, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
sub rax, r15
movq rsi, xmm1
cmp rsi, rax
ja 0x1800183ef
lea rax, [r15 + rsi]
mov qword [rbp - 0x38], rax
lea rbx, [rbp - 0x48]
cmp rcx, 0x10
cmovae rbx, qword [rbp - 0x48]
lea rcx, [rbx + r15]
mov r8, rsi
mov rdx, r9
call fcn.18009a890
lea rax, [rbx + r15]
mov byte [rax + rsi], 0
jmp 0x18001840c
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x48]
call fcn.180005850
mov r14, qword [rbp - 0x78]
mov rdi, qword [rsp + 0x70]
cmp r14, 0x10
jb 0x180018444
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x18001843b
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180018aca
mov rcx, rdi
call fcn.1800986b0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x180018481
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001847c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180018ad0
call fcn.1800986b0
movdqa xmm0, xmmword [0x1800ce970]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x1800184cf
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800184ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180018ad6
call fcn.1800986b0
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov rax, rdx
sub rax, rcx
cmp rax, 0x59
jb 0x180018516
lea rax, [rcx + 0x59]
mov qword [rbp - 0x38], rax
lea rbx, [rbp - 0x48]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x48]
add rbx, rcx
mov r8d, 0x59
lea rdx, str._SELECT_ID_TITLE_VERIFY_LICENCE_FROM_ORG_CONF_TPL_WHERE_ID_IN_SELECT_ID_FROM_CTE_CONFIG_
mov rcx, rbx
call fcn.18009a890
mov byte [rbx + 0x59], 0
jmp 0x180018536
mov qword [rsp + 0x20], 0x59
lea r9, str._SELECT_ID_TITLE_VERIFY_LICENCE_FROM_ORG_CONF_TPL_WHERE_ID_IN_SELECT_ID_FROM_CTE_CONFIG_
xor r8d, r8d
lea edx, [r8 + 0x59]
lea rcx, [rbp - 0x48]
call fcn.180005850
mov rax, qword [r12]
mov rcx, r12
call qword [rax]
mov rcx, qword [rax]
mov r10, qword [rcx + 0x48]
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rdx, qword [rbp - 0x48]
mov dword [rsp + 0x28], 3
lea rcx, [rbp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, 4
lea r8, [rbp + 0xb0]
mov rcx, rax
call r10
test al, al
jne 0x1800185e3
mov rbx, qword [r13]
lea rax, str.failed_query_for_get_ORG_CONF_TPL
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x9d3
lea rax, str.CConfirmationTemplateManager::getConfirmationTemplateWithInfo
mov qword [rsp + 0x20], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
lea r8d, [rdx - 1]
lea rcx, [rbp + 0x250]
call fcn.180024060
mov rax, qword [rbx]
mov r9, r12
lea r8, [rbp + 0x250]
mov edx, 3
mov rcx, rbx
call qword [rax + 0x1a8]
xor r14d, r14d
lea ebx, [r14 - 7]
jmp 0x180018a4b
mov rax, qword [r12]
mov rcx, r12
call qword [rax]
mov rcx, qword [rax]
mov r8, qword [rcx + 0x50]
xor edx, edx
mov rcx, rax
call r8
mov rax, qword [r12]
mov rcx, r12
call qword [rax]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x60]
mov dword [rbp + 0x30], 0x244
mov rbx, qword [rsp + 0x60]
mov qword [rbp + 0x38], rbx
mov dword [rbp + 0x40], 8
xor r14d, r14d
mov qword [rbp + 0x48], r14
mov dword [rbp + 0x150], 0x244
lea rax, [rbp - 0x20]
mov qword [rbp + 0x158], rax
mov dword [rbp + 0x160], 8
mov qword [rbp + 0x168], r14
mov dword [rbp + 0x170], 0x244
lea rax, [rbp - 0x18]
mov qword [rbp + 0x178], rax
mov dword [rbp + 0x180], 8
mov qword [rbp + 0x188], r14
mov dword [rbp + 0x190], 0x244
lea rax, [rbp - 0x10]
mov qword [rbp + 0x198], rax
mov dword [rbp + 0x1a0], 8
mov qword [rbp + 0x1a8], r14
mov dword [rbp + 0x1b0], 0x244
lea rax, [rbp - 8]
mov qword [rbp + 0x1b8], rax
mov dword [rbp + 0x1c0], 8
mov qword [rbp + 0x1c8], r14
mov dword [rbp + 0x1d0], 0x244
lea rax, [rbp]
mov qword [rbp + 0x1d8], rax
mov dword [rbp + 0x1e0], 8
mov qword [rbp + 0x1e8], r14
mov dword [rbp + 0x1f0], 0x1f0
lea rax, [rbp + 8]
mov qword [rbp + 0x1f8], rax
mov dword [rbp + 0x200], 4
mov qword [rbp + 0x208], r14
mov dword [rbp + 0x210], 0x1f0
lea rax, [rbp + 0x10]
mov qword [rbp + 0x218], rax
mov dword [rbp + 0x220], 4
mov qword [rbp + 0x228], r14
mov dword [rbp + 0x230], 0x1f0
lea rax, [rbp + 0x14]
mov qword [rbp + 0x238], rax
mov dword [rbp + 0x240], 4
mov qword [rbp + 0x248], r14
mov r8d, 0x8f
lea rdx, str._SELECT_ID_CONF_TPL_ID_PARENT_CATEGORY_ID_CATEGORY_ID_USER_ID_CONF_CONDITION_HAVE_NOTIFY__FORCE___FROM_ORG_CONF_TPL_DETAIL_WHERE_CONF_TPL_ID_
lea rcx, [rbp - 0x48]
call fcn.18000c910
mov rax, qword [r12]
mov rcx, r12
call qword [rax]
mov rcx, qword [rax]
mov r10, qword [rcx + 0x48]
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rdx, qword [rbp - 0x48]
mov dword [rsp + 0x28], 8
lea rcx, [rbp + 0x150]
mov qword [rsp + 0x20], rcx
lea r9d, [r14 + 1]
lea r8, [rbp + 0x30]
mov rcx, rax
call r10
test al, al
jne 0x180018818
mov rbx, qword [r13]
lea rax, str.failed_query_for_get_ORG_CONF_TPL
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x9ea
lea rax, str.CConfirmationTemplateManager::getConfirmationTemplateWithInfo
mov qword [rsp + 0x20], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
lea r8d, [rdx - 1]
lea rcx, [rbp + 0x250]
call fcn.180024060
mov rax, qword [rbx]
mov r9, r12
lea r8, [rbp + 0x250]
lea edx, [r14 + 3]
mov rcx, rbx
call qword [rax + 0x1a8]
lea ebx, [r14 - 7]
jmp 0x180018a4b
mov rax, qword [r12]
mov rcx, r12
call qword [rax]
mov rcx, qword [rax]
mov r8, qword [rcx + 0x50]
xor edx, edx
mov rcx, rax
call r8
test al, al
je 0x180018a36
movabs r15, 0x555555555555555
mov ecx, 0x50
call fcn.180098674
mov rdi, rax
mov qword [rbp - 0x70], rax
test rax, rax
je 0x1800188bd
lea rbx, [rax + 0x38]
mov qword [rsp + 0x70], rbx
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov ecx, 0x30
call fcn.180098674
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov qword [rdi], r14
mov qword [rdi + 8], r14
mov qword [rdi + 0x18], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x20], r14
mov qword [rdi + 0x28], r14
mov word [rdi + 0x48], 0x100
mov dword [rdi + 0x30], r14d
mov dword [rdi + 0x34], 1
mov rcx, rbx
call fcn.180011be0
mov rbx, qword [rsp + 0x60]
jmp 0x1800188c0
mov rdi, r14
test rdi, rdi
je 0x180018a10
mov rax, qword [rbp - 0x20]
mov qword [rdi], rax
mov rax, qword [rbp - 0x18]
mov qword [rdi + 8], rax
mov rax, qword [rbp - 8]
mov qword [rdi + 0x18], rax
mov rax, qword [rbp - 0x10]
mov qword [rdi + 0x10], rax
mov rax, qword [rbp]
mov qword [rdi + 0x20], rax
mov eax, dword [rbp + 8]
mov dword [rdi + 0x28], eax
mov eax, dword [rbp + 0x14]
mov dword [rdi + 0x34], eax
add rbx, 0x568
mov rsi, qword [rbx]
mov rax, qword [rsi + 8]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], r14d
mov rcx, rsi
mov rdx, qword [rbp - 8]
cmp byte [rax + 0x19], 0
jne 0x18001894b
mov qword [rsp + 0x70], rax
cmp qword [rax + 0x20], rdx
jge 0x180018937
mov dword [rsp + 0x78], r14d
mov rax, qword [rax + 0x10]
jmp 0x180018945
mov dword [rsp + 0x78], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x180018921
cmp byte [rcx + 0x19], 0
jne 0x180018957
cmp rdx, qword [rcx + 0x20]
jge 0x1800189b5
cmp qword [rbx + 8], r15
je 0x180018adc
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r14
mov ecx, 0x30
call fcn.180098674
nop
mov rcx, qword [rbp - 8]
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], r14
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov word [rax + 0x18], 0
mov qword [rsp + 0x48], r14
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x70], xmm0
mov r8, rax
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.18000b7e0
mov rcx, rax
mov qword [rcx + 0x28], rdi
mov rdx, qword [rbp - 0x10]
cmp rdx, qword [rbp - 8]
je 0x180018a10
mov r8, qword [rbx]
mov rax, qword [r8 + 8]
mov rcx, r8
cmp byte [rax + 0x19], 0
jne 0x1800189eb
cmp qword [rax + 0x20], rdx
jge 0x1800189df
mov rax, qword [rax + 0x10]
jmp 0x1800189e5
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1800189d3
cmp byte [rcx + 0x19], 0
jne 0x180018a10
cmp rdx, qword [rcx + 0x20]
jl 0x180018a10
cmp rcx, r8
je 0x180018a10
mov rcx, qword [rcx + 0x28]
add rcx, 0x38
lea rdx, [rbp - 8]
call fcn.180009380
mov qword [rax], rdi
mov rax, qword [r12]
mov rcx, r12
call qword [rax]
mov rcx, qword [rax]
mov r8, qword [rcx + 0x50]
xor edx, edx
mov rcx, rax
call r8
test al, al
je 0x180018a36
mov rbx, qword [rsp + 0x60]
jmp 0x180018842
mov rax, qword [r12]
mov rcx, r12
call qword [rax]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x60]
mov ebx, r14d
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x180018a82
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180018a7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180018ac4
call fcn.1800986b0
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x30], 0xf
mov byte [rbp - 0x48], 0
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 0x18]
call fcn.180004f90
mov eax, ebx
mov rcx, qword [rbp + 0xa20]
xor rcx, rsp
call fcn.180098830
add rsp, 0xb38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18009f234
nop
call fcn.18009f234
nop
call fcn.18009f234
nop
call fcn.18009f234
int3
call fcn.18000c1c0
int3