Function at 0x14006e180
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x1400cce40]
movabs r10, 0xb1a8ae8f5a5da170
lea rcx, [0x1400cce40]
mov rax, qword [rax + 0x18]
call qword [case.0x140071786.0]
add rax, 0x18
mov qword [rbp + 0x40], rax
lea r8, [rbp + 0x40]
mov edx, dword [rdi + 0x18]
call fcn.14006ac14
lea r8, [rbp + 0x40]
mov edx, dword [rdi + 0x18]
mov rcx, rdi
call fcn.14006ae08
mov esi, eax
or r12, 0xffffffffffffffff
xor r15d, r15d
test eax, eax
js 0x14006e3c4
cmp qword [rdi + 0x28], r15
je 0x14006e242
lea rdx, [0x1400bb2f0]
mov rax, r12
inc rax
cmp word [rdx + rax*2], r15w
jne 0x14006e205
mov r8d, eax
lea rcx, [rbp + 0x40]
call fcn.14000543c
mov rdx, qword [rdi + 0x28]
test rdx, rdx
jne 0x14006e229
mov eax, r15d
jmp 0x14006e236
mov rax, r12
inc rax
cmp word [rdx + rax*2], r15w
jne 0x14006e22c
mov r8d, eax
lea rcx, [rbp + 0x40]
call fcn.14000543c
mov rax, qword [0x1400cce40]
movabs r10, 0xb1a8ae8f5a5da170
lea rcx, [0x1400cce40]
mov rax, qword [rax + 0x18]
call qword [case.0x140071786.0]
add rax, 0x18
mov qword [rbp + 0x48], rax
mov r8, qword [rdi + 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 + 0x48]
call fcn.140007774
mov edx, 0x20
lea rcx, [rbp + 0x48]
call fcn.14001eda0
mov rdx, qword [rbp + 0x40]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x48]
call fcn.14000543c
mov edx, 0x29
lea rcx, [rbp + 0x48]
call fcn.14001eda0
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
movabs r10, 0xf791a6dd10db7370
mov rbx, qword [rbp + 0x48]
mov r8, rbx
lea rdx, [0x1400b1a48]
mov rax, qword [rax + 0x38]
call qword [case.0x140071786.0]
mov esi, eax
test eax, eax
js 0x14006e359
mov qword [rbp - 0x10], r15
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
movabs r10, 0xa2c927ca3ed3c970
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 8]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
lea r8, str.:s_f
xor edx, edx
mov rax, qword [rax + 0x20]
call qword [case.0x140071786.0]
mov esi, eax
test eax, eax
js 0x14006e338
mov r8, r14
mov rdx, qword [rbp - 0x10]
mov rcx, rdi
call fcn.14006b164
mov esi, eax
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14006e359
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140071786.0]
nop
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x14006e396
test byte [rcx + 0x1c], 2
je 0x14006e396
cmp byte [rcx + 0x19], 5
jb 0x14006e396
mov eax, dword [r14 + 8]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], eax
mov r9, rbx
mov rcx, qword [rcx + 0x10]
call fcn.140075694
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14006e3c4
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
nop
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14006e3f5
mov rcx, qword [rdx]
mov rax, qword [rcx]
movabs r10, 0xee98078a7ad38370
mov rax, qword [rax + 8]
call qword [case.0x140071786.0]
mov eax, esi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret