Function at 0x14006c5c4
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, 0x70
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r12, rdx
mov rdi, rcx
lea rdx, str.SELECT_System.ItemNameDisplay__System.FileAttributes_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_AND_System.ContentType_IS_NOT_NULL
lea rcx, [rbp + 0x50]
call fcn.140004a80
nop
xor r13d, r13d
mov ebx, r13d
mov r14d, r13d
mov esi, r13d
lea r15, [0x1400e3ef8]
mov r8d, dword [rsi + r15]
lea rdx, [rbp - 0x18]
mov rcx, qword [rdi + 8]
call fcn.14006cd3c
mov rax, qword [rbp - 0x10]
add r14d, dword [rax + 8]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsi, 4
cmp rsi, 0x10
jb 0x14006c60f
test r14d, r14d
je 0x14006c6f6
mov r14d, r13d
lea rdx, str._AND__
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r13w
jne 0x14006c653
mov r8d, eax
lea rcx, [rbp + 0x50]
call fcn.1400044f8
mov rsi, r13
cmp rsi, 0x10
jae 0x14006c6d5
mov r8d, dword [rsi + r15]
lea rdx, [rbp - 0x28]
mov rcx, qword [rdi + 8]
call fcn.14006cd3c
nop
mov r15, qword [rbp - 0x20]
cmp qword [r15 + 8], r13
jbe 0x14006c6b8
test r14d, r14d
je 0x14006c6a9
mov r8d, 4
lea rdx, str._OR
lea rcx, [rbp + 0x50]
call fcn.1400044f8
lea r8, [rbp + 0x50]
lea rdx, [rbp - 0x28]
call fcn.14006b3b4
mov ebx, eax
add r14d, dword [r15 + 8]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsi, 4
test ebx, ebx
lea r15, [0x1400e3ef8]
jns 0x14006c66c
lea rdx, [0x1400debac]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r13w
jne 0x14006c6e0
mov r8d, eax
lea rcx, [rbp + 0x50]
call fcn.1400044f8
test ebx, ebx
js 0x14006c7d3
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx]
mov r8, qword [rbp + 0x50]
lea rdx, [0x1400e72b0]
mov rax, qword [rax + 0x38]
call qword [case.0x14006d218.0]
mov ebx, eax
test eax, eax
js 0x14006c7d3
mov qword [rbp + 0x40], r13
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx]
lea rdx, [rbp + 0x40]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp + 0x58]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
lea r8, str.:s_f
xor edx, edx
mov rax, qword [rax + 0x20]
call qword [case.0x14006d218.0]
mov ebx, eax
test eax, eax
js 0x14006c7bc
lea r9, [rdi + 0x30]
mov r8, r12
mov rdx, qword [rbp + 0x40]
call fcn.14006bbb8
mov ebx, eax
test eax, eax
js 0x14006c7bc
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rbp + 0x40]
cmp rdx, rcx
je 0x14006c7c0
mov rsi, rcx
test rcx, rcx
je 0x14006c79d
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rbp + 0x40]
test rdx, rdx
je 0x14006c7b6
mov rax, qword [rdx]
mov rcx, rdx
mov rax, qword [rax + 0x10]
call qword [case.0x14006d218.0]
mov rcx, qword [rbp + 0x40]
mov qword [rdi + 0x28], rsi
jmp 0x14006c7c0
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14006c7d3
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006d218.0]
nop
mov rdx, qword [rbp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006c7f8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
mov eax, ebx
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret