Function at 0x1400710c0
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r13, rdx
mov r14, rcx
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rbp + 0x50], rax
lea r8, [rbp + 0x50]
mov edx, dword [r14 + 0x18]
call fcn.1400706cc
lea r8, [rbp + 0x50]
mov edx, dword [r14 + 0x18]
mov rcx, r14
call fcn.14007014c
mov r15d, eax
xor r12d, r12d
test eax, eax
js 0x1400712f3
cmp qword [r14 + 0x28], r12
je 0x14007117a
lea r8d, [r12 + 5]
lea rdx, [0x140122e20]
lea rcx, [rbp + 0x50]
call fcn.1400046e8
mov rdx, qword [r14 + 0x28]
test rdx, rdx
jne 0x140071160
mov eax, r12d
jmp 0x14007116e
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r12w
jne 0x140071164
mov r8d, eax
lea rcx, [rbp + 0x50]
call fcn.1400046e8
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rbp + 0x58], rax
mov r8, qword [r14 + 0x20]
mov qword [rsp + 0x20], r8
mov r9, r8
lea rdx, str.GROUP_ON__s_AGGREGATE_ChildCount___ORDER_BY__s_ASC_OVER__SELECT__s_FROM_SystemIndex_WHERE_System.Shell.SFGAOFlagsStrings__SOME_ARRAY_stream__AND_NOT_System.Shell.SFGAOFlagsStrings__SOME_ARRAY_hidden__AND_NOT_System.Shell.SFGAOFlagsStrings__SOME_ARRAY_link__AND_System.Shell.OmitFromView___true
lea rcx, [rbp + 0x58]
call fcn.14000916c
mov edx, 0x20
lea rcx, [rbp + 0x58]
call fcn.1400256c4
mov rdx, qword [rbp + 0x50]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x58]
call fcn.1400046e8
mov edx, 0x29
lea rcx, [rbp + 0x58]
call fcn.1400256c4
mov rsi, qword [r14 + 0x10]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x38]
mov rcx, rbx
call qword [fcn.140009050]
mov rdi, qword [rbp + 0x58]
mov r8, rdi
lea rdx, [0x140127788]
mov rcx, rsi
call rbx
mov r15d, eax
test eax, eax
js 0x140071288
mov qword [rbp - 0x20], r12
mov rsi, qword [r14 + 0x10]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [fcn.140009050]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, str.:s_f
xor edx, edx
mov rcx, rsi
call rbx
mov r15d, eax
test eax, eax
js 0x14007126a
mov r8, r13
mov rdx, qword [rbp - 0x20]
mov rcx, r14
call fcn.14007046c
mov r15d, eax
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x140071288
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
mov rcx, rsi
call qword [fcn.140009050]
mov rcx, rbx
call rsi
lea rax, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rax
je 0x1400712c6
test byte [rcx + 0x1c], 2
je 0x1400712c6
cmp byte [rcx + 0x19], 5
jb 0x1400712c6
mov rax, qword [r13 + 8]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], eax
mov r9, rdi
mov rcx, qword [rcx + 0x10]
call fcn.14006f0bc
nop
lea rsi, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x1400712f3
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
mov rdx, rsi
mov rcx, rdi
call rbx
nop
mov rsi, qword [rbp + 0x50]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x140071321
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov eax, r15d
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret