Function at 0x140067820
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.140004b44
nop
xor r13d, r13d
mov ebx, r13d
mov r14d, r13d
mov esi, r13d
lea r15, [0x1400b8640]
mov r8d, dword [rsi + r15]
lea rdx, [rbp - 0x18]
mov rcx, qword [rdi + 8]
call fcn.140068004
mov rax, qword [rbp - 0x10]
add r14d, dword [rax + 8]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
add rsi, 4
cmp rsi, 0x10
jb 0x14006786b
test r14d, r14d
je 0x14006795e
mov r14d, r13d
lea rdx, str._AND__
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r13w
jne 0x1400678b5
mov r8d, eax
lea rcx, [rbp + 0x50]
call fcn.140004550
mov rsi, r13
cmp rsi, 0x10
jae 0x14006793d
mov r8d, dword [rsi + r15]
lea rdx, [rbp - 0x28]
mov rcx, qword [rdi + 8]
call fcn.140068004
nop
mov r15, qword [rbp - 0x20]
cmp qword [r15 + 8], r13
jbe 0x14006791a
test r14d, r14d
je 0x14006790b
mov r8d, 4
lea rdx, str._OR
lea rcx, [rbp + 0x50]
call fcn.140004550
lea r8, [rbp + 0x50]
lea rdx, [rbp - 0x28]
call fcn.1400665f4
mov ebx, eax
add r14d, dword [r15 + 8]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
add rsi, 4
test ebx, ebx
lea r15, [0x1400b8640]
jns 0x1400678ce
lea rdx, [0x1400b2104]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140067948
mov r8d, eax
lea rcx, [rbp + 0x50]
call fcn.140004550
test ebx, ebx
js 0x140067a3b
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx]
mov r8, qword [rbp + 0x50]
lea rdx, [0x1400b9918]
mov rax, qword [rax + 0x38]
call qword [str._E_n_]
mov ebx, eax
test eax, eax
js 0x140067a3b
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._E_n_]
mov ebx, eax
test eax, eax
js 0x140067a24
lea r9, [rdi + 0x30]
mov r8, r12
mov rdx, qword [rbp + 0x40]
call fcn.140066e38
mov ebx, eax
test eax, eax
js 0x140067a24
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rbp + 0x40]
cmp rdx, rcx
je 0x140067a28
mov rsi, rcx
test rcx, rcx
je 0x140067a05
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rbp + 0x40]
test rdx, rdx
je 0x140067a1e
mov rax, qword [rdx]
mov rcx, rdx
mov rax, qword [rax + 0x10]
call qword [str._E_n_]
mov rcx, qword [rbp + 0x40]
mov qword [rdi + 0x28], rsi
jmp 0x140067a28
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140067a3b
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._E_n_]
nop
mov rdx, qword [rbp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140067a60
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
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