Function at 0x180022370
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xb98]
sub rsp, 0xc98
mov rax, qword [0x180065038]
xor rax, rsp
mov qword [rbp + 0xb80], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rbp - 0x80], r9
xor ebx, ebx
mov dword [rsp + 0x40], ebx
test rdx, rdx
jne 0x180004c2f
mov rbx, qword [rcx + 0x10]
lea rax, str.failed
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xb9
lea rax, str.COrganizationManagerBase::getUnitWithOrgUnitId
mov qword [rsp + 0x20], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
lea r8d, [rdx - 1]
lea rcx, [rbp + 0x3b0]
call fcn.18001f990
mov rax, qword [rbx]
xor r9d, r9d
lea r8, [rbp + 0x3b0]
lea edx, [rdi + 3]
mov rcx, rbx
call qword [rax + 0x1a8]
lea eax, [rdi - 8]
jmp 0x1800051fb
mov dword [rbp + 0x90], 0x244
lea rax, [rbp - 0x80]
mov qword [rbp + 0x98], rax
mov dword [rbp + 0xa0], 8
mov qword [rbp + 0xa8], rbx
mov dword [rbp + 0xb0], 0x244
mov qword [rbp + 0xb8], r8
mov dword [rbp + 0xc0], 8
mov qword [rbp + 0xc8], rbx
mov dword [rbp + 0xd0], 0x244
lea rax, [r8 + 0x10]
mov qword [rbp + 0xd8], rax
mov dword [rbp + 0xe0], 8
mov qword [rbp + 0xe8], rbx
mov dword [rbp + 0xf0], 0x244
lea rax, [r8 + 8]
mov qword [rbp + 0xf8], rax
mov dword [rbp + 0x100], 8
mov qword [rbp + 0x108], rbx
mov dword [rbp + 0x110], 0x244
lea rax, [r8 + 0x18]
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x120], 8
mov qword [rbp + 0x128], rbx
mov dword [rbp + 0x130], 0x244
lea rax, [r8 + 0x30]
mov qword [rbp + 0x138], rax
mov dword [rbp + 0x140], 8
mov qword [rbp + 0x148], rbx
mov dword [rbp + 0x150], 0x244
lea rax, [r8 + 0x38]
mov qword [rbp + 0x158], rax
mov dword [rbp + 0x160], 8
mov qword [rbp + 0x168], rbx
mov dword [rbp + 0x170], 0x244
lea rax, [r8 + 0x20]
mov qword [rbp + 0x178], rax
mov dword [rbp + 0x180], 8
mov qword [rbp + 0x188], rbx
mov dword [rbp + 0x190], 0x1c4
lea rax, [r8 + 0x40]
mov qword [rbp + 0x198], rax
mov dword [rbp + 0x1a0], 0x32
mov qword [rbp + 0x1a8], rbx
mov dword [rbp + 0x1b0], 0x1c4
lea rax, [r8 + 0x72]
mov qword [rbp + 0x1b8], rax
mov dword [rbp + 0x1c0], 0x1f4
mov qword [rbp + 0x1c8], rbx
mov dword [rbp + 0x1d0], 0x1c4
lea rax, [r8 + 0x266]
mov qword [rbp + 0x1d8], rax
mov dword [rbp + 0x1e0], 0xc8
mov qword [rbp + 0x1e8], rbx
mov dword [rbp + 0x1f0], 0x1c4
lea rax, [r8 + 0x32e]
mov qword [rbp + 0x1f8], rax
mov dword [rbp + 0x200], 0xc8
mov qword [rbp + 0x208], rbx
mov dword [rbp + 0x210], 0x1c4
lea rax, [r8 + 0x808]
mov qword [rbp + 0x218], rax
mov dword [rbp + 0x220], 0x64
mov qword [rbp + 0x228], rbx
mov dword [rbp + 0x230], 0x1c4
lea rax, [r8 + 0x86c]
mov qword [rbp + 0x238], rax
mov dword [rbp + 0x240], 0x64
mov qword [rbp + 0x248], rbx
mov dword [rbp + 0x250], 0x1c4
lea rax, [r8 + 0x3f6]
mov qword [rbp + 0x258], rax
mov dword [rbp + 0x260], 0x3e8
mov qword [rbp + 0x268], rbx
mov dword [rbp + 0x270], 0x244
lea rax, [r8 + 0x28]
mov qword [rbp + 0x278], rax
mov dword [rbp + 0x280], 8
mov qword [rbp + 0x288], rbx
mov dword [rbp + 0x290], 0x244
lea rax, [r8 + 0x7e8]
mov qword [rbp + 0x298], rax
mov dword [rbp + 0x2a0], 8
mov qword [rbp + 0x2a8], rbx
mov dword [rbp + 0x2b0], 0x244
lea rax, [r8 + 0x7f0]
mov qword [rbp + 0x2b8], rax
mov dword [rbp + 0x2c0], 8
mov qword [rbp + 0x2c8], rbx
mov dword [rbp + 0x2d0], 0x244
lea rax, [r8 + 0x7f8]
mov qword [rbp + 0x2d8], rax
mov dword [rbp + 0x2e0], 8
mov qword [rbp + 0x2e8], rbx
mov dword [rbp + 0x2f0], 0x244
lea rax, [r8 + 0x800]
mov qword [rbp + 0x2f8], rax
mov dword [rbp + 0x300], 8
mov qword [rbp + 0x308], rbx
mov dword [rbp + 0x310], 0x244
lea rax, [r8 + 0xd80]
mov qword [rbp + 0x318], rax
mov dword [rbp + 0x320], 8
mov qword [rbp + 0x328], rbx
mov dword [rbp + 0x330], 0x244
lea rax, [r8 + 0xd88]
mov qword [rbp + 0x338], rax
mov dword [rbp + 0x340], 8
mov qword [rbp + 0x348], rbx
mov dword [rbp + 0x350], 0x1f0
lea rax, [r8 + 0xd90]
mov qword [rbp + 0x358], rax
mov dword [rbp + 0x360], 4
mov qword [rbp + 0x368], rbx
mov dword [rbp + 0x370], 0x1f0
lea rax, [r8 + 0xd94]
mov qword [rbp + 0x378], rax
mov dword [rbp + 0x380], 4
mov qword [rbp + 0x388], rbx
mov dword [rbp + 0x390], 0x1f0
lea rax, [r8 + 0xd98]
mov qword [rbp + 0x398], rax
mov dword [rbp + 0x3a0], 4
mov qword [rbp + 0x3a8], rbx
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x70]
call fcn.180028b30
lea rcx, [rbp - 0x70]
call fcn.18001f6f0
nop
lea rdx, str.SELECT_u.ID__ou.ID__ou.org_id__ou.SORT_ID__u.SECTION__u.CATEGORY__u.PARENT_ID__u.PREFIX__u.NAME__u.STATE__u.CITY__u.WS_CODE__u.TFN__u.DISCRIPTION__u.MANAGER__u.CREATED_DATE__u.MODIFIED_DATE__u.AUTHOR_ID__u.MODIFIER__u.INSURANCE_ACC__u.TAX_ACC__u.INSURANCE_D1__u.INSURANCE_D2__u.WORK_PLACE_STATUS_FROM_ORG_UNITS_u__JOIN_ORG_ORGANIZATION_UNIT_ou_ON_ou.UNIT_ID__U.ID__WHERE_ou.ID___
lea rcx, [rbp - 0x60]
call fcn.180015ce0
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov r14, 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 + 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x18000509d
mov rax, qword [rbp - 0x18]
mov r8, qword [rax]
test r8, r8
je 0x18000509d
mov rax, qword [rbp - 0x38]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x10]
cmovb r8, qword [rbp + 0x10]
sub r8, rdx
jmp 0x1800050ce
test cl, 4
jne 0x1800050c4
mov rax, qword [rbp - 0x20]
mov rcx, qword [rax]
test rcx, rcx
je 0x1800050c4
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax]
mov rax, qword [rbp - 8]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x1800050ce
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x1800050de
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], 0x18
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rbp + 0x90]
mov rcx, r14
call r15
test al, al
sete r14b
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x180005159
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005154
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000521a
call fcn.180026340
test r14b, r14b
je 0x1800051c0
mov rbx, qword [rsi + 0x10]
lea rax, str.failed_query_for_get_organization_unit
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xe2
lea rax, str.COrganizationManagerBase::getUnitWithOrgUnitId
mov qword [rsp + 0x20], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
lea r8d, [rdx - 1]
lea rcx, [rbp + 0x3b0]
call fcn.18001f990
mov rax, qword [rbx]
mov r9, rdi
lea r8, [rbp + 0x3b0]
mov edx, 3
mov rcx, rbx
call qword [rax + 0x1a8]
mov ebx, 0xfffffff9
jmp 0x1800051f0
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 0x1800051de
mov ebx, 0xfffffffd
jmp 0x1800051f0
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 - 0x70]
call fcn.18001d9a0
mov eax, ebx
mov rcx, qword [rbp + 0xb80]
xor rcx, rsp
call fcn.180026320
add rsp, 0xc98
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18002ce64
nop
add rcx, 8
jmp 0x180004b90