Function at 0x18000eed0
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x9e0]
sub rsp, 0xae0
mov rax, qword [0x180065038]
xor rax, rsp
mov qword [rbp + 0x9c0], rax
mov r14, qword [rbp + 0xa30]
mov rdi, r8
mov rsi, rdx
mov r15, rcx
test rdx, rdx
je 0x18000f4b7
cmp qword [r8], 0
jle 0x18000f4b7
cmp byte [r9 + 0x40], 0
je 0x18000f4b7
mov qword [rsp + 0xad8], rbx
xor ebx, ebx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
cmp dword [r8 + 0x40], ebx
je 0x18000ef46
mov rax, qword [r9 + 0x10]
jmp 0x18000ef49
mov rax, rbx
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x60], rbx
cmp dword [r8 + 0x48], ebx
je 0x18000ef5d
mov rax, qword [r9 + 0x18]
jmp 0x18000ef60
mov rax, rbx
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x68], rbx
cmp dword [r8 + 0x50], ebx
je 0x18000ef74
mov rax, qword [r9 + 0x20]
jmp 0x18000ef77
mov rax, rbx
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x70], rbx
cmp dword [r8 + 0x54], ebx
je 0x18000ef8b
mov rax, qword [r9 + 0x28]
jmp 0x18000ef8e
mov rax, rbx
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x78], rbx
cmp dword [r8 + 0x58], ebx
je 0x18000efa2
mov rax, qword [r9 + 0x30]
jmp 0x18000efa5
mov rax, rbx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x80], rbx
cmp dword [r8 + 0x44], ebx
je 0x18000efb9
mov eax, dword [r9 + 0x3c]
jmp 0x18000efbb
mov eax, ebx
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], ebx
cmp dword [r8 + 0x4c], ebx
je 0x18000efcf
mov eax, dword [r9 + 0x38]
jmp 0x18000efd1
mov eax, ebx
mov dword [rsp + 0x6c], eax
lea rax, [rbp - 0x58]
mov qword [rbp + 0x118], rax
lea rax, [rsp + 0x68]
mov qword [rbp + 0x138], rax
lea rax, [rbp - 0x50]
mov qword [rbp + 0x158], rax
lea rax, [rsp + 0x6c]
mov qword [rbp + 0x178], rax
lea rax, [rbp - 0x48]
mov qword [rbp + 0x198], rax
lea rax, [rbp - 0x40]
mov qword [rbp + 0x1b8], rax
lea rax, [rbp - 0x38]
mov qword [rbp + 0x1d8], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 8], rax
lea rax, [rbp - 0x60]
mov qword [rbp + 0x18], rax
lea rax, [rsp + 0x60]
mov qword [rbp + 0x38], rax
lea rax, [rbp - 0x68]
mov qword [rbp + 0x58], rax
lea rax, [rsp + 0x64]
mov qword [rbp + 0x78], rax
lea rax, [rbp - 0x70]
mov qword [rbp + 0x98], rax
lea rax, [rbp - 0x78]
mov qword [rbp + 0xb8], rax
mov dword [rsp + 0x64], ebx
mov dword [rbp + 0xf0], 0x1f0
mov qword [rbp + 0xf8], rdi
mov dword [rbp + 0x100], 8
mov qword [rbp + 0x108], rbx
mov dword [rbp + 0x110], 0x244
mov dword [rbp + 0x120], 8
mov qword [rbp + 0x128], rbx
mov dword [rbp + 0x130], 0x1f0
mov dword [rbp + 0x140], 4
mov qword [rbp + 0x148], rbx
mov dword [rbp + 0x150], 0x244
mov dword [rbp + 0x160], 8
mov qword [rbp + 0x168], rbx
mov dword [rbp + 0x170], 0x1f0
mov dword [rbp + 0x180], 4
mov qword [rbp + 0x188], rbx
mov dword [rbp + 0x190], 0x244
mov dword [rbp + 0x1a0], 8
mov qword [rbp + 0x1a8], rbx
mov dword [rbp + 0x1b0], 0x244
mov dword [rbp + 0x1c0], 8
mov qword [rbp + 0x1c8], rbx
mov dword [rbp + 0x1d0], 0x244
mov dword [rbp + 0x1e0], 8
mov qword [rbp + 0x1e8], rbx
mov dword [rbp - 0x30], 0x244
mov dword [rbp - 0x20], 8
mov qword [rbp - 0x18], rbx
mov dword [rbp - 0x10], 0x244
mov dword [rbp], 8
mov qword [rbp + 8], rbx
mov dword [rbp + 0x10], 0x244
mov dword [rbp + 0x20], 8
mov qword [rbp + 0x28], rbx
mov dword [rbp + 0x30], 0x1f0
mov dword [rbp + 0x40], 4
mov qword [rbp + 0x48], rbx
mov dword [rbp + 0x50], 0x244
mov dword [rbp + 0x60], 8
mov qword [rbp + 0x68], rbx
mov dword [rbp + 0x70], 0x1f0
mov dword [rbp + 0x80], 4
mov qword [rbp + 0x88], rbx
mov dword [rbp + 0x90], 0x244
mov dword [rbp + 0xa0], 8
mov qword [rbp + 0xa8], rbx
mov dword [rbp + 0xb0], 0x244
mov dword [rbp + 0xc0], 8
mov qword [rbp + 0xc8], rbx
lea rax, [rbp - 0x80]
mov dword [rbp + 0xd0], 0x244
mov qword [rbp + 0xd8], rax
mov rcx, rsi
mov rax, qword [rdx]
mov dword [rbp + 0xe0], 8
mov qword [rbp + 0xe8], rbx
call qword [rax]
mov dword [rsp + 0x28], 9
lea r8, [rbp + 0xf0]
mov r9d, 8
lea rdx, str.SELECT_ID_COUNTER_ID_ORG_ID_MODULE_ID_FISCAL_YEAR_ID_OPERATION_TYPE_STOCK_ID_CENTER_ID_CURRENCY_ID_FROM_ORG_SEPARATED_COUNTER_WHERE_COUNTER_ID__AND_ORG_ID__AND_MODULE_ID__AND_FISCAL_YEAR_ID__AND_OPERATION_TYPE__AND_STOCK_ID__AND_CENTER_ID__AND_CURRENCY_ID_
mov rcx, qword [rax]
mov r10, qword [rcx + 0x48]
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call r10
test al, al
jne 0x18000f2a5
mov rbx, qword [r15 + 0x10]
lea rax, str.failed_query_to_get_separated_counter_using_prerequisite_values
mov qword [rsp + 0x30], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
mov dword [rsp + 0x28], 0x7c2
lea rax, str.COrganizationManagerBase::getSeparatedCounter
lea rcx, [rbp + 0x1f0]
mov qword [rsp + 0x20], rax
lea r8d, [rdx - 1]
call fcn.18001f990
xor r9d, r9d
jmp 0x18000f3cc
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
xor edx, edx
mov rcx, rax
mov r8, qword [rax]
call qword [r8 + 0x50]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x60]
mov rax, qword [rsp + 0x70]
test rax, rax
jg 0x18000f438
mov rax, qword [rdi]
mov rcx, rsi
mov qword [rsp + 0x78], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x60], rax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x64], eax
mov rax, qword [rbp - 0x50]
mov qword [rbp - 0x68], rax
mov rax, qword [rbp - 0x48]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x78], rax
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x80], rax
mov rax, qword [rsi]
call qword [rax]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 8]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov dword [rsp + 0x50], ebx
lea r8, [rbp - 0x30]
mov qword [rsp + 0x48], rbx
lea rdx, str.INSERT_INTO_ORG_SEPARATED_COUNTER_ID_COUNTER_ID_ORG_ID_MODULE_ID_FISCAL_YEAR_ID_OPERATION_TYPE_STOCK_ID_CENTER_ID_CURRENCY_ID__VALUES___________________
mov dword [rsp + 0x40], ebx
mov r9d, 9
mov r10, qword [rax]
mov rcx, rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [r10 + 0x38]
mov rcx, qword [rsi]
mov rdx, qword [rcx]
mov rcx, rsi
test al, al
jne 0x18000f40f
call rdx
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x18]
mov rbx, qword [r15 + 0x10]
lea rax, str.failed_query_for_insert_separated_counter
mov qword [rsp + 0x30], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
mov dword [rsp + 0x28], 0x7d5
lea rax, str.COrganizationManagerBase::getSeparatedCounter
lea rcx, [rbp + 0x1f0]
mov qword [rsp + 0x20], rax
lea r8d, [rdx - 1]
call fcn.18001f990
mov r9, rsi
mov rax, qword [rbx]
lea r8, [rbp + 0x1f0]
mov edx, 3
mov rcx, rbx
call qword [rax + 0x1a8]
mov eax, 0xfffffff9
mov rbx, qword [rsp + 0xad8]
mov rcx, qword [rbp + 0x9c0]
xor rcx, rsp
call fcn.180026320
add rsp, 0xae0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call rdx
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0xb0]
mov qword [rsp + 0x70], rax
mov rcx, rsi
mov rax, qword [rsi]
call qword [rax]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
mov rax, qword [rsp + 0x70]
mov rdx, qword [rbp - 0x68]
mov rcx, rbx
mov r8, qword [rbp - 0x70]
mov r9, qword [rbp - 0x78]
mov r10, qword [rbp - 0x80]
mov qword [r14], rax
mov rax, qword [rsp + 0x78]
mov qword [r14 + 8], rax
mov rax, qword [rbp - 0x60]
test rax, rax
mov byte [r14 + 0x40], 1
cmovg rcx, rax
mov eax, dword [rsp + 0x60]
mov dword [r14 + 0x3c], eax
test rdx, rdx
mov eax, dword [rsp + 0x64]
mov dword [r14 + 0x38], eax
mov rax, rbx
cmovg rax, rdx
mov qword [r14 + 0x10], rcx
mov qword [r14 + 0x18], rax
test r8, r8
mov rax, rbx
cmovg rax, r8
test r9, r9
mov qword [r14 + 0x20], rax
mov rax, rbx
cmovg rax, r9
test r10, r10
mov qword [r14 + 0x28], rax
cmovg rbx, r10
xor eax, eax
mov qword [r14 + 0x30], rbx
jmp 0x18000f3e9
mov eax, 0xfffffff8
jmp 0x18000f3f1