Function at 0x1800255a0
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xa28]
sub rsp, 0xb28
mov rax, qword [0x180064038]
xor rax, rsp
mov qword [rbp + 0xa10], rax
mov rsi, r9
mov rdi, rdx
mov r15, rcx
mov qword [rbp - 0x50], r8
test rdx, rdx
jne 0x180003753
lea eax, [rdx - 8]
jmp 0x180003da7
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x60]
call fcn.180022ee0
nop
mov dword [rbp - 0x48], 0x244
lea rax, [rbp - 0x50]
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], 8
mov qword [rbp - 0x30], r14
mov dword [rbp + 0x120], 0x244
mov qword [rbp + 0x128], rsi
mov dword [rbp + 0x130], 8
mov qword [rbp + 0x138], r14
mov dword [rbp + 0x140], 0x244
lea rax, [rsi + 0x10]
mov qword [rbp + 0x148], rax
mov dword [rbp + 0x150], 8
mov qword [rbp + 0x158], r14
mov dword [rbp + 0x160], 0x1c4
lea rax, [rsi + 0x224]
mov qword [rbp + 0x168], rax
mov dword [rbp + 0x170], 0x190
mov qword [rbp + 0x178], r14
mov dword [rbp + 0x180], 0x244
lea rax, [rsi + 0x18]
mov qword [rbp + 0x188], rax
mov dword [rbp + 0x190], 8
mov qword [rbp + 0x198], r14
mov dword [rbp + 0x1a0], 0x244
lea rax, [rsi + 0x20]
mov qword [rbp + 0x1a8], rax
mov dword [rbp + 0x1b0], 8
mov qword [rbp + 0x1b8], r14
mov dword [rbp + 0x1c0], 0x1c4
lea rax, [rsi + 0x3b4]
mov qword [rbp + 0x1c8], rax
mov dword [rbp + 0x1d0], 0x190
mov qword [rbp + 0x1d8], r14
mov dword [rbp + 0x1e0], 0x244
lea rax, [rsi + 0x28]
mov qword [rbp + 0x1e8], rax
mov dword [rbp + 0x1f0], 8
mov qword [rbp + 0x1f8], r14
mov dword [rbp + 0x200], 0x1c4
lea rax, [rsi + 0x30]
mov qword [rbp + 0x208], rax
mov dword [rbp + 0x210], 0x1f4
mov qword [rbp + 0x218], r14
mov dword [rbp + 0x220], 0x1f0
lea rax, [rsi + 8]
mov qword [rbp + 0x228], rax
mov dword [rbp + 0x230], 4
mov qword [rbp + 0x238], r14
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rax, qword [rax]
mov dword [rsp + 0x28], 9
lea rdx, [rbp + 0x120]
mov qword [rsp + 0x20], rdx
lea r9d, [r14 + 1]
lea r8, [rbp - 0x48]
lea rdx, str.WITH_cte_as_select_M.ID_ID__M.FULLNAME_FULLNAME_from_PROFILE_MAIN_M_JOIN_PROFILE_MODULE_STATUS_MS_ON_M.IDMS.PROFILE_ID_WHERE_M.TYPE1_AND_MS.MODULE_ID3_SELECT_c.ID_c.CREATOR_ID_UC.FULLNAME_c.DATE_CREATE_c.MODIFIER_ID_PA.FULLNAME_c.DATE_MODIFY_c.TITLE_c.VERIFY_LICENCE_FROM_ORG_CONF_TPL_c_LEFT_JOIN_cte_UC_ON_UC.ID_c.CREATOR_ID_LEFT_JOIN_cte_PA_ON_PA.ID_c.MODIFIER_ID_WHERE_c.ID___
call qword [rax + 0x48]
test al, al
jne 0x18000392e
lea rcx, str.failed_query_for_get_ORG_CONF_TPL
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x219
jmp 0x180003c29
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rax, qword [rax]
xor edx, edx
call qword [rax + 0x50]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x60]
mov dword [rbp - 0x28], 0x244
lea rax, [rsp + 0x48]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], 8
mov qword [rbp - 0x10], r14
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rax, qword [rax]
mov dword [rsp + 0x28], 1
lea rdx, [rbp - 0x28]
mov qword [rsp + 0x20], rdx
mov r9d, 1
lea r8, [rbp - 0x48]
lea rdx, str.SELECT_MODULE_ID_FROM_ORG_CONF_TPL_MODULE_WHERE_CONF_TPL_ID_
call qword [rax + 0x48]
test al, al
jne 0x1800039bd
lea rcx, str.failed_query_for_get_ORG_CONF_TPL_MODULE
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x224
jmp 0x180003c29
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rax, qword [rax]
xor edx, edx
call qword [rax + 0x50]
test al, al
je 0x1800039ff
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x548]
call fcn.18001aa60
mov qword [rax], r14
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rax, qword [rax]
xor edx, edx
call qword [rax + 0x50]
test al, al
jne 0x1800039d4
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x60]
mov dword [rbp - 8], 0x244
lea rax, [rsp + 0x50]
mov qword [rbp], rax
mov dword [rbp + 8], 8
mov qword [rbp + 0x10], r14
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rax, qword [rax]
mov dword [rsp + 0x28], 1
lea rdx, [rbp - 8]
mov qword [rsp + 0x20], rdx
mov r9d, 1
lea r8, [rbp - 0x48]
lea rdx, str.SELECT_ORG_ID_FROM_ORG_CONF_TPL_ORG_WHERE_CONF_TPL_ID_
call qword [rax + 0x48]
test al, al
jne 0x180003a7b
lea rcx, str.failed_query_for_get_ORG_CONF_TPL_MODULE
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x22f
jmp 0x180003c29
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rax, qword [rax]
xor edx, edx
call qword [rax + 0x50]
test al, al
je 0x180003abd
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 0x558]
call fcn.18001aa60
mov qword [rax], r14
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rax, qword [rax]
xor edx, edx
call qword [rax + 0x50]
test al, al
jne 0x180003a92
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x60]
mov dword [rbp + 0x20], 0x244
lea rax, [rsp + 0x60]
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x30], 8
mov qword [rbp + 0x38], r14
mov dword [rbp + 0x40], 0x244
lea rax, [rsp + 0x68]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x50], 8
mov qword [rbp + 0x58], r14
mov dword [rbp + 0x60], 0x244
lea rax, [rsp + 0x70]
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x70], 8
mov qword [rbp + 0x78], r14
mov dword [rbp + 0x80], 0x244
lea rax, [rsp + 0x78]
mov qword [rbp + 0x88], rax
mov dword [rbp + 0x90], 8
mov qword [rbp + 0x98], r14
mov dword [rbp + 0xa0], 0x244
lea rax, [rbp - 0x80]
mov qword [rbp + 0xa8], rax
mov dword [rbp + 0xb0], 8
mov qword [rbp + 0xb8], r14
mov dword [rbp + 0xc0], 0x1f0
lea rax, [rbp - 0x78]
mov qword [rbp + 0xc8], rax
mov dword [rbp + 0xd0], 4
mov qword [rbp + 0xd8], r14
mov dword [rbp + 0xe0], 0x1f0
lea rax, [rbp - 0x70]
mov qword [rbp + 0xe8], rax
mov dword [rbp + 0xf0], 4
mov qword [rbp + 0xf8], r14
mov dword [rbp + 0x100], 0x1f0
lea rax, [rbp - 0x6c]
mov qword [rbp + 0x108], rax
mov dword [rbp + 0x110], 4
mov qword [rbp + 0x118], r14
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rax, qword [rax]
mov dword [rsp + 0x28], 8
lea rdx, [rbp + 0x20]
mov qword [rsp + 0x20], rdx
mov r9d, 1
lea r8, [rbp - 0x48]
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__ORDER_BY_CATEGORY_ID
call qword [rax + 0x48]
test al, al
jne 0x180003c7b
lea rcx, str.failed_query_for_get_ORG_CONF_TPL_DETAIL
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x242
lea rax, str.CConfirmationTemplateManager::getConfirmationTemplate
mov qword [rsp + 0x20], rax
mov rbx, qword [r15]
lea r9, str._s:_d__s.
mov r8d, 0x7cf
lea edx, [r8 + 1]
lea rcx, [rbp + 0x240]
call fcn.1800236b0
mov rax, qword [rbx]
mov r9, rdi
lea r8, [rbp + 0x240]
mov edx, 3
mov rcx, rbx
call qword [rax + 0x1a8]
mov r14d, 0xfffffff9
jmp 0x180003d97
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rax, qword [rax]
xor edx, edx
call qword [rax + 0x50]
test al, al
je 0x180003d85
mov ecx, 0x50
call fcn.180027078
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.180022ee0
mov rbx, rax
mov rax, qword [rsp + 0x60]
mov qword [rbx], rax
mov rax, qword [rsp + 0x68]
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x18], rax
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x10], rax
mov rax, qword [rbp - 0x80]
mov qword [rbx + 0x20], rax
mov eax, dword [rbp - 0x78]
mov dword [rbx + 0x28], eax
mov eax, dword [rbp - 0x6c]
mov dword [rbx + 0x34], eax
lea rdx, [rsp + 0x78]
lea rcx, [rsi + 0x568]
call fcn.18001aa60
mov qword [rax], rbx
mov rdx, qword [rsp + 0x70]
cmp rdx, qword [rsp + 0x78]
je 0x180003d6a
mov r8, qword [rsi + 0x568]
mov rax, qword [r8 + 8]
mov rcx, r8
mov r9, r8
cmp byte [rax + 0x19], 0
jne 0x180003d38
nop
cmp qword [rax + 0x20], rdx
jge 0x180003d2c
mov rax, qword [rax + 0x10]
jmp 0x180003d32
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x180003d20
cmp byte [rcx + 0x19], 0
jne 0x180003d48
cmp rdx, qword [rcx + 0x20]
jl 0x180003d48
mov al, 1
jmp 0x180003d4a
xor al, al
test al, al
cmove rcx, r9
cmp rcx, r8
je 0x180003d6a
mov rcx, qword [rcx + 0x28]
add rcx, 0x38
lea rdx, [rsp + 0x78]
call fcn.18001aa60
mov qword [rax], rbx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rax, qword [rax]
xor edx, edx
call qword [rax + 0x50]
test al, al
jne 0x180003c96
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x60]
nop
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.180022cb0
mov eax, r14d
mov rcx, qword [rbp + 0xa10]
xor rcx, rsp
call fcn.180027050
add rsp, 0xb28
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
add rcx, 8
jmp 0x180003710