Function at 0x180004500
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xb78]
sub rsp, 0xc78
mov rax, qword [0x180065038]
xor rax, rsp
mov qword [rbp + 0xb60], rax
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 0x80], r9
xor ebx, ebx
mov dword [rsp + 0x40], ebx
test rdx, rdx
jne 0x18000459f
mov rbx, qword [rcx + 0x10]
lea rax, str.failed
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x7f
lea rax, str.COrganizationManagerBase::getUnit
mov qword [rsp + 0x20], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
lea r8d, [rdx - 1]
lea rcx, [rbp + 0x390]
call fcn.18001f990
mov rax, qword [rbx]
xor r9d, r9d
lea r8, [rbp + 0x390]
lea edx, [rdi + 3]
mov rcx, rbx
call qword [rax + 0x1a8]
lea eax, [rdi - 8]
jmp 0x180004b6a
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 + 0x18]
mov qword [rbp + 0xf8], rax
mov dword [rbp + 0x100], 8
mov qword [rbp + 0x108], rbx
mov dword [rbp + 0x110], 0x244
lea rax, [r8 + 0x30]
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x120], 8
mov qword [rbp + 0x128], rbx
mov dword [rbp + 0x130], 0x244
lea rax, [r8 + 0x38]
mov qword [rbp + 0x138], rax
mov dword [rbp + 0x140], 8
mov qword [rbp + 0x148], rbx
mov dword [rbp + 0x150], 0x244
lea rax, [r8 + 0x20]
mov qword [rbp + 0x158], rax
mov dword [rbp + 0x160], 8
mov qword [rbp + 0x168], rbx
mov dword [rbp + 0x170], 0x1c4
lea rax, [r8 + 0x40]
mov qword [rbp + 0x178], rax
mov dword [rbp + 0x180], 0x32
mov qword [rbp + 0x188], rbx
mov dword [rbp + 0x190], 0x1c4
lea rax, [r8 + 0x72]
mov qword [rbp + 0x198], rax
mov dword [rbp + 0x1a0], 0x1f4
mov qword [rbp + 0x1a8], rbx
mov dword [rbp + 0x1b0], 0x1c4
lea rax, [r8 + 0x266]
mov qword [rbp + 0x1b8], rax
mov dword [rbp + 0x1c0], 0xc8
mov qword [rbp + 0x1c8], rbx
mov dword [rbp + 0x1d0], 0x1c4
lea rax, [r8 + 0x32e]
mov qword [rbp + 0x1d8], rax
mov dword [rbp + 0x1e0], 0xc8
mov qword [rbp + 0x1e8], rbx
mov dword [rbp + 0x1f0], 0x1c4
lea rax, [r8 + 0x808]
mov qword [rbp + 0x1f8], rax
mov dword [rbp + 0x200], 0x64
mov qword [rbp + 0x208], rbx
mov dword [rbp + 0x210], 0x1c4
lea rax, [r8 + 0x86c]
mov qword [rbp + 0x218], rax
mov dword [rbp + 0x220], 0x64
mov qword [rbp + 0x228], rbx
mov dword [rbp + 0x230], 0x1c4
lea rax, [r8 + 0x3f6]
mov qword [rbp + 0x238], rax
mov dword [rbp + 0x240], 0x3e8
mov qword [rbp + 0x248], rbx
mov dword [rbp + 0x250], 0x244
lea rax, [r8 + 0x28]
mov qword [rbp + 0x258], rax
mov dword [rbp + 0x260], 8
mov qword [rbp + 0x268], rbx
mov dword [rbp + 0x270], 0x244
lea rax, [r8 + 0x7e8]
mov qword [rbp + 0x278], rax
mov dword [rbp + 0x280], 8
mov qword [rbp + 0x288], rbx
mov dword [rbp + 0x290], 0x244
lea rax, [r8 + 0x7f0]
mov qword [rbp + 0x298], rax
mov dword [rbp + 0x2a0], 8
mov qword [rbp + 0x2a8], rbx
mov dword [rbp + 0x2b0], 0x244
lea rax, [r8 + 0x7f8]
mov qword [rbp + 0x2b8], rax
mov dword [rbp + 0x2c0], 8
mov qword [rbp + 0x2c8], rbx
mov dword [rbp + 0x2d0], 0x244
lea rax, [r8 + 0x800]
mov qword [rbp + 0x2d8], rax
mov dword [rbp + 0x2e0], 8
mov qword [rbp + 0x2e8], rbx
mov dword [rbp + 0x2f0], 0x244
lea rax, [r8 + 0xd80]
mov qword [rbp + 0x2f8], rax
mov dword [rbp + 0x300], 8
mov qword [rbp + 0x308], rbx
mov dword [rbp + 0x310], 0x244
lea rax, [r8 + 0xd88]
mov qword [rbp + 0x318], rax
mov dword [rbp + 0x320], 8
mov qword [rbp + 0x328], rbx
mov dword [rbp + 0x330], 0x1f0
lea rax, [r8 + 0xd90]
mov qword [rbp + 0x338], rax
mov dword [rbp + 0x340], 4
mov qword [rbp + 0x348], rbx
mov dword [rbp + 0x350], 0x1f0
lea rax, [r8 + 0xd94]
mov qword [rbp + 0x358], rax
mov dword [rbp + 0x360], 4
mov qword [rbp + 0x368], rbx
mov dword [rbp + 0x370], 0x1f0
lea rax, [r8 + 0xd98]
mov qword [rbp + 0x378], rax
mov dword [rbp + 0x380], 4
mov qword [rbp + 0x388], rbx
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x70]
call fcn.180028b30
lea rcx, [rbp - 0x70]
call fcn.18001f6f0
nop
mov rsi, qword [rbp + 0xbd0]
lea rcx, [rbp - 0x60]
test rsi, rsi
jle 0x180004999
lea rdx, str.SELECT_u.ID__ou.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_u.ID____AND_ou.ORG_ID__
call fcn.180015ce0
mov rdx, rsi
mov rcx, rax
call fcn.180013ec0
jmp 0x1800049a5
lea rdx, str.SELECT_u.ID__u.ID__u.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__WHERE_u.ID____
call fcn.180015ce0
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 + 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x180004a0c
mov rax, qword [rbp - 0x18]
mov r8, qword [rax]
test r8, r8
je 0x180004a0c
mov rax, qword [rbp - 0x38]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x10]
cmovb r8, qword [rbp + 0x10]
sub r8, rdx
jmp 0x180004a3d
test cl, 4
jne 0x180004a33
mov rax, qword [rbp - 0x20]
mov rcx, qword [rax]
test rcx, rcx
je 0x180004a33
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 0x180004a3d
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x180004a4d
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], 0x17
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rbp + 0x90]
mov rcx, rsi
call r15
test al, al
sete sil
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x180004ac8
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004ac3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004b89
call fcn.180026340
test sil, sil
je 0x180004b2f
mov rbx, qword [r14 + 0x10]
lea rax, str.failed_query_for_get_organization_unit
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xac
lea rax, str.COrganizationManagerBase::getUnit
mov qword [rsp + 0x20], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
lea r8d, [rdx - 1]
lea rcx, [rbp + 0x390]
call fcn.18001f990
mov rax, qword [rbx]
mov r9, rdi
lea r8, [rbp + 0x390]
mov edx, 3
mov rcx, rbx
call qword [rax + 0x1a8]
mov ebx, 0xfffffff9
jmp 0x180004b5f
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 0x180004b4d
mov ebx, 0xfffffffd
jmp 0x180004b5f
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 + 0xb60]
xor rcx, rsp
call fcn.180026320
add rsp, 0xc78
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18002ce64
nop
int3