Function at 0x140224e50
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rbx, rcx
lea rcx, [rsp + 0x50]
call fcn.14007ba30
nop
lea rcx, [rsp + 0x50]
call fcn.140227a80
xor edi, edi
test eax, eax
je 0x14022527d
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x40]
call fcn.140249b10
mov r8, rbx
lea rdx, str.SELECT__FROM_ScheduledTasks_WHERE_taskid_s
lea rcx, [rbp - 0x40]
call fcn.140006bc0
mov ebx, edi
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140224edc
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rbp + 0x3e8]
lea rdx, [rbp - 0x40]
call qword [rax]
mov ebx, eax
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x14022527d
mov qword [rsp + 0x20], rdi
mov rcx, qword [rbp + 0x3e8]
mov rax, qword [rcx]
lea r9, [rsp + 0x30]
lea r8, str.taskid
xor edx, edx
call qword [rax + 0x40]
test eax, eax
je 0x14022527d
mov rax, qword [rsp + 0x30]
cmp byte [rax], dil
je 0x140225276
mov rcx, qword [rbp + 0x3e8]
mov rax, qword [rcx]
lea r9, [rbp + 0x3f0]
lea r8, str.type
xor edx, edx
call qword [rax + 0x40]
mov rcx, qword [rbp + 0x3e8]
mov rax, qword [rcx]
lea r9, [rsp + 0x38]
lea r8, str.restart
xor edx, edx
call qword [rax + 0x40]
mov rcx, qword [rbp + 0x3e8]
mov rax, qword [rcx]
lea r9, [rbp + 0x3f8]
lea r8, str.shutdown
xor edx, edx
call qword [rax + 0x40]
mov rcx, qword [rbp + 0x3e8]
mov rax, qword [rcx]
lea r9, [rsp + 0x28]
lea r8, str.clean
xor edx, edx
call qword [rax + 0x40]
mov rcx, qword [rbp + 0x3e8]
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
lea r8, str.hide
xor edx, edx
call qword [rax + 0x40]
mov rcx, qword [rbp + 0x3e8]
mov rax, qword [rcx]
lea r9, [rsp + 0x20]
lea r8, str.updatebefore
xor edx, edx
call qword [rax + 0x40]
mov rdx, qword [str.UPDATE]
mov rcx, qword [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140224ff1
mov dword [0x1403507c8], 5
jmp 0x1402250a6
mov rdx, qword [str._b___]
mov rcx, qword [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140225014
mov dword [0x1403507c8], edi
jmp 0x1402250a6
mov rdx, qword [str.COMPLETE_SCAN]
mov rcx, qword [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140225038
mov dword [0x1403507c8], 1
jmp 0x1402250a6
mov rdx, qword [str.____]
mov rcx, qword [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14022505c
mov dword [0x1403507c8], 2
jmp 0x1402250a6
mov rdx, qword [str.8___]
mov rcx, qword [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140225080
mov dword [0x1403507c8], 4
jmp 0x1402250a6
mov rdx, qword [str.h___]
mov rcx, qword [rbp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ecx, edi
mov edx, 6
test eax, eax
cmove ecx, edx
mov dword [0x1403507c8], ecx
lea rdx, [0x1402b3c20]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ecx, edi
test eax, eax
sete cl
mov dword [0x1403507b0], ecx
lea rdx, [0x1402b3c20]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ecx, edi
test eax, eax
sete cl
mov dword [0x1403507b8], ecx
lea rdx, [0x1402b3c20]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ecx, edi
test eax, eax
sete cl
mov dword [0x1403507c0], ecx
lea rdx, [0x1402b3c20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ecx, edi
test eax, eax
sete cl
mov dword [0x1403507bc], ecx
cmp dword [0x1403507c8], 6
jne 0x1402251d7
mov edx, reloc.COMCTL32.dll_InitCommonControls
mov dword [0x14037c290], edx
mov r8, qword [rsp + 0x28]
test r8, r8
je 0x1402251d7
cmp byte [r8], 0x21
jne 0x1402251d7
inc r8
movzx eax, byte [r8]
test al, al
je 0x1402251d7
lea r9, [0x140000000]
movsx eax, al
add eax, 0xffffff9d
cmp eax, 0x16
ja case.0x140225185.105
cdqe
movzx eax, byte [r9 + rax + 0x225308]
mov ecx, dword [r9 + rax*4 + 0x2252ec]
add rcx, r9
jmp rcx
mov dword [0x1403507b8], 1
jmp case.0x140225185.105
or edx, 4
jmp 0x1402251aa
and edx, 0xffffffef
jmp 0x1402251aa
or edx, 8
jmp 0x1402251aa
or edx, 0x22
jmp 0x1402251aa
or edx, 0x20
mov dword [0x14037c290], edx
cmp byte [r8], 0x7c
je 0x1402251c3
inc r8
movzx eax, byte [r8]
test al, al
jne 0x140225164
jmp 0x1402251d7
inc r8
mov edx, 0x104
lea rcx, str.7_days
call fcn.140253604
lea rdx, [0x1402b3c20]
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140225208
mov dword [0x1403507b4], 1
mov dword [0x1403507c4], 1
lea ebx, [rax + 1]
jmp 0x14022527f
lea rdx, [0x1402d2e00]
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140225239
mov dword [0x1403507b4], 1
mov dword [0x1403507c4], 2
lea ebx, [rax + 1]
jmp 0x14022527f
lea rdx, [0x1402d2e04]
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14022526a
mov dword [0x1403507b4], 1
mov dword [0x1403507c4], 3
lea ebx, [rax + 1]
jmp 0x14022527f
mov dword [0x1403507b4], edi
mov dword [0x1403507c4], edi
mov ebx, 1
jmp 0x14022527f
mov ebx, edi
lea rax, vtable.CSABSQL.0
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1402252ae
mov r8, qword [rcx]
mov edx, 1
call qword [r8 + 0x40]
mov qword [rbp - 0x80], rdi
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rax, vtable.CSABByteString.0
mov qword [rsp + 0x58], rax
mov edx, 1
mov rcx, qword [rsp + 0x60]
call fcn.140247060
mov eax, ebx
add rsp, 0x4c0
pop rdi
pop rbx
pop rbp
ret