Function at 0x100412d40
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x138]
sub rsp, 0x220
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x118], rax
mov rdi, rcx
movups xmm0, xmmword [str.ConnCacheSchedules]
movups xmmword [rbp + 0xf0], xmm0
movups xmm1, xmmword [0x100473f70]
movups xmmword [rbp + 0x100], xmm1
mov eax, dword [0x100473f80]
mov dword [rbp + 0x110], eax
movzx eax, word [0x100473f84]
mov word [rbp + 0x114], ax
xor r14d, r14d
mov esi, r14d
mov ebx, r14d
test rcx, rcx
jne 0x100412dc4
xor eax, eax
jmp 0x100413198
mov edx, 0x148
mov r8d, 3
lea rcx, [rsp + 0x58]
call qword [sym.imp.SQLSVC.dll_SHRecMemInit]
lea rax, [rsp + 0x38]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r14w
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, str.LoginTimeout
lea rcx, [rsp + 0x38]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.100409ee0
mov r9d, eax
lea r8, [rbp + 0xf0]
mov edx, 1
mov rcx, rdi
call fcn.10040fcc0
test eax, eax
je 0x100413174
lea rdx, str.SELECT_schedule_id__schedule_uid__name__enabled__freq_type__freq_interval__freq_subday_type__freq_subday_interval__freq_relative_interval__freq_recurrence_factor__active_start_date__active_end_date__active_start_time__active_end_time_FROM_msdb.dbo.sysschedules_sch_WHERE__EXISTS_SELECT__FROM_sysjobschedules_as_jobsch_WHERE_sch.schedule_id__jobsch.schedule_id__
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x100413174
mov esi, eax
nop dword [rax + rax]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov edx, esi
mov r9d, 4
lea r8d, [r9 - 0x14]
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x5c]
mov qword [rsp + 0x20], rax
mov edx, 2
lea r9d, [rdx + 0xe]
lea r8d, [rdx - 4]
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x20], rax
mov edx, 3
mov r9d, 0x108
lea r8d, [rdx - 0xb]
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xbc]
mov qword [rsp + 0x20], rax
mov edx, 4
mov r9d, edx
lea r8d, [rdx - 0x14]
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
mov edx, 5
lea r9d, [rdx - 1]
lea r8d, [rdx - 0x15]
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xc4]
mov qword [rsp + 0x20], rax
mov edx, 6
lea r9d, [rdx - 2]
lea r8d, [rdx - 0x16]
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xc8]
mov qword [rsp + 0x20], rax
mov edx, 7
lea r9d, [rdx - 3]
lea r8d, [rdx - 0x17]
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xcc]
mov qword [rsp + 0x20], rax
mov edx, 8
lea r9d, [rdx - 4]
lea r8d, [rdx - 0x18]
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xd0]
mov qword [rsp + 0x20], rax
mov edx, 9
lea r9d, [rdx - 5]
lea r8d, [rdx - 0x19]
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xd4]
mov qword [rsp + 0x20], rax
mov edx, 0xa
lea r9d, [rdx - 6]
lea r8d, [rdx - 0x1a]
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xd8]
mov qword [rsp + 0x20], rax
mov edx, VariantTimeToDosDateTime
lea r9d, [rdx - 7]
lea r8d, [rdx - 0x1b]
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xdc]
mov qword [rsp + 0x20], rax
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r9d, [rdx - 8]
lea r8d, [rdx - 0x1c]
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
mov edx, SQLFreeStmt
lea r9d, [rdx - 9]
lea r8d, [rdx - 0x1d]
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xe4]
mov qword [rsp + 0x20], rax
mov edx, SQLFreeStmt
lea r9d, [rdx - 0xa]
lea r8d, [rdx - 0x1e]
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLBind]
xor edx, edx
mov r8d, 0x148
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x10041312b
nop
mov qword [rsp + 0x28], r14
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, esi
lea rcx, [rsp + 0x58]
call qword [sym.imp.SQLSVC.dll_SHRecMemBSInsert]
cmp dword [rbp + 0xbc], 0
jne 0x10041310c
inc ebx
xor edx, edx
mov r8d, 0x148
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
je 0x1004130e0
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, esi
je 0x100412e60
cmp dword [rsp + 0x64], 0
je 0x100413174
lea rcx, [0x1004a91e0]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
movups xmm0, xmmword [rsp + 0x58]
movaps xmmword [0x1004a91e0], xmm0
movups xmm1, xmmword [rsp + 0x68]
movaps xmmword [0x1004a91f0], xmm1
movups xmm0, xmmword [rsp + 0x78]
movaps xmmword [0x1004a9200], xmm0
cmp dword [0x1004a8ebc], 0
je 0x100413196
mov dword [rsp + 0x20], ebx
mov r9d, dword [rsp + 0x64]
xor edx, edx
lea ecx, [rdx + 3]
mov r8d, 0xa9
call fcn.100432180
mov eax, esi
mov rcx, qword [rbp + 0x118]
xor rcx, rsp
call fcn.100469360
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret