Function at 0x14006d608
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.140004b74
nop
xor ebx, ebx
xor esi, esi
xor r14d, r14d
lea r13, [0x1400e4808]
mov r8d, dword [r14 + r13]
lea rdx, [rbp - 0x18]
mov rcx, qword [rdi + 8]
call fcn.14006dd38
mov rax, qword [rbp - 0x10]
add esi, dword [rax + 8]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add r14, 4
cmp r14, 0x10
jb 0x14006d64e
test esi, esi
je 0x14006d714
xor r14d, r14d
lea r8d, [r14 + 6]
lea rdx, str._AND__
lea rcx, [rbp + 0x50]
call fcn.140004588
xor esi, esi
cmp rsi, 0x10
jae 0x14006d6fe
mov r8d, dword [rsi + r13]
lea rdx, [rbp - 0x28]
mov rcx, qword [rdi + 8]
call fcn.14006dd38
nop
mov r15, qword [rbp - 0x20]
cmp qword [r15 + 8], 0
jbe 0x14006d6e8
test r14d, r14d
je 0x14006d6d9
mov r8d, 4
lea rdx, str._OR
lea rcx, [rbp + 0x50]
call fcn.140004588
lea r8, [rbp + 0x50]
lea rdx, [rbp - 0x28]
call fcn.14006c4e0
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
jns 0x14006d69b
mov r8d, 1
lea rdx, [0x1400df4ec]
lea rcx, [rbp + 0x50]
call fcn.140004588
test ebx, ebx
js 0x14006d7ef
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx]
mov r8, qword [rbp + 0x50]
lea rdx, [0x1400e7c98]
mov rax, qword [rax + 0x38]
call qword [case.0x14006e230.0]
mov ebx, eax
test eax, eax
js 0x14006d7ef
and qword [rbp + 0x40], 0
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.0x14006e230.0]
mov ebx, eax
test eax, eax
js 0x14006d7d8
lea r9, [rdi + 0x30]
mov r8, r12
mov rdx, qword [rbp + 0x40]
call fcn.14006cc70
mov ebx, eax
test eax, eax
js 0x14006d7d8
mov rcx, qword [rbp + 0x40]
cmp qword [rdi + 0x28], rcx
je 0x14006d7dc
mov rsi, rcx
test rcx, rcx
je 0x14006d7b5
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.0]
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rdi + 0x28]
test rdx, rdx
je 0x14006d7d2
mov rax, qword [rdx]
mov rcx, rdx
mov rax, qword [rax + 0x10]
call qword [case.0x14006e230.0]
mov rcx, qword [rbp + 0x40]
mov qword [rdi + 0x28], rsi
jmp 0x14006d7dc
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14006d7ef
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14006e230.0]
nop
mov rdx, qword [rbp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006d814
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006e230.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