Function at 0x18000e780
Capabilities:
Reference sql statements

Disassembly:
mov r11, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [r11 - 0x988]
sub rsp, 0xa60
mov rax, qword [0x180065038]
xor rax, rsp
mov qword [rbp + 0x930], rax
mov r12, qword [rbp + 0x9b0]
mov r14, r8
mov r13, qword [rbp + 0x9b8]
mov rdi, rdx
mov qword [rsp + 0x68], rcx
mov qword [rbp - 0x58], r9
test rdx, rdx
je 0x18000eebd
cmp dword [r8 + 0x3c], 0
jle 0x18000eebd
cmp dword [r8 + 0x38], 0
jl 0x18000eebd
test r9, r9
jle 0x18000eebd
cmp qword [r12], 0
jle 0x18000eebd
cmp qword [rbp + 0x9c0], 0
jl 0x18000eebd
mov qword [r11 - 0x30], rbx
xor cl, cl
mov qword [r11 - 0x38], rsi
mov qword [r11 - 0x40], r15
xor r15b, r15b
xor ebx, ebx
mov byte [rsp + 0x60], cl
mov dword [rsp + 0x64], ebx
test cl, cl
jne 0x18000eeb6
lea rsi, [r13 + 0x3c]
mov qword [rbp - 0x70], rbx
xorps xmm0, xmm0
mov qword [rbp - 0x18], rbx
movups xmmword [rsi], xmm0
xor eax, eax
xor ecx, ecx
movups xmmword [rsi + 0x10], xmm0
mov qword [rbp + 8], rcx
lea rbx, [r14 + 8]
movups xmmword [rsi + 0x20], xmm0
mov qword [rbp + 0x28], rcx
movups xmmword [rsi + 0x30], xmm0
mov qword [rbp - 0x38], rcx
mov rcx, rdi
movups xmmword [rsi + 0x40], xmm0
mov dword [rbp - 0x30], 0x244
movups xmmword [rsi + 0x50], xmm0
mov dword [rsi + 0x60], eax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x28], rax
lea rax, [r14 + 0x10]
mov qword [rbp + 0x18], rax
lea rax, [rbp - 0x70]
mov qword [rbp - 0x48], rax
mov rax, qword [rdi]
mov dword [rbp - 0x20], 8
mov dword [rbp - 0x10], 0x244
mov qword [rbp - 8], rbx
mov dword [rbp], 8
mov dword [rbp + 0x10], 0x244
mov dword [rbp + 0x20], 8
mov dword [rbp - 0x50], 0x244
mov dword [rbp - 0x40], 8
call qword [rax]
mov dword [rsp + 0x28], 1
lea r8, [rbp - 0x30]
mov r9d, 3
lea rdx, str.SELECT_MAX_VALUE__FROM_ORG_COUNTER_VALUE_WHERE_SEPARATED_COUNTER_ID__AND_VALUE___AND_VALUE__
mov rcx, qword [rax]
mov r10, qword [rcx + 0x48]
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call r10
test al, al
je 0x18000ee4c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
xor edx, edx
mov rcx, rax
mov r8, qword [rax]
call qword [r8 + 0x50]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x60]
mov rax, qword [rbp - 0x70]
test rax, rax
jg 0x18000e92e
mov r8, qword [rbx]
jmp 0x18000e935
movsxd r8, dword [r14 + 0x3c]
add r8, rax
mov qword [rbp - 0x70], r8
lea rcx, [rbp + 0x30]
mov rax, r14
mov edx, 2
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x18000e950
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov rax, qword [rax + 0x20]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov qword [rcx + 0x20], rax
cmp qword [rbp + 0x30], rdx
jle 0x18000e9cf
cmp r8, qword [rbp + 0x38]
jl 0x18000e9cf
cmp r8, qword [rbp + 0x40]
jg 0x18000e9cf
mov al, 1
jmp 0x18000e9d1
xor al, al
test al, al
je 0x18000edcb
mov rcx, qword [rbp + 0x9c0]
xor ebx, ebx
test rcx, rcx
mov qword [rbp - 0x60], rbx
mov eax, ebx
mov dword [rbp - 0x68], ebx
setg al
inc eax
mov dword [rbp - 0x64], eax
test rcx, rcx
jle 0x18000eaab
mov r9d, dword [r14 + 0x38]
lea rax, [r12 + 0x76]
lea rdx, [r12 + 0x44]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x70]
call fcn.1800036d0
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x18000ea29
mov rdx, qword [rax]
lea r8, [rsi + 0x63]
mov rcx, rsi
cmp rsi, r8
jae 0x18000ea49
movzx eax, byte [rdx]
mov byte [rcx], al
cmp byte [rdx], bl
je 0x18000ea6f
inc rcx
inc rdx
cmp rcx, r8
jb 0x18000ea35
movzx eax, byte [rdx]
lea rdx, [0x18005e2f0]
jmp 0x18000ea68
movzx eax, byte [rcx - 1]
lea rcx, [rcx - 1]
cmp byte [rax + rdx], bl
jl 0x18000ea60
mov byte [rcx], bl
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x18000eaab
mov rcx, qword [rsp + 0x70]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000eaa6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000eec7
call fcn.180026340
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea rax, [rbp - 0x70]
mov dword [rbp + 0x30], 0x244
mov qword [rbp + 0x38], rax
mov rax, 0xffffffffffffffff
mov dword [rbp + 0x40], 8
mov qword [rbp + 0x48], rbx
mov dword [rbp + 0x50], 0x1c4
mov qword [rbp + 0x58], rsi
inc rax
cmp byte [rsi + rax], bl
jne 0x18000eae1
mov dword [rbp + 0x60], eax
lea rax, [rbp - 0x58]
mov qword [rbp + 0x98], rax
lea rax, [rbp - 0x60]
mov qword [rbp + 0xb8], rax
lea rax, [rbp - 0x60]
mov qword [rbp + 0xd8], rax
lea rax, [rbp - 0x64]
mov qword [rbp + 0xf8], rax
lea rax, [rbp + 0x9c0]
mov qword [rbp + 0x118], rax
mov qword [rbp + 0x68], rbx
mov dword [rbp + 0x70], 0x244
mov qword [rbp + 0x78], r12
mov dword [rbp + 0x80], 8
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
mov dword [rbp + 0xd0], 0x244
mov dword [rbp + 0xe0], 8
mov qword [rbp + 0xe8], rbx
mov dword [rbp + 0xf0], 0x1f0
mov dword [rbp + 0x100], 4
mov qword [rbp + 0x108], rbx
mov dword [rbp + 0x110], 0x244
mov dword [rbp + 0x120], 8
mov qword [rbp + 0x128], rbx
test r15b, r15b
jne 0x18000ebec
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 8]
test al, al
je 0x18000ec63
mov r15b, 1
jmp 0x18000ebf2
cmp r15b, 1
jne 0x18000ec63
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov dword [rsp + 0x50], ebx
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x48], rbx
lea r8, [rbp + 0x30]
mov dword [rsp + 0x40], ebx
lea rdx, str.INSERT_INTO_ORG_COUNTER_VALUE_VALUE_VALUE_CODE_OPERATION_NUMBERING_ID_SEPARATED_COUNTER_ID_USAGE_DATE_CREATION_DATE_STATUS__REF_ID__VALUES_________________
mov r10, qword [rax]
mov r9d, 8
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rcx
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [r10 + 0x38]
mov rcx, qword [rdi]
mov rdx, qword [rcx]
mov rcx, rdi
test al, al
jne 0x18000ed36
call rdx
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x18]
cmp dword [rbp - 0x68], 0x491
jne 0x18000ed7e
movzx ecx, byte [rsp + 0x60]
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
cmp eax, 0xa
jl 0x18000e823
test cl, cl
jne 0x18000eeb6
cmp r15b, 1
jne 0x18000ec9a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x18]
mov rbx, qword [rsp + 0x68]
lea rax, str.not_inserted_any_counter_value
mov qword [rsp + 0x30], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
mov dword [rsp + 0x28], 0x78c
lea rax, str.COrganizationManagerBase::useFirstUnusedCounterValue
mov rbx, qword [rbx + 0x10]
lea rcx, [rbp + 0x160]
mov qword [rsp + 0x20], rax
lea r8d, [rdx - 1]
call fcn.18001f990
mov rax, qword [rbx]
lea r8, [rbp + 0x160]
mov r9, rdi
mov edx, 3
mov rcx, rbx
call qword [rax + 0x1a8]
mov eax, 0xfffffffd
mov rsi, qword [rsp + 0xa50]
mov rbx, qword [rsp + 0xa58]
mov r15, qword [rsp + 0xa48]
mov rcx, qword [rbp + 0x930]
xor rcx, rsp
call fcn.180026320
add rsp, 0xa60
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
call rdx
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
mov rax, qword [rbp - 0x70]
mov cl, 1
mov qword [r13 + 0x20], rax
mov rax, qword [rbp - 0x58]
mov qword [r13 + 8], rax
mov rax, qword [r12]
mov qword [r13 + 0x10], rax
mov rax, qword [rbp - 0x60]
mov qword [r13 + 0x28], rax
mov eax, dword [rbp - 0x64]
mov dword [r13 + 0x38], eax
mov rax, qword [rbp + 0x9c0]
mov qword [r13 + 0x30], rax
mov byte [rsp + 0x60], cl
jmp 0x18000ec68
mov rbx, qword [rsp + 0x68]
lea rax, str.failed_query_for_insert_counter_value
mov qword [rsp + 0x30], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
mov dword [rsp + 0x28], 0x772
lea rax, str.COrganizationManagerBase::useFirstUnusedCounterValue
mov rbx, qword [rbx + 0x10]
lea rcx, [rbp + 0x160]
mov qword [rsp + 0x20], rax
lea r8d, [rdx - 1]
call fcn.18001f990
mov r9, rdi
jmp 0x18000ee94
cmp r15b, 1
jne 0x18000ede2
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x18]
mov rbx, qword [rsp + 0x68]
lea rax, str.counter_value_is_out_of_range
mov qword [rsp + 0x30], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
mov dword [rsp + 0x28], 0x785
lea rax, str.COrganizationManagerBase::useFirstUnusedCounterValue
mov rbx, qword [rbx + 0x10]
lea rcx, [rbp + 0x160]
mov qword [rsp + 0x20], rax
lea r8d, [rdx - 1]
call fcn.18001f990
mov rax, qword [rbx]
lea r8, [rbp + 0x160]
mov r9, rdi
mov edx, 3
mov rcx, rbx
call qword [rax + 0x1a8]
mov eax, 0xfffffff7
jmp 0x18000ecff
mov rbx, qword [rsp + 0x68]
lea rax, str.failed_query_to_get_last_used_value_of_separated_counter_range
mov qword [rsp + 0x30], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
mov dword [rsp + 0x28], 0x747
lea rax, str.COrganizationManagerBase::useFirstUnusedCounterValue
mov rbx, qword [rbx + 0x10]
lea rcx, [rbp + 0x160]
mov qword [rsp + 0x20], rax
lea r8d, [rdx - 1]
call fcn.18001f990
xor r9d, r9d
mov rax, qword [rbx]
lea r8, [rbp + 0x160]
mov edx, 3
mov rcx, rbx
call qword [rax + 0x1a8]
mov eax, 0xfffffff9
jmp 0x18000ecff
xor eax, eax
jmp 0x18000ecff
mov eax, 0xfffffff8
jmp 0x18000ed17
call fcn.18002ce64
int3