Function at 0x180007420
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x15a0]
mov eax, 0x16a0
call fcn.180026e30
sub rsp, rax
mov rax, qword [0x180065038]
xor rax, rsp
mov qword [rbp + 0x1590], rax
mov r15, r9
mov rdi, rdx
mov r14, rcx
test rdx, rdx
jne 0x1800074c1
mov rbx, qword [rcx + 0x10]
lea rax, str.failed
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1f0
lea rax, str.COrganizationManagerBase::getAllBranchUnitsOfParentCount
mov qword [rsp + 0x20], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
lea r8d, [rdx - 1]
lea rcx, [rbp + 0xdc0]
call fcn.18001f990
mov rax, qword [rbx]
xor r9d, r9d
lea r8, [rbp + 0xdc0]
lea edx, [rdi + 3]
mov rcx, rbx
call qword [rax + 0x1a8]
lea eax, [rdi - 8]
jmp 0x1800079b6
mov qword [rbp + 0xd08], r8
mov dword [rbp + 0xd00], 0x244
mov dword [rbp + 0xd10], 8
xor ebx, ebx
mov qword [rbp + 0xd18], rbx
lea rax, [rbp + 0x15f0]
mov qword [rbp + 0xd28], rax
mov dword [rbp + 0xd20], 0x244
mov dword [rbp + 0xd30], 8
mov qword [rbp + 0xd38], rbx
lea rax, [rbp + 0x15f0]
mov qword [rbp + 0xd48], rax
mov dword [rbp + 0xd40], 0x244
mov dword [rbp + 0xd50], 8
mov qword [rbp + 0xd58], rbx
lea esi, [rbx + 3]
mov qword [rsp + 0x60], rbx
mov qword [rbp + 0x500], rbx
mov qword [rbp + 0x4f8], rbx
mov qword [rbp - 0x70], rbx
mov qword [rbp + 0x510], rbx
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x4e0], xmm0
mov qword [rbp + 0x4f0], rbx
mov qword [rbp + 0x508], rbx
mov qword [rbp + 0x190], rbx
mov qword [rbp + 0x518], rbx
mov qword [rbp + 0xcd8], rbx
mov qword [rbp + 0xce0], rbx
mov qword [rbp + 0xce8], rbx
mov dword [rbp + 0xcf0], ebx
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp - 0x68]
call fcn.180028b30
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x198], xmm0
mov dword [rbp + 0x1a8], eax
xorps xmm1, xmm1
movups xmmword [rbp + 0x1ac], xmm1
mov dword [rbp + 0x1bc], eax
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x1c0]
call fcn.180028b30
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x3b4], xmm0
movups xmmword [rbp + 0x3c4], xmm0
movups xmmword [rbp + 0x3d4], xmm0
movups xmmword [rbp + 0x3e4], xmm0
movups xmmword [rbp + 0x3f4], xmm0
movups xmmword [rbp + 0x404], xmm0
mov dword [rbp + 0x414], eax
xor edx, edx
mov r8d, 0xc8
lea rcx, [rbp + 0x418]
call fcn.180028b30
xor edx, edx
mov r8d, 0xc8
lea rcx, [rbp + 0x520]
call fcn.180028b30
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x5e8], xmm0
movups xmmword [rbp + 0x5f8], xmm0
movups xmmword [rbp + 0x608], xmm0
mov word [rbp + 0x618], ax
xorps xmm1, xmm1
movups xmmword [rbp + 0x61a], xmm1
movups xmmword [rbp + 0x62a], xmm1
movups xmmword [rbp + 0x63a], xmm1
mov word [rbp + 0x64a], ax
movups xmmword [rbp + 0x64c], xmm0
movups xmmword [rbp + 0x65c], xmm0
movups xmmword [rbp + 0x66c], xmm0
mov word [rbp + 0x67c], ax
movups xmmword [rbp + 0x67e], xmm0
mov dword [rbp + 0x68e], eax
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x692]
call fcn.180028b30
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x886]
call fcn.180028b30
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xa7a], xmm0
movups xmmword [rbp + 0xa8a], xmm0
movups xmmword [rbp + 0xa9a], xmm0
movups xmmword [rbp + 0xaaa], xmm0
movups xmmword [rbp + 0xaba], xmm0
movups xmmword [rbp + 0xaca], xmm0
mov dword [rbp + 0xada], eax
xorps xmm1, xmm1
movups xmmword [rbp + 0xade], xmm1
movups xmmword [rbp + 0xaee], xmm1
movups xmmword [rbp + 0xafe], xmm1
movups xmmword [rbp + 0xb0e], xmm1
movups xmmword [rbp + 0xb1e], xmm1
movups xmmword [rbp + 0xb2e], xmm1
mov dword [rbp + 0xb3e], eax
xor edx, edx
mov r8d, 0xc8
lea rcx, [rbp + 0xb42]
call fcn.180028b30
xor edx, edx
mov r8d, 0xc8
lea rcx, [rbp + 0xc0a]
call fcn.180028b30
mov r9, qword [rbp + 0x15f0]
lea r8, [rbp - 0x70]
mov rdx, rdi
mov rcx, r14
call fcn.180009de0
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
mov r8d, 0xb8
lea rdx, str.SELECT_COUNT___FROM_ORG_UNITS_u_JOIN_ORG_ORGANIZATION_UNIT_ou_ON_ou.UNIT_ID__u.ID__WHERE_u.PARENT_ID__and__ou.ORG_ID__OR_ou.ORG_ID_IN_SELECT_ID_FROM_ORG_INFO_WHERE_PARENT_ID____
lea rcx, [rsp + 0x68]
call fcn.18001e4c0
nop
cmp qword [rbp + 0x510], rbx
jle 0x180007811
lea rax, [rbp + 0x510]
mov qword [rbp + 0xd68], rax
mov dword [rbp + 0xd60], 0x244
mov dword [rbp + 0xd70], 8
mov qword [rbp + 0xd78], rbx
lea rax, [rbp + 0x510]
mov qword [rbp + 0xd88], rax
mov dword [rbp + 0xd80], 0x244
mov dword [rbp + 0xd90], 8
mov qword [rbp + 0xd98], rbx
lea esi, [rbx + 5]
lea r8d, [rbx + 0x4f]
lea rdx, [0x18005a740]
lea rcx, [rsp + 0x68]
call fcn.18001fb90
mov r8d, 1
lea rdx, [0x18005d428]
lea rcx, [rsp + 0x68]
call fcn.18001fb90
mov rdx, qword [rbp + 0x15f8]
test rdx, rdx
je 0x18000788f
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x180007840
test rax, rax
je 0x18000788f
mov ecx, esi
shl rcx, 5
mov qword [rbp + rcx + 0xd08], rdx
mov dword [rbp + rcx + 0xd10], eax
mov dword [rbp + rcx + 0xd00], 0x1c4
mov qword [rbp + rcx + 0xd18], rbx
inc esi
mov r8d, 0x23
lea rdx, str._AND_u.NAME_LIKE_CONCAT_______
lea rcx, [rsp + 0x68]
call fcn.18001fb90
mov dword [rsp + 0x40], 0x244
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 8
mov qword [rsp + 0x58], rbx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov rcx, rax
mov rax, qword [rax]
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
mov dword [rsp + 0x28], 1
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], r8
mov r9d, esi
lea r8, [rbp + 0xd00]
call qword [rax + 0x48]
test al, al
jne 0x180007951
mov rbx, qword [r14 + 0x10]
lea rax, str.failed_query_for_get_units_count
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x233
lea rax, str.COrganizationManagerBase::getAllBranchUnitsOfParentCount
mov qword [rsp + 0x20], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
lea r8d, [rdx - 1]
lea rcx, [rbp + 0xdc0]
call fcn.18001f990
mov rax, qword [rbx]
mov r9, rdi
lea r8, [rbp + 0xdc0]
mov edx, 3
mov rcx, rbx
call qword [rax + 0x1a8]
mov ebx, 0xfffffff9
jmp 0x18000797c
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 eax, dword [rsp + 0x60]
mov dword [r15], eax
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x1800079b4
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800079af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800079dc
call fcn.180026340
mov eax, ebx
mov rcx, qword [rbp + 0x1590]
xor rcx, rsp
call fcn.180026320
mov rbx, qword [rsp + 0x16e0]
add rsp, 0x16a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.18002ce64
int3
add rcx, 8
jmp 0x180007420