Function at 0x140065a08
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.140004be4
nop
xor r13d, r13d
mov ebx, r13d
mov r14d, r13d
mov esi, r13d
lea r15, [0x1400d6ea0]
mov r8d, dword [rsi + r15]
lea rdx, [rbp - 0x18]
mov rcx, qword [rdi + 8]
call fcn.140066198
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 0x140065a53
test r14d, r14d
je 0x140065b3a
mov r14d, r13d
lea rdx, str._AND__
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140065a97
mov r8d, eax
lea rcx, [rbp + 0x50]
call fcn.140004638
mov rsi, r13
cmp rsi, 0x10
jae 0x140065b19
mov r8d, dword [rsi + r15]
lea rdx, [rbp - 0x28]
mov rcx, qword [rdi + 8]
call fcn.140066198
nop
mov r15, qword [rbp - 0x20]
cmp qword [r15 + 8], r13
jbe 0x140065afc
test r14d, r14d
je 0x140065aed
mov r8d, 4
lea rdx, str._OR
lea rcx, [rbp + 0x50]
call fcn.140004638
lea r8, [rbp + 0x50]
lea rdx, [rbp - 0x28]
call fcn.1400647bc
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, [0x1400d6ea0]
jns 0x140065ab0
lea rdx, [0x1400d08ec]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140065b24
mov r8d, eax
lea rcx, [rbp + 0x50]
call fcn.140004638
test ebx, ebx
js 0x140065c17
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx]
mov r8, qword [rbp + 0x50]
lea rdx, [0x1400d8ea0]
mov rax, qword [rax + 0x38]
call qword [str.__f_]
mov ebx, eax
test eax, eax
js 0x140065c17
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 [str.__f_]
mov ebx, eax
test eax, eax
js 0x140065c00
lea r9, [rdi + 0x30]
mov r8, r12
mov rdx, qword [rbp + 0x40]
call fcn.140064fd8
mov ebx, eax
test eax, eax
js 0x140065c00
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rbp + 0x40]
cmp rdx, rcx
je 0x140065c04
mov rsi, rcx
test rcx, rcx
je 0x140065be1
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rbp + 0x40]
test rdx, rdx
je 0x140065bfa
mov rax, qword [rdx]
mov rcx, rdx
mov rax, qword [rax + 0x10]
call qword [str.__f_]
mov rcx, qword [rbp + 0x40]
mov qword [rdi + 0x28], rsi
jmp 0x140065c04
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140065c17
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.__f_]
nop
mov rdx, qword [rbp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140065c3c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str.__f_]
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