Function at 0x140202b20
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1320]
mov eax, 0x1420
call fcn.140247340
sub rsp, rax
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x1460], rbx
mov rbx, rcx
mov r9d, 1
mov r8d, r9d
lea rdx, [0x1402d0048]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
lea rcx, [rbp - 0x60]
call fcn.14007ba30
nop
lea rcx, [rbp - 0x60]
call fcn.1400e0560
xor r13d, r13d
test eax, eax
je 0x140203096
mov qword [rbp + 0x1370], r13
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x320]
call fcn.140249b10
mov r8, rbx
lea rdx, str.SELECT__FROM_sas_folders_excluded_WHERE_activeyes_AND_scantype_LIKE__s
lea rcx, [rbp + 0x320]
call fcn.140006bc0
mov r9d, 1
mov r8d, r9d
lea rdx, [rbp + 0x320]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
mov ebx, r13d
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140202c09
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rbp + 0x1370]
lea rdx, [rbp + 0x320]
call qword [rax]
mov ebx, eax
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x140203096
mov r12d, r13d
mov qword [rsp + 0x68], r13
mov rcx, qword [rbp + 0x1370]
mov rax, qword [rcx]
lea r9, [rsp + 0x68]
lea r8, [0x140294f68]
xor edx, edx
call qword [rax + 0x40]
test eax, eax
je 0x140203069
lea rdi, vtable.CSABString.0
nop dword [rax]
mov qword [rbp + 0x1378], r13
mov rcx, qword [rbp + 0x1370]
mov rax, qword [rcx]
lea r9, [rbp + 0x1378]
lea r8, str.folder
mov edx, r12d
call qword [rax + 0x40]
test eax, eax
je 0x140203042
mov rdx, qword [rbp + 0x1378]
test rdx, rdx
je 0x140203042
mov r9d, 1
mov r8d, r9d
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
mov r8d, 1
mov rdx, qword [rbp + 0x1378]
lea rcx, [rsp + 0x70]
call fcn.14007b5e0
nop
mov r15, qword [rsp + 0x78]
mov rbx, qword [r15]
cmp rbx, r15
je 0x140202fea
nop dword [rax + rax]
mov qword [rsp + 0x40], rdi
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov dword [rsp + 0x54], 1
mov rcx, qword [rbx + 0x10]
mov rsi, qword [rcx + 0x18]
test rax, rax
je 0x140202d0f
mov rcx, rax
call fcn.140247060
mov qword [rsp + 0x48], r13
test rsi, rsi
je 0x140202d55
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x140202d20
mov dword [rsp + 0x50], eax
lea ecx, [rax + 1]
mov r14d, ecx
call fcn.140247068
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140202d75
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call fcn.1402496a0
jmp 0x140202d75
mov dword [rsp + 0x50], r13d
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140247068
mov rdi, rax
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
cmp dword [0x140337eb0], 0
je 0x140202f5c
mov rax, qword [0x140337ec8]
mov qword [rbp + 0x18], rax
lea rsi, [rax + 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov dword [rbp + 0x1368], r13d
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x120]
call fcn.140249b10
mov rdx, qword [0x140337ea8]
test rdx, rdx
je 0x140202ddd
mov rcx, qword [0x140337ed0]
mov rax, qword [rcx]
xor r8d, r8d
call qword [rax + 0x68]
cmp eax, 0x4000000
ja 0x140202f53
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [rsp + 0x64]
movzx ecx, word [rsp + 0x62]
movzx edx, word [rsp + 0x60]
movzx r10d, word [rsp + 0x58]
movzx r9d, word [rsp + 0x5e]
movzx r8d, word [rsp + 0x5a]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r10d
lea rdx, str._02d__02d__04d____02d:_02d:_02d
lea rcx, [rbp + 0x120]
call fcn.140006bc0
lea rax, [rbp + 0x120]
mov r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp byte [rax + r9], 0
jne 0x140202e40
mov qword [rsp + 0x28], r13
lea rax, [rbp + 0x1368]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x120]
mov rdx, qword [0x140337ea8]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140006950
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x20]
call fcn.140249b10
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
lea rdx, str.__x_
lea rcx, [rbp + 0x20]
call fcn.140006bc0
lea rax, [rbp + 0x20]
mov r9, 0xffffffffffffffff
nop word [rax + rax]
inc r9
cmp byte [rax + r9], 0
jne 0x140202eb0
mov qword [rsp + 0x28], r13
lea rax, [rbp + 0x1368]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x20]
mov rdx, qword [0x140337ea8]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140006950
mov r9, 0xffffffffffffffff
nop dword [rax]
inc r9
cmp byte [rdi + r9], 0
jne 0x140202ef0
mov qword [rsp + 0x28], r13
lea rax, [rbp + 0x1368]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rdx, qword [0x140337ea8]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140006950
mov qword [rsp + 0x28], r13
lea rax, [rbp + 0x1368]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, [0x140286114]
mov rdx, qword [0x140337ea8]
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140006950
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [0x14037caf8]
mov rsi, qword [rdi + 0x1330]
mov r14, qword [rsi + 8]
lea r9, [rsp + 0x40]
mov r8, r14
mov rdx, rsi
lea rcx, [rdi + 0x1330]
call fcn.140039da0
mov rdx, qword [rdi + 0x1338]
movabs rcx, 0x666666666666665
sub rcx, rdx
cmp rcx, 1
jb 0x140203128
lea rcx, [rdx + 1]
mov qword [rdi + 0x1338], rcx
mov qword [rsi + 8], rax
mov qword [r14], rax
mov rbx, qword [rbx]
cmp dword [rsp + 0x54], 1
jne 0x140202fce
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140202fce
call fcn.140247060
cmp rbx, r15
lea rdi, vtable.CSABString.0
jne 0x140202cd0
mov r15, qword [rsp + 0x78]
lea rdi, vtable.CSABString.0
lea rax, vtable.CSABEnumFileObjectsFromEnvironmentExpandedRegExp.0
mov qword [rsp + 0x70], rax
mov rbx, qword [r15]
cmp rbx, r15
je 0x140203020
nop
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140203018
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov r15, qword [rsp + 0x78]
mov rbx, qword [rbx]
cmp rbx, r15
jne 0x140203000
mov qword [rbp - 0x78], rdi
add dword [rbp - 0x64], 0xffffffff
jne 0x140203038
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140203038
call fcn.140247060
lea rcx, [rsp + 0x78]
call fcn.140009af0
inc r12d
mov rcx, qword [rbp + 0x1370]
mov rax, qword [rcx]
lea r9, [rsp + 0x68]
lea r8, [0x140294f68]
mov edx, r12d
call qword [rax + 0x40]
test eax, eax
jne 0x140202c50
mov rbx, qword [rbp + 0x1370]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14020308c
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r9d, 1
mov r8d, r9d
lea rdx, str.PopulateExcludedFoldersFromDefinitionsDatabase___Leave
lea rcx, vtable.CSASApplicationLogManager.0
call fcn.140004a50
nop
lea rax, vtable.CSABSQL.0
mov qword [rbp - 0x60], rax
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1402030e0
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x40]
mov qword [rbp - 0x30], r13
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rax, vtable.CSABByteString.0
mov qword [rbp - 0x58], rax
mov edx, 1
mov rcx, qword [rbp - 0x50]
call fcn.140247060
mov rbx, qword [rsp + 0x1460]
add rsp, 0x1420
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