Function at 0x100440f00
Capabilities:
Reference sql statements

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x67b0]
mov eax, 0x68b0
call fcn.10046b370
sub rsp, rax
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x68e8], rbx
mov qword [rsp + 0x68f0], rsi
mov qword [rsp + 0x68f8], rdi
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x67a0], rax
mov r12, rcx
movups xmm0, xmmword [str.DownloadMSXInstructions]
movups xmmword [rbp + 0x1860], xmm0
movups xmm1, xmmword [0x10047b960]
movups xmmword [rbp + 0x1870], xmm1
movups xmm0, xmmword [0x10047b970]
movups xmmword [rbp + 0x1880], xmm0
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x4390]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x1990]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x3390]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x2390]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x1b90]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x2002
lea rcx, [rbp + 0x4790]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x1890]
call sub.VCRUNTIME140.dll_memset
xor edi, edi
mov dword [rbp - 0x50], edi
mov r13d, edi
mov dword [rbp - 0x78], edi
mov dword [rsp + 0x60], edi
mov dword [rbp - 0x74], edi
mov dword [rbp - 0x68], edi
mov r15d, edi
mov dword [rbp - 0x70], edi
mov dword [rbp - 0x6c], edi
mov dword [rsp + 0x50], edi
mov dword [rbp - 0x60], edi
mov dword [rbp - 0x5c], edi
mov esi, edi
mov dword [rsp + 0x54], edi
mov qword [rbp - 0x58], rdi
mov rdx, r12
lea rcx, str.DownloadMSXInstructions__s__n
call fcn.10044c220
test r12, r12
je 0x100442174
cmp word [r12], si
je 0x100442174
cmp dword [0x1004aa00c], edi
jne 0x100442174
xor r9d, r9d
lea r8, str.msdb
lea rdx, str.SQLAgent___MSX_Op_Servicer
lea rcx, [rbp + 0xc50]
call fcn.10040f7b0
lea rax, [rsp + 0x68]
mov qword [rbp + 0x28], rax
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], di
lea r8d, [rdi + 0xc]
lea rdx, str.LoginTimeout
lea rcx, [rsp + 0x68]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x68]
call fcn.100409ee0
mov r9d, eax
lea r8, [rbp + 0x1860]
mov ebx, 1
mov edx, ebx
lea rcx, [rbp + 0xc50]
call fcn.10040fcc0
test eax, eax
je 0x100442174
lea r9, str.Target_SQLAgent___Downloader
mov r8, r12
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0xc50]
call fcn.100445950
test eax, eax
je 0x100442144
lea edx, [rdi + 0x1c]
lea r8d, [rdi + 0xa]
lea rcx, [rbp - 0x38]
call qword [sym.imp.SQLSVC.dll_SHRecMemInit]
mov edx, 0x528
lea r8d, [rdi + 0xa]
lea rcx, [rbp - 8]
call qword [sym.imp.SQLSVC.dll_SHRecMemInit]
lea r14, [rdi - 1]
cmp dword [0x1004aa008], edi
jne 0x10044125c
lea rax, [rsp + 0x68]
mov qword [rbp + 0x28], rax
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], di
lea r8d, [rdi + 0x10]
lea rdx, str.SkipVersionCheck
lea rcx, [rsp + 0x68]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x68]
call fcn.10040a150
test al, al
jne 0x10044125c
mov r9d, 0x200
lea r8, [rbp + 0x4390]
lea edx, [r9 - 0x71]
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
lea rax, str.7.0.594
mov qword [rsp + 0x20], rax
lea r9, [0x1004725a8]
lea r8, [rbp + 0x4390]
mov edx, 0x1001
lea rcx, [rbp + 0x4790]
call fcn.10040b460
lea rax, [rbp + 0x4790]
mov qword [rsp + 0x20], rax
lea r9, str.0x07000252
lea r8, str.IF__EXISTS__SELECT__FROM_msdb.dbo.sysobjects_WHERE__name__Nsp_sqlagent_check_msx_version__AND__type__P____EXECUTE_msdb.dbo.sp_sqlagent_check_msx_version__required_microsoft_version___s_ELSE_________________________________________________BEGIN_DECLARE__msx_version_NVARCHAR_16__SELECT__msx_version__CONVERT_NVARCHAR_2___CONVERT_INT__CONVERT_BINARY_1____CONVERT_BINARY_2_____microsoftversion___0xffff____256______N.__CONVERT_NVARCHAR_2___CONVERT_INT__CONVERT_BINARY_1____CONVERT_BINARY_2_____microsoftversion___0xffff_____256______N.__CONVERT_NVARCHAR_4_____microsoftversion__0xffff__RAISERROR_N_s__16__1___msx_version__END
mov edx, 0x800
lea rcx, [rbp + 0x3390]
call fcn.10040b460
lea rax, [rbp + 0x1860]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x800
lea rax, [rbp + 0x2390]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea rdx, [rbp + 0x3390]
lea rcx, [rbp + 0x40]
call fcn.100410640
mov ecx, dword [rsp + 0x50]
test eax, eax
je 0x100441430
test ecx, ecx
jne 0x100441430
mov dword [0x1004aa008], ebx
lea rcx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [rbp + 0x28]
imul ecx, eax, 0x64
movzx eax, word [rbp + 0x2a]
add ecx, eax
imul edi, ecx, 0x64
movzx eax, word [rbp + 0x2e]
add edi, eax
mov dword [rbp - 0x60], edi
movzx eax, word [rbp + 0x30]
imul ecx, eax, 0x64
movzx eax, word [rbp + 0x32]
add ecx, eax
imul r8d, ecx, 0x64
movzx eax, word [rbp + 0x34]
add r8d, eax
mov dword [rbp - 0x5c], r8d
mov eax, 0x68db8bad
imul r8d
mov ebx, edx
sar ebx, 0xc
mov ecx, ebx
shr ecx, 0x1f
add ebx, ecx
mov eax, 0x68db8bad
imul edi
mov r11d, edx
sar r11d, 0xc
mov eax, r11d
shr eax, 0x1f
add r11d, eax
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x64
mov r10d, r8d
sub r10d, eax
imul eax, ebx, 0x2710
sub r8d, eax
mov eax, 0x51eb851f
imul r8d
mov r9d, edx
sar r9d, 5
mov eax, r9d
shr eax, 0x1f
add r9d, eax
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x64
mov r8d, edi
sub r8d, ecx
imul ecx, r11d, 0x2710
sub edi, ecx
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], edx
mov r9d, r11d
lea r8, str._ld__02ld__02ld__02ld:_02ld:_02ld
mov edx, 0x100
lea rcx, [rbp + 0x1990]
call fcn.10040b460
xor edi, edi
mov dword [rsp + 0x5c], edi
mov qword [rbp + 0x28], rdi
mov dword [rsp + 0x58], edi
lea rdx, [rbp + 0x1890]
lea rcx, str.GetLocalTimeZoneAdjustment__s__n
call fcn.10044c220
mov edx, 0x80
lea rcx, [rbp + 0x1890]
lea r8, str.NULL
lea rax, [rbp + 0x1890]
sub r8, rax
nop word [rax + rax]
lea rax, [rdx + 0x7fffff7e]
test rax, rax
je 0x1004413d3
movzx eax, word [rcx + r8]
test ax, ax
je 0x1004413d3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1004413b0
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], di
mov ebx, edi
nop dword [rax]
nop word [rax + rax]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlTimeZoneInformation
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 6
jne 0x10044144f
inc ebx
lea ecx, [rax + 0x5e]
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 0xa
jl 0x1004413f0
jmp 0x1004414b1
cmp ecx, 0x38cd
je 0x100441444
cmp ecx, 0xc350
jne 0x100441d49
mov dword [0x1004aa00c], ebx
jmp 0x100441d49
test eax, eax
jne 0x1004414b1
mov dword [rsp + 0x5c], 4
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Bias
mov rcx, qword [rbp + 0x28]
call fcn.100454d90
test eax, eax
jne 0x1004414a8
mov ecx, dword [rsp + 0x58]
neg ecx
mov dword [rsp + 0x58], ecx
lea r9d, [rax + 0xa]
lea r8d, [r9 + 0x76]
lea rdx, [rbp + 0x1890]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ltow_s]
mov rcx, qword [rbp + 0x28]
call fcn.100454920
lea rax, [rsp + 0x68]
mov qword [rbp + 0x28], rax
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], di
mov r8d, SQLFreeStmt
lea rdx, str.MSXPollInterval
lea rcx, [rsp + 0x68]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x68]
call fcn.100409ee0
lea rcx, [rbp + 0x1890]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x1990]
mov qword [rsp + 0x20], rax
lea r9, [0x1004a8db0]
lea r8, str.EXECUTE_msdb.dbo.sp_sqlagent_probe_msx__server_name__N_s___local_time__N_s___poll_interval___ld___time_zone_adjustment___s
mov edx, 0x800
lea rcx, [rbp + 0x3390]
call fcn.10040b460
lea rax, [rbp + 0x1860]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x800
lea rax, [rbp + 0x2390]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [rbp + 0x3390]
lea rcx, [rbp + 0x40]
call fcn.100410640
test eax, eax
je 0x100441d3a
cmp dword [rsp + 0x50], 0
jne 0x100441d3a
mov ebx, 1
nop word [rax + rax]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8d, [r9 - 0x14]
mov edx, ebx
lea rcx, [rbp + 0x40]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov edx, 2
lea r9d, [rdx + 2]
lea r8d, [rdx - 0x12]
lea rcx, [rbp + 0x40]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x20], rax
mov edx, 3
lea r9d, [rdx + 1]
lea r8d, [rdx - 0x13]
lea rcx, [rbp + 0x40]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
nop dword [rax + rax]
lea rcx, [rbp + 0x40]
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
je 0x100441610
lea rcx, [rbp + 0x40]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, ebx
je 0x100441590
lea rcx, [rbp + 0x40]
call qword [sym.imp.SQLSVC.dll_QSQLPurgeResults]
mov eax, dword [rsp + 0x60]
mov ecx, dword [rbp - 0x78]
test ecx, ecx
jne 0x100441ce7
test eax, eax
jne 0x100441ce7
cmp dword [rbp - 0x74], ecx
je 0x100441d49
mov dword [0x10049939c], ebx
lea rax, [rsp + 0x68]
mov qword [rbp - 0x68], rax
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], di
lea r8d, [rcx + 0x14]
lea rdx, str.MSXDownloadBatchSize
lea rcx, [rsp + 0x68]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x68]
call fcn.100409ee0
mov r8d, eax
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x40]
call fcn.100417480
mov dword [rbp - 0x68], eax
test eax, eax
je 0x100441ccb
mov esi, edi
cmp dword [rbp - 0x2c], edi
jle 0x100441ccb
nop word [rax + rax]
xor edx, edx
mov rcx, qword [0x1004a90e0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10044189e
mov r13d, edi
mov dword [rsp + 0x5c], edi
mov ebx, edi
mov dword [rsp + 0x58], ebx
mov word [rbp + 0x1b90], di
mov dword [rbp + 0x28], edi
mov dword [rsp + 0x50], edi
mov edx, esi
lea rcx, [rbp - 0x38]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov rdi, rax
test rax, rax
je 0x100441891
mov eax, dword [rax + 8]
sub eax, 1
je 0x100441776
cmp eax, 1
jne 0x1004418a4
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1b90]
mov r8, rdi
lea rdx, [rbp + 0xc50]
mov rcx, r12
call fcn.100443020
xor ecx, ecx
test eax, eax
sete cl
mov r13d, dword [rsp + 0x5c]
test r13d, r13d
je 0x1004417c0
mov esi, dword [rdi]
mov dword [rsp + 0x54], esi
jmp 0x100441914
lea rax, [rbp - 8]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1b90]
mov r8, rdi
lea rdx, [rbp + 0xc50]
lea rcx, [rbp + 0x40]
call fcn.1004421b0
xor ecx, ecx
test eax, eax
sete cl
mov ebx, dword [rsp + 0x58]
test ecx, ecx
jne 0x100441a33
mov r9d, dword [rdi]
lea r8, str.UPDATE_msdb.dbo.sysdownloadlist_SET_date_downloaded__GETDATE____status__1_WHERE__instance_id___ld_
mov edx, 0x800
lea rcx, [rbp + 0x3390]
call fcn.10040b460
lea rax, [rbp + 0x1860]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x800
lea rax, [rbp + 0x2390]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, [rbp + 0x3390]
lea rcx, [rbp + 0x40]
call fcn.100410640
mov ecx, dword [rsp + 0x50]
test eax, eax
je 0x100441830
test ecx, ecx
je 0x100441842
cmp dword [rdi + 4], 7
jne 0x1004418c8
test ecx, ecx
jne 0x1004418c8
test ebx, ebx
je 0x10044188a
lea rax, [rbp + 0x1860]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x800
lea rax, [rbp + 0x2390]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, str.IF____trancount___0__COMMIT_TRANSACTION
lea rcx, [rbp + 0xc50]
call fcn.100410640
inc r15d
mov dword [rbp - 0x70], r15d
inc esi
xor edi, edi
cmp esi, dword [rbp - 0x2c]
jl 0x1004416d0
mov esi, dword [rsp + 0x54]
jmp 0x100441916
mov r9d, 0x400
lea r8, [rbp + 0x1b90]
mov edx, 0x125
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
jmp 0x100441a7b
test ebx, ebx
je 0x100441910
lea rax, [rbp + 0x1860]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x800
lea rax, [rbp + 0x2390]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, str.IF____trancount___0__ROLLBACK_TRANSACTION
lea rcx, [rbp + 0xc50]
call fcn.100410640
mov esi, dword [rsp + 0x54]
xor edi, edi
lea rbx, [0x1004a8db0]
test r15d, r15d
je 0x10044197e
mov r9, rbx
lea r8, str.EXECUTE_msdb.dbo.sp_downloaded_row_limiter__server_name__N_s
mov edx, 0x800
lea rcx, [rbp + 0x3390]
call fcn.10040b460
lea rax, [rbp + 0x1860]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x800
lea rax, [rbp + 0x2390]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, [rbp + 0x3390]
lea rcx, [rbp + 0x40]
call fcn.100410640
cmp dword [rbp - 0x50], 0
je 0x100441ccb
lea rax, [rsp + 0x68]
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], di
mov r8d, SQLFreeStmt
lea rdx, str.MSXPollInterval
lea rcx, [rsp + 0x68]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x68]
call fcn.100409ee0
mov r9d, eax
mov qword [rsp + 0x20], rbx
lea r8, str.UPDATE_msdb.dbo.systargetservers_SET_poll_interval___ld_WHERE__server_name__N_s_
mov edx, 0x800
lea rcx, [rbp + 0x3390]
call fcn.10040b460
lea rax, [rbp + 0x1860]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x800
lea rax, [rbp + 0x2390]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, [rbp + 0x3390]
lea rcx, [rbp + 0x40]
call fcn.100410640
jmp 0x100441ccb
test ebx, ebx
je 0x100441a7b
lea rax, [rbp + 0x1860]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x800
lea rax, [rbp + 0x2390]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, str.IF____trancount___0__ROLLBACK_TRANSACTION
lea rcx, [rbp + 0xc50]
call fcn.100410640
cmp word [rbp + 0x1b90], 0
je 0x100441910
cmp dword [rbp + 0x28], 0x21cb
je 0x100441910
lea rsi, [rbp + 0x1b90]
xor ebx, ebx
movzx eax, word [0x100472a8c]
cmp ax, word [0x100472a84]
jne 0x100441ac3
movzx eax, word [0x100472a8e]
cmp ax, word [0x100472a86]
je 0x100441c3f
lea rdx, [0x100472a8c]
lea rcx, [rbp + 0x1b90]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x100441c3f
mov ecx, 0x2004
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x100441c3f
xor edx, edx
mov r8d, 0x2002
lea rcx, [rbp + 0x4790]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x2002
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x100472a8c]
lea rcx, [rbp + 0x1b90]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x100441bf4
lea rcx, [rbp + 0x1b90]
sub rax, rcx
lea r8, [rbp + 0x1b90]
sar rax, 1
cdqe
lea r15, [rax + rax]
mov r9, r15
mov edx, 0x2004
mov rcx, rbx
call fcn.10044c240
xor eax, eax
mov word [r15 + rbx], ax
mov rcx, r14
nop dword [rax]
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x100441b70
lea rdx, [rbp + 0x4790]
mov rax, r14
inc rax
cmp word [rdx + rax*2], 0
jne 0x100441b84
add rax, 2
add rax, rcx
cmp rax, 0x1001
jae 0x100441bf0
mov r8, rbx
mov edx, 0x2002
lea rcx, [rbp + 0x4790]
call fcn.10042b640
lea r8, [0x100472a84]
mov edx, 0x2002
lea rcx, [rbp + 0x4790]
call fcn.10042b640
add rsi, 2
add rsi, r15
lea rdx, [0x100472a8c]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x100441bf0
sub rax, rsi
mov r8, rsi
jmp 0x100441b49
mov r15d, dword [rbp - 0x70]
cmp word [rsi], 0
je 0x100441c57
mov rax, r14
nop dword [rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x100441c00
lea rdx, [rbp + 0x4790]
mov rcx, r14
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x100441c14
add rax, rcx
cmp rax, 0x1001
jae 0x100441c57
mov r8, rsi
mov edx, 0x1001
lea rcx, [rbp + 0x4790]
call fcn.10040d600
jmp 0x100441c57
lea r8, [rbp + 0x1b90]
mov edx, 0x2002
lea rcx, [rbp + 0x4790]
call fcn.10040b320
test rbx, rbx
je 0x100441c65
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x4790]
lea r8, str.UPDATE_msdb.dbo.sysdownloadlist_SET_error_message__N_s_WHERE__instance_id___ld_
mov edx, 0x800
lea rcx, [rbp + 0x3390]
call fcn.10040b460
lea rax, [rbp + 0x1860]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x800
lea rax, [rbp + 0x2390]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, [rbp + 0x3390]
lea rcx, [rbp + 0x40]
jmp 0x10044190b
cmp dword [rbp + 4], 0
jle 0x100441d44
lea r8, [rbp - 8]
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0xc50]
call fcn.100446140
jmp 0x100441d44
cmp dword [0x10049939c], 0
je 0x100441d49
test ecx, ecx
je 0x100441d13
mov qword [rsp + 0x20], r12
lea r9, [0x1004a8db0]
xor edx, edx
mov r8d, 0x122
mov ecx, ebx
call fcn.100432180
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x100441d32
mov qword [rsp + 0x20], r12
lea r9, [0x1004a8db0]
xor edx, edx
mov r8d, 0x123
mov ecx, ebx
call fcn.100432180
mov dword [0x10049939c], edi
jmp 0x100441d49
lea rcx, [rbp + 0x40]
call qword [sym.imp.SQLSVC.dll_QSQLPurgeResults]
mov ebx, 1
lea rcx, [rbp - 0x38]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
lea rcx, [rbp - 8]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
lea rcx, [rbp + 0x40]
call qword [sym.imp.SQLSVC.dll_QSQLLogoff]
cmp dword [rbp - 0x6c], 0
je 0x100441e47
xor edx, edx
xor ecx, ecx
call fcn.100445570
test eax, eax
jne 0x100441e47
lea rax, [rbp + 0xc50]
mov qword [rbp - 0x50], rax
mov word [rbp - 0x48], di
mov rax, r14
inc rax
cmp word [r12 + rax*2], 0
jne 0x100441d94
add eax, eax
mov word [rbp - 0x48], bx
movsxd rcx, eax
mov r10d, 0xfffffff7
lea r9d, [r10 + 1]
mov r8d, ebx
mov edx, ebx
lea rax, [0x100499038]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r12
mov word [rsp + 0x30], di
mov qword [rsp + 0x28], 0x80
mov word [rsp + 0x20], r10w
mov rcx, qword [rbp + 0xc68]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
lea rax, [rbp + 0x1860]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x800
lea rax, [rbp + 0x2390]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea rdx, str.EXECUTE_msdb.dbo.sp_delete_all_msx_jobs__msx_server___
lea rcx, [rbp + 0xc50]
call fcn.100410640
nop
mov rcx, qword [rbp + 0xc68]
test rcx, rcx
je 0x100441e47
mov edx, 3
call qword [sym.imp.ODBC32.dll_SQLFreeStmt]
test r13d, r13d
je 0x100442144
lea rax, [rbp + 0x1860]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x800
lea rax, [rbp + 0x2390]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea rdx, str.EXECUTE_msdb.dbo.sp_msx_defect
lea rcx, [rbp + 0xc50]
call fcn.100410640
cmp dword [rsp + 0x50], 0
je 0x100442141
cmp word [rbp + 0x2390], 0
je 0x100442141
test esi, esi
je 0x100442141
lea r9, str.Target_SQLAgent___Downloader
mov r8, r12
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0xc50]
call fcn.100445950
test eax, eax
je 0x100442144
lea rdi, [rbp + 0x2390]
cmp word [rbp + 0x2390], 0
je 0x100442124
xor r12d, r12d
mov ebx, r12d
movzx eax, word [0x100472a8c]
cmp ax, word [0x100472a84]
jne 0x100441f13
movzx eax, word [0x100472a8e]
cmp ax, word [0x100472a86]
je 0x10044208c
lea rdx, [0x100472a8c]
lea rcx, [rbp + 0x2390]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x10044208c
mov ecx, 0x2004
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x10044208c
xor edx, edx
mov r8d, 0x2002
lea rcx, [rbp + 0x4790]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x2002
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x100472a8c]
lea rcx, [rbp + 0x2390]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x100442045
lea rcx, [rbp + 0x2390]
sub rax, rcx
lea r8, [rbp + 0x2390]
sar rax, 1
cdqe
lea rsi, [rax + rax]
mov r9, rsi
mov edx, 0x2004
mov rcx, rbx
call fcn.10044c240
mov word [rbx + rsi], r12w
mov rcx, r14
nop word [rax + rax]
inc rcx
cmp word [rbx + rcx*2], r12w
jne 0x100441fc0
lea rdx, [rbp + 0x4790]
mov rax, r14
inc rax
cmp word [rdx + rax*2], r12w
jne 0x100441fd4
add rcx, 2
add rcx, rax
cmp rcx, 0x1001
jae 0x100442041
mov r8, rbx
mov edx, 0x2002
lea rcx, [rbp + 0x4790]
call fcn.10042b640
lea r8, [0x100472a84]
mov edx, 0x2002
lea rcx, [rbp + 0x4790]
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 0x100442041
sub rax, rdi
mov r8, rdi
jmp 0x100441f99
mov esi, dword [rsp + 0x54]
cmp word [rdi], r12w
je 0x1004420a4
mov rax, r14
nop
inc rax
cmp word [rdi + rax*2], r12w
jne 0x100442050
lea rcx, [rbp + 0x4790]
inc r14
cmp word [rcx + r14*2], r12w
jne 0x100442061
add rax, r14
cmp rax, 0x1001
jae 0x1004420a4
mov r8, rdi
mov edx, 0x1001
lea rcx, [rbp + 0x4790]
call fcn.10040d600
jmp 0x1004420a4
lea r8, [rbp + 0x2390]
mov edx, 0x2002
lea rcx, [rbp + 0x4790]
call fcn.10040b320
test rbx, rbx
je 0x1004420b2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, 1
mov dword [rsp + 0x20], esi
lea r9, [rbp + 0x4790]
lea r8, str.UPDATE_msdb.dbo.sysdownloadlist_SET_error_message__N_s_WHERE__instance_id___ld_
mov edx, 0x800
lea rcx, [rbp + 0x3390]
call fcn.10040b460
lea rax, [rbp + 0x1860]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x800
lea rax, [rbp + 0x2390]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea rdx, [rbp + 0x3390]
lea rcx, [rbp + 0x40]
call fcn.100410640
lea rcx, [rbp + 0x40]
call qword [sym.imp.SQLSVC.dll_QSQLLogoff]
jmp 0x100442144
lea r8, [rbp + 0x2390]
mov edx, 0x2002
lea rcx, [rbp + 0x4790]
call fcn.10040b320
jmp 0x1004420b7
inc r15d
lea rcx, [rbp + 0xc50]
call qword [sym.imp.SQLSVC.dll_QSQLLogoff]
mov eax, dword [rbp - 0x68]
test eax, eax
je 0x10044216f
mov dword [rsp + 0x20], eax
mov r9d, r15d
xor edx, edx
lea ecx, [rdx + 3]
mov r8d, 0x121
call fcn.100432180
mov eax, r15d
jmp 0x100442176
xor eax, eax
mov rcx, qword [rbp + 0x67a0]
xor rcx, rsp
call fcn.100469360
lea r11, [rsp + 0x68b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret