Function at 0x18000be50
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1648]
mov eax, 0x1748
call fcn.180026e30
sub rsp, rax
mov rax, qword [0x180065038]
xor rax, rsp
mov qword [rbp + 0x1630], rax
mov r15, r9
mov rsi, r8
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 0x60], r8
xor ebx, ebx
mov dword [rsp + 0x40], ebx
test rdx, rdx
jne 0x18000befb
mov rbx, qword [rcx + 0x10]
lea rax, str.failed
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x5a8
lea rax, str.COrganizationManagerBase::getPositionsCount
mov qword [rsp + 0x20], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
lea r8d, [rdx - 1]
lea rcx, [rbp + 0xe60]
call fcn.18001f990
mov rax, qword [rbx]
xor r9d, r9d
lea r8, [rbp + 0xe60]
lea edx, [rdi + 3]
mov rcx, rbx
call qword [rax + 0x1a8]
lea eax, [rdi - 8]
jmp 0x18000c3a1
mov qword [rbp + 0x620], rbx
mov qword [rbp + 0x618], rbx
mov qword [rbp + 0xb0], rbx
mov qword [rbp + 0x630], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x600], xmm0
mov qword [rbp + 0x610], rbx
mov qword [rbp + 0x628], rbx
mov qword [rbp + 0x2b0], rbx
mov qword [rbp + 0x638], rbx
mov qword [rbp + 0xdf8], rbx
mov qword [rbp + 0xe00], rbx
mov qword [rbp + 0xe08], rbx
mov dword [rbp + 0xe10], ebx
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0xb8]
call fcn.180028b30
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x2b8], xmm0
mov dword [rbp + 0x2c8], eax
xorps xmm1, xmm1
movups xmmword [rbp + 0x2cc], xmm1
mov dword [rbp + 0x2dc], eax
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x2e0]
call fcn.180028b30
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x4d4], xmm0
movups xmmword [rbp + 0x4e4], xmm0
movups xmmword [rbp + 0x4f4], xmm0
movups xmmword [rbp + 0x504], xmm0
movups xmmword [rbp + 0x514], xmm0
movups xmmword [rbp + 0x524], xmm0
mov dword [rbp + 0x534], eax
xor edx, edx
mov r8d, 0xc8
lea rcx, [rbp + 0x538]
call fcn.180028b30
xor edx, edx
mov r8d, 0xc8
lea rcx, [rbp + 0x640]
call fcn.180028b30
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x708], xmm0
movups xmmword [rbp + 0x718], xmm0
movups xmmword [rbp + 0x728], xmm0
mov word [rbp + 0x738], ax
xorps xmm1, xmm1
movups xmmword [rbp + 0x73a], xmm1
movups xmmword [rbp + 0x74a], xmm1
movups xmmword [rbp + 0x75a], xmm1
mov word [rbp + 0x76a], ax
movups xmmword [rbp + 0x76c], xmm0
movups xmmword [rbp + 0x77c], xmm0
movups xmmword [rbp + 0x78c], xmm0
mov word [rbp + 0x79c], ax
movups xmmword [rbp + 0x79e], xmm0
mov dword [rbp + 0x7ae], eax
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x7b2]
call fcn.180028b30
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x9a6]
call fcn.180028b30
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xb9a], xmm0
movups xmmword [rbp + 0xbaa], xmm0
movups xmmword [rbp + 0xbba], xmm0
movups xmmword [rbp + 0xbca], xmm0
movups xmmword [rbp + 0xbda], xmm0
movups xmmword [rbp + 0xbea], xmm0
mov dword [rbp + 0xbfa], eax
xorps xmm1, xmm1
movups xmmword [rbp + 0xbfe], xmm1
movups xmmword [rbp + 0xc0e], xmm1
movups xmmword [rbp + 0xc1e], xmm1
movups xmmword [rbp + 0xc2e], xmm1
movups xmmword [rbp + 0xc3e], xmm1
movups xmmword [rbp + 0xc4e], xmm1
mov dword [rbp + 0xc5e], eax
xor edx, edx
mov r8d, 0xc8
lea rcx, [rbp + 0xc62]
call fcn.180028b30
xor edx, edx
mov r8d, 0xc8
lea rcx, [rbp + 0xd2a]
call fcn.180028b30
mov r9, rsi
lea r8, [rbp + 0xb0]
mov rdx, rdi
mov rcx, r14
call fcn.180009de0
mov dword [rbp + 0xe20], 0x244
lea rax, [rbp - 0x60]
mov qword [rbp + 0xe28], rax
mov dword [rbp + 0xe30], 8
mov qword [rbp + 0xe38], rbx
mov dword [rbp + 0xe40], 0x244
lea rax, [rbp - 0x60]
mov qword [rbp + 0xe48], rax
mov dword [rbp + 0xe50], 8
mov qword [rbp + 0xe58], rbx
mov dword [rbp - 0x80], 0x1f0
mov qword [rbp - 0x78], r15
mov dword [rbp - 0x70], 8
mov qword [rbp - 0x68], rbx
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x50]
call fcn.180028b30
lea rcx, [rbp - 0x50]
call fcn.18001f6f0
nop
lea rdx, str.SELECT_COUNT_DISTINCT_P_ID___FROM_ORG_POSITION_UNIT_WHERE__ORG_ID____OR_ORG_ID_IN__SELECT_ID_FROM_ORG_INFO_WHERE_PARENT_ID_____
lea rcx, [rbp - 0x40]
call fcn.180015ce0
mov rsi, qword [rbp + 0x16a0]
test rsi, rsi
jle 0x18000c1ea
lea rdx, str._AND_P_ID_
lea rcx, [rbp - 0x40]
call fcn.180015ce0
mov rdx, rsi
mov rcx, rax
call fcn.180013ec0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rsi, rax
mov rax, qword [rax]
mov r15, qword [rax + 0x48]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [0x18005e420]
movdqu xmmword [rsp + 0x58], xmm1
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x40], 2
movups xmmword [rsp + 0x68], xmm0
mov rcx, qword [rbp + 0x38]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x18000c251
mov rax, qword [rbp + 8]
mov r8, qword [rax]
test r8, r8
je 0x18000c251
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x30]
cmovb r8, qword [rbp + 0x30]
sub r8, rdx
jmp 0x18000c282
test cl, 4
jne 0x18000c278
mov rax, qword [rbp]
mov rcx, qword [rax]
test rcx, rcx
je 0x18000c278
mov rax, qword [rbp - 0x20]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x18]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x18000c282
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x18000c292
lea rcx, [rsp + 0x48]
call fcn.18001d770
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov dword [rsp + 0x28], 1
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, [rbp + 0xe20]
mov rcx, rsi
call r15
test al, al
sete sil
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18000c30a
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c305
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c3c0
call fcn.180026340
test sil, sil
je 0x18000c371
mov rbx, qword [r14 + 0x10]
lea rax, str.failed_query_for_get_positions
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x5bb
lea rax, str.COrganizationManagerBase::getPositionsCount
mov qword [rsp + 0x20], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
lea r8d, [rdx - 1]
lea rcx, [rbp + 0xe60]
call fcn.18001f990
mov rax, qword [rbx]
mov r9, rdi
lea r8, [rbp + 0xe60]
mov edx, 3
mov rcx, rbx
call qword [rax + 0x1a8]
mov ebx, 0xfffffff9
jmp 0x18000c396
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 rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x60]
nop
lea rcx, [rbp - 0x50]
call fcn.18001d9a0
mov eax, ebx
mov rcx, qword [rbp + 0x1630]
xor rcx, rsp
call fcn.180026320
add rsp, 0x1748
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18002ce64
nop
int3
add rcx, 8
jmp 0x18000be50