Function at 0x140208500
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x170], rbx
mov r15, rcx
lea rcx, [rbp - 0x50]
call fcn.14007ba30
nop
xor r12d, r12d
mov qword [rbp + 0x80], r12
lea rcx, [rbp - 0x50]
call fcn.1400e0560
mov ebx, r12d
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140208576
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rbp + 0x80]
lea rdx, str.SELECT__FROM_sas_fileextensions_WHERE_extension__SAS_DEFAULT_AND_activeyes
call qword [rax]
mov ebx, eax
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x140208a88
mov r14d, r12d
mov qword [rbp - 0x60], r12
mov rcx, qword [rbp + 0x80]
mov rax, qword [rcx]
lea r9, [rbp - 0x60]
lea r8, [0x140294f68]
xor edx, edx
call qword [rax + 0x40]
test eax, eax
je 0x140208a5a
lea r13, vtable.CSABString.0
movabs rsi, 0xc92a69c000
lea rax, vtable.CSASScanner::CFileObjectScanOptions::CFileExtension.0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x58], r12d
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov rbx, rax
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov edi, 1
mov qword [rsp + 0x5c], rdi
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x64], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
mov dword [rbp - 0x68], r12d
mov qword [rbp + 0x88], r12
mov rcx, qword [rbp + 0x80]
mov rax, qword [rcx]
lea r9, [rbp + 0x88]
lea r8, str.extension
mov edx, r14d
call qword [rax + 0x40]
test eax, eax
je 0x140208a20
mov rdx, qword [rbp + 0x88]
test rdx, rdx
je 0x140208a20
mov qword [rbp + 0x78], r12
lea rcx, [rsp + 0x48]
call fcn.140004820
mov rcx, qword [rbp + 0x80]
mov rax, qword [rcx]
lea r9, [rbp + 0x78]
lea r8, str.forcescan_extension
mov edx, r14d
call qword [rax + 0x40]
test eax, eax
je 0x1402086a6
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x1402086a6
lea rdx, [0x1402b3c20]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov ecx, r12d
test rax, rax
setne cl
mov dword [rsp + 0x78], ecx
jmp 0x1402086ab
mov dword [rsp + 0x78], r12d
mov rax, qword [r15 + 0x1560]
mov ecx, dword [rax + 0x40]
mov eax, dword [rax + 0x3c]
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x68], ecx
mov eax, r12d
test ecx, ecx
setne al
mov dword [rsp + 0x60], eax
mov rcx, qword [rbp + 0x80]
mov rax, qword [rcx]
lea r9, [rbp + 0x78]
lea r8, str.scan_minsize
mov edx, r14d
call qword [rax + 0x40]
test eax, eax
je 0x1402087c2
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x1402087c2
xor edx, edx
lea r8d, [rdx + 0xa]
call fcn.140251de0
mov ebx, eax
mov rcx, qword [rbp + 0x80]
mov r10, qword [rcx]
lea r9, [rbp + 0x78]
lea r8, str.scan_maxsize
mov edx, r14d
call qword [r10 + 0x40]
test eax, eax
je 0x1402087c2
cmp qword [rbp + 0x78], 0
je 0x1402087c2
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x30], r12d
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rsp + 0x34], 1
lea r8, [rsp + 0x20]
mov rdx, qword [rbp + 0x78]
lea rcx, [rbp - 0x50]
call fcn.1400e0b40
xor edx, edx
lea r8d, [rdx + 0xa]
test eax, eax
mov rcx, qword [rsp + 0x28]
jne 0x14020878c
mov rcx, qword [rbp + 0x78]
call fcn.140251de0
mov ecx, eax
mov dword [rsp + 0x64], ebx
mov dword [rsp + 0x68], eax
mov eax, r12d
test ecx, ecx
setne al
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], r13
add dword [rsp + 0x34], 0xffffffff
jne 0x1402087c2
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1402087c2
call fcn.140247060
mov rcx, qword [rbp + 0x80]
mov rax, qword [rcx]
lea r9, [rbp + 0x78]
lea r8, str.forcescan_filesizevalid
mov edx, r14d
call qword [rax + 0x40]
test eax, eax
je 0x140208806
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x140208806
lea rdx, [0x1402b3c20]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov ecx, r12d
test rax, rax
setne cl
mov dword [rsp + 0x7c], ecx
jmp 0x14020880b
mov dword [rsp + 0x7c], r12d
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x74], 0xffffffff
mov dword [rsp + 0x6c], 1
mov rcx, qword [rbp + 0x80]
mov rax, qword [rcx]
lea r9, [rbp + 0x78]
lea r8, str.forcescan_mz_minsize
mov edx, r14d
call qword [rax + 0x40]
test eax, eax
je 0x140208916
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x140208916
xor edx, edx
lea r8d, [rdx + 0xa]
call fcn.140251de0
mov ebx, eax
mov rcx, qword [rbp + 0x80]
mov r10, qword [rcx]
lea r9, [rbp + 0x78]
lea r8, str.forcescan_mz_maxsize
mov edx, r14d
call qword [r10 + 0x40]
test eax, eax
je 0x140208916
cmp qword [rbp + 0x78], 0
je 0x140208916
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x30], r12d
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rsp + 0x34], 1
lea r8, [rsp + 0x20]
mov rdx, qword [rbp + 0x78]
lea rcx, [rbp - 0x50]
call fcn.1400e0b40
xor edx, edx
lea r8d, [rdx + 0xa]
test eax, eax
mov rcx, qword [rsp + 0x28]
jne 0x1402088e0
mov rcx, qword [rbp + 0x78]
call fcn.140251de0
mov ecx, eax
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x74], eax
mov eax, r12d
test ecx, ecx
setne al
mov dword [rsp + 0x6c], eax
mov qword [rsp + 0x20], r13
add dword [rsp + 0x34], 0xffffffff
jne 0x140208916
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140208916
call fcn.140247060
mov rcx, qword [rbp + 0x80]
mov rax, qword [rcx]
lea r9, [rbp + 0x78]
lea r8, str.scannonexecutables
mov edx, r14d
call qword [rax + 0x40]
test eax, eax
je 0x140208959
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x140208959
lea rdx, [0x1402b3c20]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
mov ecx, r12d
test rax, rax
setne cl
mov dword [rbp - 0x80], ecx
jmp 0x14020895d
mov dword [rbp - 0x80], r12d
cmp dword [0x140350880], 0
je 0x14020897c
mov eax, dword [0x140350888]
imul rax, rsi
mov dword [rbp - 0x6c], eax
shr rax, 0x20
mov dword [rbp - 0x68], eax
jmp 0x1402089c0
mov rcx, qword [rbp + 0x80]
mov rax, qword [rcx]
lea r9, [rbp + 0x78]
lea r8, str.days_lastwritten
mov edx, r14d
call qword [rax + 0x40]
test eax, eax
je 0x1402089c0
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x1402089c0
call fcn.1402520ac
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
je 0x1402089c0
imul rcx, rsi
mov dword [rbp - 0x6c], ecx
shr rcx, 0x20
mov dword [rbp - 0x68], ecx
mov rbx, qword [r15 + 0x1560]
mov rdi, qword [rbx + 8]
mov rsi, qword [rdi + 8]
lea r9, [rsp + 0x40]
mov r8, rsi
mov rdx, rdi
lea rcx, [rbx + 8]
call fcn.140201740
mov rdx, qword [rbx + 0x10]
movabs rcx, 0x249249249249248
sub rcx, rdx
cmp rcx, 1
jb 0x140208afd
lea rcx, [rdx + 1]
mov qword [rbx + 0x10], rcx
mov qword [rdi + 8], rax
mov qword [rsi], rax
mov edi, dword [rsp + 0x5c]
mov rbx, qword [rsp + 0x50]
movabs rsi, 0xc92a69c000
inc r14d
lea eax, [rdi - 1]
test eax, eax
jne 0x140208a37
test rbx, rbx
je 0x140208a37
mov rcx, rbx
call fcn.140247060
mov rcx, qword [rbp + 0x80]
mov rax, qword [rcx]
lea r9, [rbp - 0x60]
lea r8, [0x140294f68]
mov edx, r14d
call qword [rax + 0x40]
test eax, eax
jne 0x1402085c2
mov rbx, qword [rbp + 0x80]
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140208a7d
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rax, vtable.CSABSQL.0
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140208ab5
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x40]
mov qword [rbp - 0x20], r12
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rax, vtable.CSABByteString.0
mov qword [rbp - 0x48], rax
mov edx, 1
mov rcx, qword [rbp - 0x40]
call fcn.140247060
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.list_T__too_long
call fcn.1402453d0
int3