Function at 0x1004437f0
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x91f8]
mov eax, 0x9328
call fcn.10046b370
sub rsp, rax
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x91e0], rax
mov rdi, r9
mov qword [rbp - 0x58], r9
mov rsi, r8
mov qword [rbp - 0x78], r8
mov rbx, rdx
mov r13, rcx
mov qword [rbp - 0x60], rcx
mov r14, qword [rbp + 0x9260]
mov qword [rbp - 0x50], r14
mov rax, qword [rbp + 0x9270]
mov qword [rbp - 0x40], rax
xor edx, edx
mov r8d, 0x32d4
lea rcx, [rbp + 0x5f00]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x5700]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x32d4
lea rcx, [rbp + 0x2420]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x1a10]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x402
lea rcx, [rbp + 0x1e10]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x2320]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x2220]
call sub.VCRUNTIME140.dll_memset
xor r15d, r15d
mov dword [rbp - 0x48], r15d
mov qword [rbp - 0x80], r15
test r13, r13
je 0x100445538
test rsi, rsi
je 0x100445538
test rdi, rdi
je 0x100445538
mov r8d, 0x6c9
lea rdx, str.GenerateAddMSXJobSQL
lea ecx, [r15 + 2]
call fcn.10043acf0
mov qword [rdi], rax
test rax, rax
je 0x100445538
mov word [rax], r15w
mov qword [rsp + 0x20], rsi
mov r9, rsi
lea r8, str.DECLARE__ret_INT_DECLARE__schedule_id_INT_IF__EXISTS__SELECT_1_FROM_msdb.dbo.sysjobs_WHERE__job_id___s____EXECUTE_msdb.dbo.sp_delete_job__job_id___s___delete_history__0
mov edx, 0x196a
lea rcx, [rbp + 0x5f00]
call fcn.10040b460
mov rcx, qword [rdi]
lea r12, [r15 - 1]
test rcx, rcx
je 0x100443975
mov rax, r12
lea rax, [rax + 1]
cmp word [rcx + rax*2], r15w
jne 0x100443960
lea rdx, [rax*2 + 2]
jmp 0x100443978
mov rdx, r15
lea r8, [rbp + 0x5f00]
mov rax, r12
lea rax, [rax + 1]
cmp word [r8 + rax*2], r15w
jne 0x100443982
lea edx, [rdx + rax*2]
add edx, 2
mov r9d, 0x6d2
lea r8, str.GenerateAddMSXJobSQL
call fcn.10043b010
mov rcx, rax
mov qword [rdi], rax
test rax, rax
je 0x100445538
mov rdx, r12
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], r15w
jne 0x1004439c0
lea r8, [rbp + 0x5f00]
mov rax, r12
inc rax
cmp word [r8 + rax*2], r15w
jne 0x1004439d4
add rdx, rax
lea rdx, [rdx*2 + 4]
lea r8, [rbp + 0x5f00]
call fcn.10042b640
mov r9, rsi
lea r8, str.SELECT_name__enabled__description__start_step_id__notify_level_eventlog__notify_level_email__notify_level_netsend__notify_level_page__notify_email_operator_id__notify_netsend_operator_id__notify_page_operator_id__delete_level__CONVERT_NVARCHAR__date_created__112______CONVERT_NVARCHAR__date_created__114___CONVERT_NVARCHAR__date_modified__112______CONVERT_NVARCHAR__date_modified__114___version_number_FROM_msdb.dbo.sysjobs_WHERE__job_id___s_
mov edx, 0x400
lea rcx, [rbp + 0x5700]
call fcn.10040b460
lea rdx, [rbp + 0x5700]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x1004454fe
xor edx, edx
mov r8d, 0x12d8
lea rcx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll_memset
movaps xmm0, xmmword [rbx]
movaps xmmword [rbp + 0x90], xmm0
mov esi, 0x84
nop dword [rax]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
mov edx, 1
mov r9d, 0x108
lea r8d, [rdx - 9]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x20], rax
mov edx, 2
lea r9d, [rdx + 2]
lea r8d, [rdx - 0x12]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1e10]
mov qword [rsp + 0x20], rax
mov edx, 3
mov r9d, 0x200
lea r8d, [rdx - 0xb]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2b4]
mov qword [rsp + 0x20], rax
mov edx, 4
mov r9d, edx
lea r8d, [rdx - 0x14]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3c0]
mov qword [rsp + 0x20], rax
mov edx, 5
lea r9d, [rdx - 1]
lea r8d, [rdx - 0x15]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3c4]
mov qword [rsp + 0x20], rax
mov edx, 6
lea r9d, [rdx - 2]
lea r8d, [rdx - 0x16]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3c8]
mov qword [rsp + 0x20], rax
mov edx, 7
lea r9d, [rdx - 3]
lea r8d, [rdx - 0x17]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3cc]
mov qword [rsp + 0x20], rax
mov edx, 8
lea r9d, [rdx - 4]
lea r8d, [rdx - 0x18]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x20], rax
mov edx, 9
lea r9d, [rdx - 5]
lea r8d, [rdx - 0x19]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3d4]
mov qword [rsp + 0x20], rax
mov edx, 0xa
lea r9d, [rdx - 6]
lea r8d, [rdx - 0x1a]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3d8]
mov qword [rsp + 0x20], rax
mov edx, VariantTimeToDosDateTime
lea r9d, [rdx - 7]
lea r8d, [rdx - 0x1b]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3dc]
mov qword [rsp + 0x20], rax
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r9d, [rdx - 8]
lea r8d, [rdx - 0x1c]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2320]
mov qword [rsp + 0x20], rax
mov edx, SQLFreeStmt
mov r9d, 0x100
lea r8d, [rdx - 0x15]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2220]
mov qword [rsp + 0x20], rax
mov edx, SQLFreeStmt
mov r9d, 0x100
lea r8d, [rdx - 0x16]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3e4]
mov qword [rsp + 0x20], rax
mov edx, SQLFreeStmt
lea r9d, [rdx - 0xb]
lea r8d, [rdx - 0x1f]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x10044461a
lea r14, [rbp + 0x2420]
lea rax, [rbp + 0xa0]
sub r14, rax
lea r15, [rbp + 0x2420]
lea rax, [rbp + 0x1e10]
sub r15, rax
lea rcx, [rbp + 0x1a8]
mov rax, r13
sub rax, rcx
add rax, 0x28
mov qword [rbp - 0x68], rax
lea r13, str.__SQLAgentAccount_
lea rax, [rbp + 0x2b8]
sub r13, rax
lea rcx, [rbp + 0x1320]
mov rax, qword [rbp - 0x78]
sub rax, rcx
mov qword [rbp - 0x70], rax
nop dword [rax + rax]
lea rdi, [rbp + 0xa0]
cmp word [rbp + 0xa0], 0
je 0x100443f37
xor ecx, ecx
mov ebx, ecx
movzx eax, word [0x100472a8c]
cmp ax, word [0x100472a84]
jne 0x100443d8d
movzx eax, word [0x100472a8e]
cmp ax, word [0x100472a86]
je 0x100443f0f
lea rdx, [0x100472a8c]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x100443f0f
mov ecx, 0x32d6
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x100443f0f
xor edx, edx
mov r8d, 0x32d4
lea rcx, [rbp + 0x2420]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x32d4
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x100472a8c]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x100443ec1
lea rcx, [rbp + 0xa0]
sub rax, rcx
lea r8, [rbp + 0xa0]
sar rax, 1
cdqe
lea rsi, [rax + rax]
mov r9, rsi
mov edx, 0x32d6
mov rcx, rbx
call fcn.10044c240
xor eax, eax
mov word [rbx + rsi], ax
mov rcx, r12
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x100443e35
lea rdx, [rbp + 0x2420]
mov rax, r12
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x100443e50
add rax, 2
add rax, rcx
cmp rax, 0x196a
jae 0x100443ebc
mov r8, rbx
mov edx, 0x32d4
lea rcx, [rbp + 0x2420]
call fcn.10042b640
lea r8, [0x100472a84]
mov edx, 0x32d4
lea rcx, [rbp + 0x2420]
call fcn.10042b640
add rdi, 2
add rdi, rsi
lea rdx, [0x100472a8c]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x100443ebc
sub rax, rdi
mov r8, rdi
jmp 0x100443e13
mov esi, 0x84
cmp word [rdi], 0
je 0x100443f27
mov rax, r12
nop word [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x100443ed0
lea rdx, [rbp + 0x2420]
mov rcx, r12
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x100443ee4
add rax, rcx
cmp rax, 0x196a
jae 0x100443f27
mov r8, rdi
mov edx, 0x196a
lea rcx, [rbp + 0x2420]
call fcn.10040d600
jmp 0x100443f27
lea r8, [rbp + 0xa0]
mov edx, 0x32d4
lea rcx, [rbp + 0x2420]
call fcn.10040b320
test rbx, rbx
je 0x100443f4f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x100443f4f
lea r8, [rbp + 0xa0]
mov edx, 0x32d4
lea rcx, [rbp + 0x2420]
call fcn.10040b320
mov rdx, rsi
lea rcx, [rbp + 0xa0]
nop dword [rax]
lea rax, [rdx + 0x7fffff7a]
test rax, rax
je 0x100443f83
movzx eax, word [r14 + rcx]
test ax, ax
je 0x100443f83
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100443f60
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
xor ecx, ecx
mov word [rax], cx
lea rdi, [rbp + 0x1e10]
cmp word [rbp + 0x1e10], cx
je 0x100444177
mov ebx, ecx
movzx eax, word [0x100472a8c]
cmp ax, word [0x100472a84]
jne 0x100443fcd
movzx eax, word [0x100472a8e]
cmp ax, word [0x100472a86]
je 0x10044414f
lea rdx, [0x100472a8c]
lea rcx, [rbp + 0x1e10]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x10044414f
mov ecx, 0x32d6
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x10044414f
xor edx, edx
mov r8d, 0x32d4
lea rcx, [rbp + 0x2420]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x32d4
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x100472a8c]
lea rcx, [rbp + 0x1e10]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x100444102
lea rcx, [rbp + 0x1e10]
sub rax, rcx
lea r8, [rbp + 0x1e10]
sar rax, 1
cdqe
lea rsi, [rax + rax]
mov r9, rsi
mov edx, 0x32d6
mov rcx, rbx
call fcn.10044c240
xor eax, eax
mov word [rsi + rbx], ax
mov rcx, r12
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x100444075
lea rdx, [rbp + 0x2420]
mov rax, r12
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x100444090
add rcx, 2
add rcx, rax
cmp rcx, 0x196a
jae 0x1004440fd
mov r8, rbx
mov edx, 0x32d4
lea rcx, [rbp + 0x2420]
call fcn.10042b640
lea r8, [0x100472a84]
mov edx, 0x32d4
lea rcx, [rbp + 0x2420]
call fcn.10042b640
add rdi, 2
add rdi, rsi
lea rdx, [0x100472a8c]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x1004440fd
sub rax, rdi
mov r8, rdi
jmp 0x100444053
mov esi, 0x84
cmp word [rdi], 0
je 0x100444167
mov rax, r12
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x100444110
lea rdx, [rbp + 0x2420]
mov rcx, r12
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x100444124
add rax, rcx
cmp rax, 0x196a
jae 0x100444167
mov r8, rdi
mov edx, 0x196a
lea rcx, [rbp + 0x2420]
call fcn.10040d600
jmp 0x100444167
lea r8, [rbp + 0x1e10]
mov edx, 0x32d4
lea rcx, [rbp + 0x2420]
call fcn.10040b320
test rbx, rbx
je 0x10044418f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x10044418f
lea r8, [rbp + 0x1e10]
mov edx, 0x32d4
lea rcx, [rbp + 0x2420]
call fcn.10040b320
mov edx, 0x201
lea rcx, [rbp + 0x1e10]
nop dword [rax + rax]
lea rax, [rdx + 0x7ffffdfd]
test rax, rax
je 0x1004441c3
movzx eax, word [r15 + rcx]
test ax, ax
je 0x1004441c3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1004441a0
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
xor edi, edi
mov word [rax], di
mov rdx, rsi
lea rcx, [rbp + 0x1a8]
mov r12, qword [rbp - 0x68]
lea rax, [rdx + 0x7fffff7a]
test rax, rax
je 0x100444204
movzx eax, word [r12 + rcx]
test ax, ax
je 0x100444204
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1004441e1
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], di
mov rdx, rsi
lea rcx, [rbp + 0x2b8]
nop dword [rax]
lea rax, [rdx + 0x7fffff7a]
test rax, rax
je 0x100444243
movzx eax, word [rcx + r13]
test ax, ax
je 0x100444243
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100444220
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], di
mov edx, 0x23
lea rcx, [rbp + 0x1320]
mov r12, qword [rbp - 0x70]
lea rax, [rdx + 0x7fffffdb]
test rax, rax
je 0x100444284
movzx eax, word [rcx + r12]
test ax, ax
je 0x100444284
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100444261
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], di
mov r11d, dword [rbp + 0x3cc]
cmp dword [rbp + 0x3d8], edi
mov r12, 0xffffffffffffffff
je 0x1004442bd
test r11d, r11d
je 0x1004442bd
lea r10, str.MSXOperator
lea rax, [0x100472884]
jmp 0x1004442c7
lea rax, [0x100472884]
mov r10, rax
mov r9d, dword [rbp + 0x3c8]
cmp dword [rbp + 0x3d4], edi
je 0x1004442e2
test r9d, r9d
lea r8, str.MSXOperator
jne 0x1004442e5
mov r8, rax
mov edx, dword [rbp + 0x3c4]
cmp dword [rbp + 0x3d0], edi
je 0x1004442fe
test edx, edx
lea rcx, str.MSXOperator
jne 0x100444301
mov rcx, rax
mov eax, dword [rbp + 0x3dc]
mov dword [rsp + 0x88], eax
mov qword [rsp + 0x80], r10
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x68], r11d
mov dword [rsp + 0x60], r9d
mov dword [rsp + 0x58], edx
mov eax, dword [rbp + 0x3c0]
mov dword [rsp + 0x50], eax
lea rax, [rbp + 0x2b8]
mov qword [rsp + 0x48], rax
mov eax, dword [rbp + 0x2b4]
mov dword [rsp + 0x40], eax
lea rax, [rbp + 0x1e10]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0x2b0]
mov dword [rsp + 0x30], eax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1a8]
lea r8, str.EXECUTE__ret__msdb.dbo.sp_add_job__originating_server__N_s___job_id___s___job_name__N_s___enabled___ld___description__N_s___start_step_id___ld___category_id__1___owner_login_name__N_s___notify_level_eventlog___ld___notify_level_email___ld___notify_level_netsend___ld___notify_level_page___ld___notify_email_operator_name__N_s___notify_netsend_operator_name__N_s___notify_page_operator_name__N_s___delete_level___ld_IF___ret____0__GOTO_Failure
mov edx, 0x196a
lea rcx, [rbp + 0x5f00]
call fcn.10040b460
mov rbx, qword [rbp - 0x58]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1004443c4
mov rax, r12
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], di
jne 0x1004443b0
lea rdx, [rax*2 + 2]
jmp 0x1004443c7
mov rdx, rdi
lea r8, [rbp + 0x5f00]
mov rax, r12
lea rax, [rax + 1]
cmp word [r8 + rax*2], di
jne 0x1004443d1
lea edx, [rdx + rax*2]
add edx, 2
mov r9d, 0x71a
lea r8, str.GenerateAddMSXJobSQL
call fcn.10043b010
mov r10, rax
mov qword [rbx], rax
test rax, rax
je 0x100445538
mov rcx, r12
inc rcx
cmp word [rax + rcx*2], di
jne 0x100444406
lea rdx, [rbp + 0x5f00]
mov rax, r12
nop dword [rax]
inc rax
cmp word [rdx + rax*2], di
jne 0x100444420
add rcx, rax
lea r9, [rcx*2 + 4]
shr r9, 1
lea rax, [r9 - 1]
mov edx, edi
cmp rax, 0x7ffffffe
mov r8d, 0x80070057
cmova edx, r8d
test edx, edx
js 0x100444482
mov rcx, r9
mov rax, r10
test r9, r9
je 0x10044446f
nop dword [rax]
cmp word [rax], di
je 0x10044446f
add rax, 2
sub rcx, 1
jne 0x100444460
mov edx, r8d
test rcx, rcx
cmovne edx, edi
je 0x100444482
mov r8, r9
sub r8, rcx
jmp 0x100444485
mov r8, rdi
test edx, edx
js 0x1004444dd
mov rdx, r9
sub rdx, r8
lea rcx, [r10 + r8*2]
je 0x1004444cf
mov rax, rdx
sub rax, r9
add r8, 0x7ffffffe
add r8, rax
lea r9, [rbp + 0x5f00]
sub r9, rcx
nop
test r8, r8
je 0x1004444cf
movzx eax, word [rcx + r9]
test ax, ax
je 0x1004444cf
mov word [rcx], ax
add rcx, 2
dec r8
sub rdx, 1
jne 0x1004444b0
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], di
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, r12d
je 0x100443d50
mov r13, qword [rbp - 0x60]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x100443a50
mov edx, 0x9a0
mov r8d, 5
lea rcx, [rbp - 0x18]
call qword [sym.imp.SQLSVC.dll_SHRecMemInit]
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rbp - 0x18]
lea rdx, [rbp + 0x90]
mov rcx, r13
call fcn.100416450
test eax, eax
je 0x1004454b8
mov eax, dword [rbp - 0xc]
test eax, eax
je 0x1004454b8
mov dword [rbp - 0x68], edi
jle 0x100444dcb
nop word [rax + rax]
mov edx, edi
lea rcx, [rbp - 0x18]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov r14, rax
test rax, rax
je 0x100444eed
lea rsi, [rax + 4]
mov dword [rsp + 0x20], 0x32d4
lea r9, [rbp + 0x2420]
lea r8, [0x100472a84]
lea rdx, [0x100472a8c]
mov rcx, rsi
call fcn.10044bd60
mov edx, 0x84
mov rcx, rsi
lea r8, [rbp + 0x2420]
sub r8, rsi
lea rax, [rdx + 0x7fffff7a]
test rax, rax
je 0x1004445d6
movzx eax, word [rcx + r8]
test ax, ax
je 0x1004445d6
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1004445b3
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
xor r13d, r13d
mov word [rax], r13w
mov rcx, qword [r14 + 0x190]
test rcx, rcx
je 0x100444625
mov rax, r12
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], r13w
jne 0x100444600
lea ebx, [rax*4 + 0x190c]
mov r8d, 0x738
jmp 0x100444630
mov rbx, qword [rbp - 0x58]
xor edi, edi
jmp 0x1004444f4
mov ebx, 0x1908
mov r8d, 0x73d
mov dword [rbp - 0x70], ebx
lea rdx, str.GenerateAddMSXJobSQL
mov ecx, ebx
call fcn.10043acf0
mov r15, rax
test rax, rax
je 0x10044464d
mov word [rax], r13w
mov rcx, qword [r14 + 0x190]
test rcx, rcx
je 0x1004446d1
test r15, r15
je 0x1004446d1
mov dword [rsp + 0x20], ebx
mov r9, r15
lea r8, [0x100472a84]
lea rdx, [0x100472a8c]
call fcn.10044bd60
mov rcx, qword [r14 + 0x190]
call fcn.10043b3b0
mov rax, r12
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [r15 + rax*2], r13w
jne 0x100444690
lea rbx, [rax*2 + 2]
mov r8d, 0x748
lea rdx, str.GenerateAddMSXJobSQL
mov ecx, ebx
call fcn.10043acf0
mov qword [r14 + 0x190], rax
test rax, rax
je 0x1004446d1
mov r8, r15
mov rdx, rbx
mov rcx, rax
call fcn.10040b320
lea r13, [r14 + 0x2c0]
mov dword [rsp + 0x20], 0x32d4
lea r9, [rbp + 0x2420]
lea r8, [0x100472a84]
lea rdx, [0x100472a8c]
mov rcx, r13
call fcn.10044bd60
mov edx, 0x84
mov rcx, r13
lea r8, [rbp + 0x2420]
sub r8, r13
nop
lea rax, [rdx + 0x7fffff7a]
test rax, rax
je 0x100444733
movzx eax, word [rcx + r8]
test ax, ax
je 0x100444733
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100444710
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
xor ecx, ecx
mov word [rax], cx
lea rbx, [r14 + 0x3c8]
mov dword [rsp + 0x20], 0x32d4
lea r9, [rbp + 0x2420]
lea r8, [0x100472a84]
lea rdx, [0x100472a8c]
mov rcx, rbx
call fcn.10044bd60
mov ecx, 0x84
lea rdx, [rbp + 0x2420]
sub rdx, rbx
nop
lea rax, [rcx + 0x7fffff7a]
test rax, rax
je 0x1004447a2
movzx eax, word [rbx + rdx]
test ax, ax
je 0x1004447a2
mov word [rbx], ax
add rbx, 2
sub rcx, 1
jne 0x100444780
lea rax, [rbx - 2]
test rcx, rcx
cmovne rax, rbx
xor ebx, ebx
mov word [rax], bx
cmp qword [r14 + 0x4e0], rbx
je 0x100444896
mov edx, 0x196a
lea rcx, [rbp + 0x2420]
lea r8, [0x100472884]
lea rax, [rbp + 0x2420]
sub r8, rax
nop dword [rax]
lea rax, [rdx + 0x7fffe694]
test rax, rax
je 0x100444803
movzx eax, word [rcx + r8]
test ax, ax
je 0x100444803
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1004447e0
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], bx
mov dword [rsp + 0x20], 0x32d4
lea r9, [rbp + 0x2420]
lea r8, [0x100472a84]
lea rdx, [0x100472a8c]
mov rcx, qword [r14 + 0x4e0]
call fcn.10044bd60
mov rcx, qword [r14 + 0x4e0]
call fcn.10043b3b0
lea rcx, [rbp + 0x2420]
mov rax, r12
lea rax, [rax + 1]
cmp word [rcx + rax*2], bx
jne 0x100444850
lea rbx, [rax*2 + 2]
mov r8d, 0x75f
lea rdx, str.GenerateAddMSXJobSQL
mov ecx, ebx
call fcn.10043acf0
mov qword [r14 + 0x4e0], rax
test rax, rax
je 0x100444894
lea r8, [rbp + 0x2420]
mov rdx, rbx
mov rcx, rax
call fcn.10040b320
xor ebx, ebx
xor edx, edx
mov r8d, 0x134
lea rcx, [rbp + 0x1380]
call sub.VCRUNTIME140.dll_memset
cmp dword [r14 + 0x4f0], 0
je 0x100444c21
lea rax, [rbp - 0x38]
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], bx
mov r8d, 0x23
lea rdx, str.AllowDownloadedJobsToMatchProxyName
lea rcx, [rbp - 0x38]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rbp - 0x38]
call fcn.10040a150
test al, al
je 0x100444eba
mov r9d, dword [r14 + 0x4f0]
lea r8, str.SELECT_name_FROM_msdb.dbo.sysproxies_WHERE__proxy_id___ld_
mov edx, 0x400
lea rcx, [rbp + 0x5700]
call fcn.10040b460
test eax, eax
js 0x100444e92
lea rdx, [rbp + 0x5700]
mov rbx, qword [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x100444e92
xor edx, edx
mov r8d, 0x10a
lea rcx, [rbp + 0x1900]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1900]
mov qword [rsp + 0x20], rax
mov edx, 1
mov r9d, 0x84
lea r8d, [rdx - 9]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rcx, rbx
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x100444e92
lea rdi, [rbp + 0x1900]
cmp word [rbp + 0x1900], 0
je 0x100444b77
xor eax, eax
mov ebx, eax
movzx eax, word [0x100472a8c]
cmp ax, word [0x100472a84]
jne 0x1004449d4
movzx eax, word [0x100472a8e]
cmp ax, word [0x100472a86]
je 0x100444b4f
lea rdx, [0x100472a8c]
lea rcx, [rbp + 0x1900]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x100444b4f
mov ecx, 0x32d6
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x100444b4f
xor edx, edx
mov r8d, 0x32d4
lea rcx, [rbp + 0x2420]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x32d4
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x100472a8c]
lea rcx, [rbp + 0x1900]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x100444b04
lea rcx, [rbp + 0x1900]
sub rax, rcx
lea r8, [rbp + 0x1900]
sar rax, 1
cdqe
lea rsi, [rax + rax]
mov r9, rsi
mov edx, 0x32d6
mov rcx, rbx
call fcn.10044c240
xor eax, eax
mov word [rbx + rsi], ax
mov rcx, r12
nop dword [rax]
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x100444a80
lea rdx, [rbp + 0x2420]
mov rax, r12
inc rax
cmp word [rdx + rax*2], 0
jne 0x100444a94
add rax, 2
add rax, rcx
cmp rax, 0x196a
jae 0x100444b00
mov r8, rbx
mov edx, 0x32d4
lea rcx, [rbp + 0x2420]
call fcn.10042b640
lea r8, [0x100472a84]
mov edx, 0x32d4
lea rcx, [rbp + 0x2420]
call fcn.10042b640
add rdi, 2
add rdi, rsi
lea rdx, [0x100472a8c]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x100444b00
sub rax, rdi
mov r8, rdi
jmp 0x100444a5a
lea rsi, [r14 + 4]
cmp word [rdi], 0
je 0x100444b67
mov rax, r12
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x100444b10
lea rdx, [rbp + 0x2420]
mov rcx, r12
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x100444b24
add rax, rcx
cmp rax, 0x196a
jae 0x100444b67
mov r8, rdi
mov edx, 0x196a
lea rcx, [rbp + 0x2420]
call fcn.10040d600
jmp 0x100444b67
lea r8, [rbp + 0x1900]
mov edx, 0x32d4
lea rcx, [rbp + 0x2420]
call fcn.10040b320
test rbx, rbx
je 0x100444b8f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x100444b8f
lea r8, [rbp + 0x1900]
mov edx, 0x32d4
lea rcx, [rbp + 0x2420]
call fcn.10040b320
mov edx, 0x85
lea rcx, [rbp + 0x1900]
lea r8, [rbp + 0x2420]
lea rax, [rbp + 0x1900]
sub r8, rax
nop dword [rax]
lea rax, [rdx + 0x7fffff79]
test rax, rax
je 0x100444bd3
movzx eax, word [rcx + r8]
test ax, ax
je 0x100444bd3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100444bb0
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
xor ebx, ebx
mov word [rax], bx
mov ecx, ebx
test rdx, rdx
sete cl
test rdx, rdx
je 0x100444c16
lea r9, [rbp + 0x1900]
lea r8, str.___proxy_name__N_s
mov edx, 0x9a
lea rcx, [rbp + 0x1380]
call fcn.10040b460
mov ecx, ebx
test eax, eax
sets cl
test ecx, ecx
jne 0x100444e92
mov edi, dword [rbp - 0x68]
mov rax, qword [r14 + 0x4e0]
lea r11, [0x100472884]
mov rdx, r11
test rax, rax
cmovne rdx, rax
mov rax, qword [r14 + 0x190]
mov r9, r11
test rax, rax
cmovne r9, rax
lea rcx, [r14 + 0x1b8]
lea r8, [r14 + 0x10c]
movsxd r10, dword [rbp - 0x70]
shr r10, 1
lea rax, [rbp + 0x1380]
mov qword [rsp + 0xa8], rax
mov eax, dword [r14 + 0x1a0]
mov dword [rsp + 0xa0], eax
mov qword [rsp + 0x98], rdx
mov eax, dword [r14 + 0x4d8]
mov dword [rsp + 0x90], eax
mov eax, dword [r14 + 0x4d4]
mov dword [rsp + 0x88], eax
mov eax, dword [r14 + 0x4d0]
mov dword [rsp + 0x80], eax
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x68], rcx
mov eax, dword [r14 + 0x1b4]
mov dword [rsp + 0x60], eax
mov eax, dword [r14 + 0x1b0]
mov dword [rsp + 0x58], eax
mov eax, dword [r14 + 0x1ac]
mov dword [rsp + 0x50], eax
mov eax, dword [r14 + 0x1a8]
mov dword [rsp + 0x48], eax
mov eax, dword [r14 + 0x1a4]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], rsi
mov eax, dword [r14]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp - 0x78]
lea r8, str.EXECUTE__ret__msdb.dbo.sp_add_jobstep__job_id___s___step_id___ld___step_name__N_s___subsystem__N_s___command__N_s___additional_parameters__NULL___cmdexec_success_code___ld___on_success_action___ld___on_success_step_id___ld___on_fail_action___ld___on_fail_step_id___ld___server__N_s___database_name__N_s___database_user_name__N_s___retry_attempts___ld___retry_interval___ld___os_run_priority___ld___output_file_name__N_s___flags___ld__s_IF___ret____0__GOTO_Failure
mov rdx, r10
mov rcx, r15
call fcn.10040b460
mov rbx, qword [rbp - 0x58]
mov rcx, qword [rbx]
test rcx, rcx
je 0x100444d45
mov rax, r12
nop
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x100444d30
lea rdx, [rax*2 + 2]
jmp 0x100444d49
xor eax, eax
mov edx, eax
mov rax, r12
nop dword [rax]
lea rax, [rax + 1]
cmp word [r15 + rax*2], 0
jne 0x100444d50
lea edx, [rdx + rax*2]
add edx, 2
mov r9d, 0x7b9
lea r8, str.GenerateAddMSXJobSQL
call fcn.10043b010
mov rcx, rax
mov qword [rbx], rax
test rax, rax
je 0x100445538
mov rdx, r12
inc rdx
cmp word [rax + rdx*2], 0
jne 0x100444d86
mov rax, r12
inc rax
cmp word [r15 + rax*2], 0
jne 0x100444d93
add rdx, rax
lea rdx, [rdx*2 + 4]
mov r8, r15
call fcn.10042b640
mov rcx, r15
call fcn.10043b3b0
inc edi
mov dword [rbp - 0x68], edi
cmp edi, dword [rbp - 0xc]
jl 0x100444560
mov r13, qword [rbp - 0x60]
lea rcx, [rbp - 0x18]
call fcn.100416ef0
mov eax, 0x2f30
mov word [rbp + 0x18b0], ax
xor eax, eax
mov qword [rbp + 0x18b2], rax
mov qword [rbp + 0x18ba], rax
mov qword [rbp + 0x18c2], rax
mov qword [rbp + 0x18ca], rax
mov qword [rbp + 0x18d2], rax
mov qword [rbp + 0x18da], rax
mov qword [rbp + 0x18e2], rax
mov qword [rbp + 0x18ea], rax
mov dword [rbp + 0x18f2], eax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x58]
lea r8, [rbp + 0x28]
lea rdx, [rbp + 0x90]
mov rcx, r13
call fcn.100414860
test eax, eax
je 0x1004454ae
xor r15d, r15d
mov esi, r15d
mov r14d, 0x84
cmp dword [rbp + 0x34], r15d
jle 0x100445212
nop
mov edx, esi
lea rcx, [rbp + 0x28]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov rbx, rax
test rax, rax
je 0x100445538
mov dl, 1
mov rcx, r15
nop dword [rax]
cmp byte [rcx + rax + 4], r15b
jne 0x100444efb
inc rcx
cmp rcx, 0x10
jl 0x100444e80
jmp 0x100444efd
mov edx, 0x1be
lea r8, [rbp + 0x1a10]
mov r9d, 0x200
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, qword [rbp - 0x50]
jmp 0x100445520
mov r9d, 0x200
lea r8, [rbp + 0x1a10]
lea edx, [r9 - 0x41]
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
lea r8, [rbp + 0x1a10]
mov edx, 0x400
mov rcx, qword [rbp - 0x50]
call fcn.10040d530
lea rcx, [rbp - 0x18]
call fcn.100416ef0
jmp 0x100445538
xor dl, dl
mov word [rbp + 0x18b0], r15w
test dl, dl
je 0x100444f64
mov edx, 0x23
lea rcx, [rbp + 0x18b0]
lea r8, str.NULL
lea rax, [rbp + 0x18b0]
sub r8, rax
nop word [rax + rax]
lea rax, [rdx + 0x7fffffdb]
test rax, rax
je 0x100444f53
movzx eax, word [rcx + r8]
test ax, ax
je 0x100444f53
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100444f30
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r15w
jmp 0x100444f7c
lea rdx, [rbp + 0x18b0]
lea rcx, [rax + 4]
call fcn.100428750
test eax, eax
je 0x100445538
lea rdi, [rbx + 0x14]
mov dword [rsp + 0x20], 0x32d4
lea r9, [rbp + 0x2420]
lea r8, [0x100472a84]
lea rdx, [0x100472a8c]
mov rcx, rdi
call fcn.10044bd60
mov rdx, r14
mov rcx, rdi
lea r8, [rbp + 0x2420]
sub r8, rdi
nop word [rax + rax]
lea rax, [rdx + 0x7fffff7a]
test rax, rax
je 0x100444fe3
movzx eax, word [r8 + rcx]
test ax, ax
je 0x100444fe3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100444fc0
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r15w
lea rax, [rbp + 0x1a8]
mov qword [rsp + 0x80], rax
mov eax, dword [rbx + 0x144]
mov dword [rsp + 0x78], eax
mov eax, dword [rbx + 0x140]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x13c]
mov dword [rsp + 0x68], eax
mov eax, dword [rbx + 0x138]
mov dword [rsp + 0x60], eax
mov eax, dword [rbx + 0x134]
mov dword [rsp + 0x58], eax
mov eax, dword [rbx + 0x130]
mov dword [rsp + 0x50], eax
mov eax, dword [rbx + 0x12c]
mov dword [rsp + 0x48], eax
mov eax, dword [rbx + 0x128]
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 0x124]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 0x120]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x11c]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x18b0]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, str.SELECT__schedule_id__NULL_EXECUTE__ret__msdb.dbo.sp_add_schedule__schedule_name__N_s___schedule_uid___s___enabled___ld___freq_type___ld___freq_interval___ld___freq_subday_type___ld___freq_subday_interval___ld___freq_relative_interval___ld___freq_recurrence_factor___ld___active_start_date___ld___active_end_date___ld___active_start_time___ld___active_end_time___ld___schedule_id___schedule_id_OUTPUT___originating_server__N_s_IF___ret____0_OR__schedule_id_IS_NULL__GOTO_Failure
mov edx, 0x196a
lea rcx, [rbp + 0x5f00]
call fcn.10040b460
mov rbx, qword [rbp - 0x58]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1004450ba
mov rax, r12
lea rax, [rax + 1]
cmp word [rcx + rax*2], r15w
jne 0x1004450a5
lea rdx, [rax*2 + 2]
jmp 0x1004450bd
mov rdx, r15
lea r8, [rbp + 0x5f00]
mov rax, r12
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [r8 + rax*2], r15w
jne 0x1004450d0
lea edx, [rdx + rax*2]
add edx, 2
mov r9d, 0x83d
lea r8, str.GenerateAddMSXJobSQL
call fcn.10043b010
mov rcx, rax
mov qword [rbx], rax
test rax, rax
je 0x100445538
mov rdx, r12
inc rdx
cmp word [rax + rdx*2], r15w
jne 0x100445105
lea r8, [rbp + 0x5f00]
mov rax, r12
nop dword [rax]
inc rax
cmp word [r8 + rax*2], r15w
jne 0x100445120
add rdx, rax
lea rdx, [rdx*2 + 4]
lea r8, [rbp + 0x5f00]
call fcn.10042b640
mov rdi, qword [rbp - 0x78]
mov r9, rdi
lea r8, str.EXECUTE__ret__msdb.dbo.sp_attach_schedule__job_id___s___schedule_id___schedule_id_IF__ret____0__GOTO_Failure
mov edx, 0x196a
lea rcx, [rbp + 0x5f00]
call fcn.10040b460
mov rcx, qword [rbx]
test rcx, rcx
je 0x100445185
mov rax, r12
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], r15w
jne 0x100445170
lea rdx, [rax*2 + 2]
jmp 0x100445188
mov rdx, r15
lea r8, [rbp + 0x5f00]
mov rax, r12
lea rax, [rax + 1]
cmp word [r8 + rax*2], r15w
jne 0x100445192
lea edx, [rdx + rax*2]
add edx, 2
mov r9d, 0x843
lea r8, str.GenerateAddMSXJobSQL
call fcn.10043b010
mov rcx, rax
mov qword [rbx], rax
test rax, rax
je 0x100445538
mov rdx, r12
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], r15w
jne 0x1004451d0
lea r8, [rbp + 0x5f00]
mov rax, r12
inc rax
cmp word [r8 + rax*2], r15w
jne 0x1004451e4
add rdx, rax
lea rdx, [rdx*2 + 4]
lea r8, [rbp + 0x5f00]
call fcn.10042b640
inc esi
cmp esi, dword [rbp + 0x34]
jl 0x100444e60
jmp 0x100445216
mov rdi, qword [rbp - 0x78]
lea rcx, [rbp + 0x28]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
lea rcx, [rbp + 0x58]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
mov r9d, 0x200
lea r8, [rbp + 0x1a10]
mov edx, 0x132
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9, rdi
lea r8, [rbp + 0x1a10]
mov edx, 0x196a
lea rcx, [rbp + 0x2420]
call fcn.10040b460
lea rax, [rbp + 0x2420]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], r15d
lea rax, [rbp + 0x2220]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2320]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea r8, str.EXECUTE__ret__msdb.dbo.sp_add_jobserver__job_id___s___server_name__N_local__IF___ret____0__GOTO_Failure_UPDATE_msdb.dbo.sysjobs_SET_date_created__N_s__date_modified__N_s__version_number___ld_WHERE__job_id___s__GOTO_Done_Failure:_RAISERROR__s__16__1__Done:
mov edx, 0x196a
lea rcx, [rbp + 0x5f00]
call fcn.10040b460
mov rcx, qword [rbx]
test rcx, rcx
je 0x1004452d5
mov rax, r12
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], r15w
jne 0x1004452c0
lea rdx, [rax*2 + 2]
jmp 0x1004452d8
mov rdx, r15
lea r9, [rbp + 0x5f00]
mov rax, r12
lea rax, [rax + 1]
cmp word [r9 + rax*2], r15w
jne 0x1004452e2
lea edx, [rdx + rax*2]
add edx, 2
mov r9d, 0x866
lea r8, str.GenerateAddMSXJobSQL
call fcn.10043b010
mov qword [rbx], rax
test rax, rax
je 0x100445538
mov rdx, r12
inc rdx
cmp word [rax + rdx*2], r15w
jne 0x100445314
lea rcx, [rbp + 0x5f00]
inc r12
cmp word [rcx + r12*2], r15w
jne 0x100445325
add rdx, r12
lea rdx, [rdx*2 + 4]
lea r8, [rbp + 0x5f00]
mov rcx, rax
call fcn.10042b640
cmp word [r13 + 0xa4c], 9
jb 0x1004454a4
mov r9, rdi
lea r8, str.EXECUTE_msdb.dbo.sp_maintplan_subplans_by_job__job_id___s
mov edx, 0x196a
lea rcx, [rbp + 0x2420]
call fcn.10040b460
lea rdx, [rbp + 0x2420]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x1004454a4
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1380]
mov qword [rsp + 0x20], rax
mov edx, 1
mov r9d, 0x108
lea r8d, [rdx - 9]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1488]
mov qword [rsp + 0x20], rax
mov edx, 2
mov r9d, 0x108
lea r8d, [rdx - 0xa]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1590]
mov qword [rsp + 0x20], rax
mov edx, 3
mov r9d, 0x108
lea r8d, [rdx - 0xb]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1698]
mov qword [rsp + 0x20], rax
mov edx, 4
mov r9d, 0x108
lea r8d, [rdx - 0xc]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rcx, r13
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x1004454a4
lea r8, [rbp + 0x17a0]
lea rax, [rbp + 0x17a0]
sub rdi, rax
nop
lea rax, [r14 + 0x7fffff7a]
test rax, rax
je 0x100445484
movzx eax, word [rdi + r8]
test ax, ax
je 0x100445484
mov word [r8], ax
add r8, 2
sub r14, 1
jne 0x100445460
lea rdx, [r8 - 2]
test r14, r14
cmovne rdx, r8
mov word [rdx], r15w
lea rdx, [rbp + 0x1380]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.SQLSVC.dll_SHRecMemAdd]
mov eax, 1
jmp 0x10044553a
mov edx, 0x141
jmp 0x100444e97
mov r9d, 0x200
lea r8, [rbp + 0x1a10]
mov edx, 0x140
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
lea r9, str.SQLServerAgent
lea r8, [rbp + 0x1a10]
mov edx, 0x400
mov rcx, qword [rbp - 0x50]
call fcn.10040b460
lea rcx, [rbp - 0x18]
call fcn.100416ef0
jmp 0x100445538
mov r9d, 0x200
lea r8, [rbp + 0x1a10]
mov edx, 0x13e
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, r14
lea r9, str.SQLServerAgent
lea r8, [rbp + 0x1a10]
mov edx, 0x400
call fcn.10040b460
xor eax, eax
mov rcx, qword [rbp + 0x91e0]
xor rcx, rsp
call fcn.100469360
add rsp, 0x9328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret