Function at 0x18000a580
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xa38]
sub rsp, 0xb38
mov rax, qword [0x180065038]
xor rax, rsp
mov qword [rbp + 0xa20], rax
mov r15, rdx
mov rbx, rcx
mov qword [rbp - 0x70], r8
mov qword [rbp - 0x60], r9
mov rsi, qword [rbp + 0xa98]
mov qword [rbp - 0x80], rsi
mov rdi, qword [rbp + 0xaa0]
mov qword [rbp - 0x78], rdi
test rdx, rdx
jne 0x18000a6c1
mov rbx, qword [rcx + 0x10]
lea rax, str.failed
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x4a3
lea rax, str.COrganizationManagerBase::relatedUnitUpdate
mov qword [rsp + 0x20], rax
lea r9, str._s:_d__s.
mov edx, 0x7d0
lea r8d, [rdx - 1]
lea rcx, [rbp + 0x250]
call fcn.18001f990
mov rax, qword [rbx]
xor r9d, r9d
lea r8, [rbp + 0x250]
lea edx, [r15 + 3]
mov rcx, rbx
call qword [rax + 0x1a8]
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x18000a66b
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x18000a666
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000ab3b
mov rcx, r8
call fcn.180026340
xor r14d, r14d
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r14b
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x18000a6b7
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x18000a6b2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000ab41
mov rcx, r8
call fcn.180026340
mov eax, 0xfffffff8
jmp 0x18000a960
xor r14d, r14d
mov qword [rbp - 0x68], r14
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x50]
call fcn.180028b30
xor edx, edx
mov r8d, 0x3e7
lea rcx, [rbp + 0x251]
call fcn.180028b30
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x18000a6fa
mov rdx, qword [rsi]
lea rcx, [rbp + 0x50]
nop
movzx eax, byte [rdx]
mov byte [rcx], al
cmp byte [rdx], r14b
je 0x18000a740
inc rcx
inc rdx
lea rax, [rbp + 0x243]
cmp rcx, rax
jb 0x18000a700
movzx eax, byte [rdx]
lea rdx, [0x18005e2f0]
jmp 0x18000a737
lea rcx, [rcx - 1]
movzx eax, byte [rcx]
cmp byte [rax + rdx], r14b
jl 0x18000a730
mov byte [rcx], r14b
mov dword [rbp - 0x50], 0x244
lea rax, [rbp - 0x70]
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x40], 8
mov qword [rbp - 0x38], r14
mov dword [rbp - 0x30], 0x244
lea rax, [rbp - 0x60]
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], 8
mov qword [rbp - 0x18], r14
mov dword [rsp + 0x60], 0x244
lea rax, [rbp - 0x68]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 8
mov qword [rsp + 0x78], r14
mov rax, qword [r15]
mov rcx, r15
call qword [rax]
mov rcx, qword [rax]
mov r10, qword [rcx + 0x48]
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, 2
lea r8, [rbp - 0x50]
lea rdx, str.SELECT_ID_FROM_ORG_UNITS__WHERE_SECTION____AND_CATEGORY____
mov rcx, rax
call r10
test al, al
jne 0x18000a8bc
lea rax, str.failed_query_for_get_organization_unit
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x4b7
lea rax, str.COrganizationManagerBase::relatedUnitUpdate
mov qword [rsp + 0x20], rax
mov rbx, qword [rbx + 0x10]
lea r9, str._s:_d__s.
mov r8d, 0x7cf
lea edx, [r8 + 1]
lea rcx, [rbp + 0x250]
call fcn.18001f990
mov rax, qword [rbx]
mov r9, r15
lea r8, [rbp + 0x250]
mov edx, 3
mov rcx, rbx
call qword [rax + 0x1a8]
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x18000a869
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x18000a864
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000ab3b
mov rcx, r8
call fcn.180026340
mov byte [rsi], 0
mov qword [rsi + 0x18], 0xf
mov qword [rsi + 0x10], r14
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x18000a8b2
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rdi]
jb 0x18000a8ad
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000ab41
mov rcx, r8
call fcn.180026340
mov eax, 0xfffffff9
jmp 0x18000a960
mov rax, qword [r15]
mov rcx, r15
call qword [rax]
mov rcx, qword [rax]
mov r8, qword [rcx + 0x50]
xor edx, edx
mov rcx, rax
call r8
test al, al
jne 0x18000a98e
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x18000a915
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rsi]
jb 0x18000a910
mov r8, qword [rcx - 8]
sub rcx, r8
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000ab3b
mov rcx, r8
call fcn.180026340
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x18000a95e
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x18000a959
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000ab41
mov rcx, r8
call fcn.180026340
xor eax, eax
mov byte [rdi], 0
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r14
mov rcx, qword [rbp + 0xa20]
xor rcx, rsp
call fcn.180026320
add rsp, 0xb38
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rax, qword [r15]
mov rcx, r15
call qword [rax]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x60]
mov rax, qword [rbp + 0xa90]
test rax, rax
cmove rax, qword [rbp - 0x70]
mov qword [rbp + 0xa90], rax
mov dword [rbp - 0x10], 0x1c4
lea rax, [rbp + 0x50]
mov qword [rbp - 8], rax
lea rcx, [rbp + 0x50]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], r14b
jne 0x18000a9d0
mov dword [rbp], eax
mov qword [rbp + 8], r14
mov dword [rbp + 0x10], 0x244
lea rax, [rbp + 0xa90]
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x20], 8
mov qword [rbp + 0x28], r14
mov dword [rbp + 0x30], 0x244
lea rax, [rbp - 0x68]
mov qword [rbp + 0x38], rax
mov dword [rbp + 0x40], 8
mov qword [rbp + 0x48], r14
mov rax, qword [r15]
mov rcx, r15
call qword [rax]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 8]
mov rax, qword [r15]
mov rcx, r15
call qword [rax]
mov rcx, qword [rax]
mov r10, qword [rcx + 0x38]
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov r9d, 3
lea r8, [rbp - 0x10]
lea rdx, str.UPDATE_ORG_UNITS_SET_NAME_____SECTION____WHERE_ID____
mov rcx, rax
call r10
mov rcx, qword [r15]
mov rdx, qword [rcx]
mov rcx, r15
test al, al
jne 0x18000aaa2
call rdx
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rax, str.failed_query_for_Update_units
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x4ce
jmp 0x18000a7e6
call rdx
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
nop
mov rdx, qword [rsi + 0x18]
test al, al
jne 0x18000a8df
cmp rdx, 0x10
jb 0x18000aaec
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x18000aae7
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18000ab3b
mov rcx, r8
call fcn.180026340
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x18000ab31
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x18000ab2c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x18000ab41
mov rcx, r8
call fcn.180026340
mov eax, 0xffffffff
jmp 0x18000a960
call fcn.18002ce64
nop
call fcn.18002ce64
int3