Function at 0x4244eb
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4f24
call fcn.004321a0
push esi
push edi
mov ecx, 0xc
mov esi, str.DownloadMSXInstructions
lea edi, [ebp - 0x2308]
rep movsd dword es:[edi], dword [esi]
mov ax, word [0x44bca0]
mov word [ebp - 0x3f0c], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3f0a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44bca8]
mov word [ebp - 0xdd0], cx
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0xdce]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x44bcb0]
mov word [ebp - 0x4f1c], dx
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x4f1a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x44bcb8]
mov word [ebp - 0x3b0c], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x3b0a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44bcc0]
mov word [ebp - 0x2b08], cx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x2b06]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x44bcc8]
mov word [ebp - 0x22a0], dx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x229e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x44bcd0]
mov word [ebp - 0x1aa0], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x1a9e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x22d8], 0
mov dword [ebp - 0xdd4], 0
mov dword [ebp - 0xde0], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x3f14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x22ac], 0
mov dword [ebp - 0x22a8], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x22d4], 0
mov dword [ebp - 0xddc], 0
mov dword [ebp - 0x22b0], 0
mov dword [ebp - 0x3f10], 0
mov dword [ebp - 0x3f18], 0
mov dword [ebp - 0x2b0c], 0
mov dword [ebp - 0xdd8], 0
mov dword [ebp - 0x3f1c], 0
mov dword [ebp - 0x4f20], 0
mov dword [ebp - 0x22a4], 0
mov ecx, dword [ebp + 8]
push ecx
push str.DownloadMSXInstructions__s__n
call fcn.004303d5
add esp, 8
cmp dword [ebp + 8], 0
je 0x4246ca
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx]
test eax, eax
je 0x4246ca
cmp dword [0x44bc20], 0
je 0x4246d1
xor eax, eax
jmp 0x42514a
push 0x443d3c
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x19a0]
push edx
call fcn.004271e4
add esp, 0xc
test eax, eax
je 0x424f52
push 0xa
push 0x1c
lea eax, [ebp - 0x22d0]
push eax
call dword [sym.imp.SQLSVC.dll_SHRecMemInit]
add esp, 0xc
cmp dword [0x44bc24], 0
jne 0x4247fd
cmp dword [0x44d954], 0
jne 0x4247fd
push 0x200
lea ecx, [ebp - 0x3f0c]
push ecx
push 0x18f
mov edx, dword [0x44b81c]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push str.7.0.594
push 0x443d88
lea eax, [ebp - 0x3f0c]
push eax
lea ecx, [ebp - 0x22a0]
push ecx
mov edx, dword [0x44df4c]
call dword [edx + 0x4cc]
add esp, 0x10
lea eax, [ebp - 0x22a0]
push eax
push str.0x07000252
push 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
lea ecx, [ebp - 0x4f1c]
push ecx
mov edx, dword [0x44df4c]
call dword [edx + 0x4cc]
add esp, 0x10
lea eax, [ebp - 0x2308]
push eax
lea ecx, [ebp - 0x3b0c]
push ecx
lea edx, [ebp - 0x3f10]
push edx
push 1
push 1
lea eax, [ebp - 0x4f1c]
push eax
lea ecx, [ebp - 0x19a0]
push ecx
call fcn.00407c09
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4247cc
cmp dword [ebp - 0x3f10], 0
je 0x4247f3
cmp dword [ebp - 0x3f10], 0x38cd
je 0x4247e4
cmp dword [ebp - 0x3f10], 0xc350
jne 0x4247ee
mov dword [0x44bc20], 1
jmp 0x424f32
mov dword [0x44bc24], 1
push 0
lea edx, [ebp - 0xdd8]
push edx
lea eax, [ebp - 0x2b0c]
push eax
call fcn.004219c0
add esp, 0xc
mov eax, dword [ebp - 0xdd8]
cdq
mov ecx, 0x64
idiv ecx
push edx
mov eax, dword [ebp - 0xdd8]
cdq
mov ecx, 0x2710
idiv ecx
mov eax, edx
cdq
mov ecx, 0x64
idiv ecx
push eax
mov eax, dword [ebp - 0xdd8]
cdq
mov ecx, 0x2710
idiv ecx
push eax
mov eax, dword [ebp - 0x2b0c]
cdq
mov ecx, 0x64
idiv ecx
push edx
mov eax, dword [ebp - 0x2b0c]
cdq
mov ecx, 0x2710
idiv ecx
mov eax, edx
cdq
mov ecx, 0x64
idiv ecx
push eax
mov eax, dword [ebp - 0x2b0c]
cdq
mov ecx, 0x2710
idiv ecx
push eax
push str._ld__02ld__02ld__02ld:_02ld:_02ld
lea edx, [ebp - 0xdd0]
push edx
mov eax, dword [0x44df4c]
call dword [eax + 0x4cc]
add esp, 0x20
lea ecx, [ebp - 0x1aa0]
push ecx
call fcn.00427919
add esp, 4
lea edx, [ebp - 0x1aa0]
push edx
mov eax, dword [0x44dc98]
push eax
lea ecx, [ebp - 0xdd0]
push ecx
push 0x44b704
push str.EXECUTE_msdb.dbo.sp_sqlagent_probe_msx__server_name__N_s___local_time__N_s___poll_interval___ld___time_zone_adjustment___s
lea edx, [ebp - 0x4f1c]
push edx
mov eax, dword [0x44df4c]
call dword [eax + 0x4cc]
add esp, 0x18
lea ecx, [ebp - 0x2308]
push ecx
lea edx, [ebp - 0x3b0c]
push edx
lea eax, [ebp - 0x3f10]
push eax
push 0
push 1
lea ecx, [ebp - 0x4f1c]
push ecx
lea edx, [ebp - 0x19a0]
push edx
call fcn.00407c09
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x424a45
cmp dword [ebp - 0x3f10], 0
jne 0x424a45
lea eax, [ebp - 0x22a4]
push eax
lea ecx, [ebp - 0x22a8]
push ecx
push 4
push 0xfffffffffffffff0
push 1
lea edx, [ebp - 0x19a0]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x22a4]
push eax
lea ecx, [ebp - 8]
push ecx
push 4
push 0xfffffffffffffff0
push 2
lea edx, [ebp - 0x19a0]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x22a4]
push eax
lea ecx, [ebp - 4]
push ecx
push 4
push 0xfffffffffffffff0
push 3
lea edx, [ebp - 0x19a0]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x19a0]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x4249a5
jmp 0x42498e
lea ecx, [ebp - 0x19a0]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x424928
lea edx, [ebp - 0x19a0]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLPurgeResults]
add esp, 4
cmp dword [ebp - 0x22a8], 0
jne 0x4249dd
cmp dword [ebp - 8], 0
je 0x424a38
cmp dword [0x442c60], 0
je 0x424a33
cmp dword [ebp - 0x22a8], 0
je 0x424a09
mov eax, dword [ebp + 8]
push eax
push 0x44b704
push 0x122
push 0
push 1
call fcn.0041bfab
add esp, 0x14
cmp dword [ebp - 8], 0
je 0x424a29
mov ecx, dword [ebp + 8]
push ecx
push 0x44b704
push 0x123
push 0
push 1
call fcn.0041bfab
add esp, 0x14
mov dword [0x442c60], 0
jmp 0x424f32
cmp dword [ebp - 4], 0
jne 0x424a43
jmp 0x424f32
jmp 0x424a5a
lea edx, [ebp - 0x19a0]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLPurgeResults]
add esp, 4
jmp 0x424f32
mov dword [0x442c60], 1
mov eax, dword [0x44dec4]
push eax
lea ecx, [ebp - 0x22d0]
push ecx
lea edx, [ebp - 0x19a0]
push edx
call fcn.0040bf04
add esp, 0xc
mov dword [ebp - 0x22d4], eax
cmp dword [ebp - 0x22d4], 0
je 0x424e79
push str.SQLAgent___MSX_Op_Servicer
lea eax, [ebp - 0xbd0]
push eax
call fcn.00407820
add esp, 8
lea ecx, [ebp - 0x2308]
push ecx
push 1
lea edx, [ebp - 0xbd0]
push edx
call fcn.004078f6
add esp, 0xc
test eax, eax
jne 0x424ac8
jmp 0x424f32
mov dword [ebp - 0x3f14], 1
mov dword [ebp - 0x3f18], 0
jmp 0x424aed
mov eax, dword [ebp - 0x3f18]
add eax, 1
mov dword [ebp - 0x3f18], eax
mov ecx, dword [ebp - 0x3f18]
cmp ecx, dword [ebp - 0x22c8]
jge 0x424e79
push 0
mov edx, dword [0x44df00]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x424b1a
jmp 0x424e79
mov dword [ebp - 0x22ac], 0
mov eax, dword [ebp - 0x22ac]
mov dword [ebp - 0xde0], eax
mov ecx, dword [ebp - 0xde0]
mov dword [ebp - 0xdd4], ecx
mov word [ebp - 0x2b08], 0
mov dword [ebp - 0x4f20], 0
mov edx, dword [ebp - 0x4f20]
mov dword [ebp - 0x3f10], edx
mov eax, dword [ebp - 0x3f18]
push eax
lea ecx, [ebp - 0x22d0]
push ecx
call dword [sym.imp.SQLSVC.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0x22d8], eax
cmp dword [ebp - 0x22d8], 0
je 0x424e74
mov edx, dword [ebp - 0x22d8]
mov eax, dword [edx + 8]
mov dword [ebp - 0x4f24], eax
cmp dword [ebp - 0x4f24], 1
je 0x424bab
cmp dword [ebp - 0x4f24], 2
je 0x424bf6
jmp 0x424c4b
lea ecx, [ebp - 0x22b0]
push ecx
lea edx, [ebp - 0xde0]
push edx
lea eax, [ebp - 0x4f20]
push eax
push 0x400
lea ecx, [ebp - 0x2b08]
push ecx
mov edx, dword [ebp - 0x22d8]
push edx
lea eax, [ebp - 0xbd0]
push eax
lea ecx, [ebp - 0x19a0]
push ecx
call fcn.00425150
add esp, 0x20
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0xdd4], eax
jmp 0x424c73
lea edx, [ebp - 0x22ac]
push edx
lea eax, [ebp - 0xc]
push eax
push 0x400
lea ecx, [ebp - 0x2b08]
push ecx
mov edx, dword [ebp - 0x22d8]
push edx
lea eax, [ebp - 0xbd0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042594d
add esp, 0x1c
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0xdd4], eax
cmp dword [ebp - 0x22ac], 0
je 0x424c49
mov edx, dword [ebp - 0x22d8]
mov eax, dword [edx]
mov dword [ebp - 0x3f1c], eax
jmp 0x424c73
push 0x400
lea ecx, [ebp - 0x2b08]
push ecx
push 0x125
mov edx, dword [0x44b81c]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
mov dword [ebp - 0xdd4], 1
cmp dword [ebp - 0x22ac], 0
je 0x424c81
jmp 0x424e79
cmp dword [ebp - 0xdd4], 0
jne 0x424d94
mov eax, dword [ebp - 0x22d8]
mov ecx, dword [eax]
push ecx
push str.UPDATE_msdb.dbo.sysdownloadlist_SET_date_downloaded__GETDATE____status__1_WHERE__instance_id___ld_
lea edx, [ebp - 0x4f1c]
push edx
mov eax, dword [0x44df4c]
call dword [eax + 0x4cc]
add esp, 0xc
lea ecx, [ebp - 0x2308]
push ecx
lea edx, [ebp - 0x3b0c]
push edx
lea eax, [ebp - 0x3f10]
push eax
push 1
push 1
lea ecx, [ebp - 0x4f1c]
push ecx
lea edx, [ebp - 0x19a0]
push edx
call fcn.00407c09
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x424cf2
cmp dword [ebp - 0x3f10], 0
je 0x424d07
mov eax, dword [ebp - 0x22d8]
cmp dword [eax + 4], 7
jne 0x424d51
cmp dword [ebp - 0x3f10], 0
jne 0x424d51
cmp dword [ebp - 0xde0], 0
je 0x424d40
lea ecx, [ebp - 0x2308]
push ecx
lea edx, [ebp - 0x3b0c]
push edx
lea eax, [ebp - 0x3f10]
push eax
push 1
push 1
push str.IF____trancount___0__COMMIT_TRANSACTION
lea ecx, [ebp - 0xbd0]
push ecx
call fcn.00407c09
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xddc]
add edx, 1
mov dword [ebp - 0xddc], edx
jmp 0x424d8f
cmp dword [ebp - 0xde0], 0
je 0x424d8a
lea eax, [ebp - 0x2308]
push eax
lea ecx, [ebp - 0x3b0c]
push ecx
lea edx, [ebp - 0x3f10]
push edx
push 1
push 1
push 0x444550
lea eax, [ebp - 0xbd0]
push eax
call fcn.00407c09
add esp, 0x1c
mov dword [ebp - 0x10], eax
jmp 0x424e79
jmp 0x424e74
cmp dword [ebp - 0xde0], 0
je 0x424dcd
lea ecx, [ebp - 0x2308]
push ecx
lea edx, [ebp - 0x3b0c]
push edx
lea eax, [ebp - 0x3f10]
push eax
push 1
push 1
push str.IF____trancount___0__ROLLBACK_TRANSACTION
lea ecx, [ebp - 0xbd0]
push ecx
call fcn.00407c09
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x2b08]
and edx, 0xffff
test edx, edx
je 0x424e72
cmp dword [ebp - 0x4f20], 0x21cb
je 0x424e72
push 0x800
lea eax, [ebp - 0x22a0]
push eax
push 0x4445f8
push 0x444600
lea ecx, [ebp - 0x2b08]
push ecx
call fcn.0042fc50
add esp, 0x14
mov edx, dword [ebp - 0x22d8]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x22a0]
push ecx
push 0x444604
lea edx, [ebp - 0x4f1c]
push edx
mov eax, dword [0x44df4c]
call dword [eax + 0x4cc]
add esp, 0x10
lea ecx, [ebp - 0x2308]
push ecx
lea edx, [ebp - 0x3b0c]
push edx
lea eax, [ebp - 0x3f10]
push eax
push 1
push 1
lea ecx, [ebp - 0x4f1c]
push ecx
lea edx, [ebp - 0x19a0]
push edx
call fcn.00407c09
add esp, 0x1c
mov dword [ebp - 0x10], eax
jmp 0x424e79
jmp 0x424ade
cmp dword [ebp - 0xddc], 0
je 0x424ed4
push 0x44b704
push str.EXECUTE_msdb.dbo.sp_downloaded_row_limiter__server_name__N_s
lea eax, [ebp - 0x4f1c]
push eax
mov ecx, dword [0x44df4c]
call dword [ecx + 0x4cc]
add esp, 0xc
lea edx, [ebp - 0x2308]
push edx
lea eax, [ebp - 0x3b0c]
push eax
lea ecx, [ebp - 0x3f10]
push ecx
push 1
push 1
lea edx, [ebp - 0x4f1c]
push edx
lea eax, [ebp - 0x19a0]
push eax
call fcn.00407c09
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x424f32
push 0x44b704
mov ecx, dword [0x44dc98]
push ecx
push str.UPDATE_msdb.dbo.systargetservers_SET_poll_interval___ld_WHERE__server_name__N_s_
lea edx, [ebp - 0x4f1c]
push edx
mov eax, dword [0x44df4c]
call dword [eax + 0x4cc]
add esp, 0x10
lea ecx, [ebp - 0x2308]
push ecx
lea edx, [ebp - 0x3b0c]
push edx
lea eax, [ebp - 0x3f10]
push eax
push 1
push 1
lea ecx, [ebp - 0x4f1c]
push ecx
lea edx, [ebp - 0x19a0]
push edx
call fcn.00407c09
add esp, 0x1c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x22d0]
push eax
call dword [sym.imp.SQLSVC.dll_SHRecMemFree]
add esp, 4
lea ecx, [ebp - 0x19a0]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLLogoff]
add esp, 4
cmp dword [ebp - 0x3f14], 0
je 0x42511c
cmp dword [ebp - 0x22b0], 0
je 0x424fe0
push 0
call fcn.004270b5
add esp, 4
test eax, eax
jne 0x424fe0
mov edx, dword [ebp + 8]
push edx
push 0x4447d8
lea eax, [ebp - 0x4f1c]
push eax
mov ecx, dword [0x44df4c]
call dword [ecx + 0x4cc]
add esp, 0xc
lea edx, [ebp - 0x2308]
push edx
lea eax, [ebp - 0x3b0c]
push eax
lea ecx, [ebp - 0x3f10]
push ecx
push 1
push 1
lea edx, [ebp - 0x4f1c]
push edx
lea eax, [ebp - 0xbd0]
push eax
call fcn.00407c09
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x424fe0
cmp dword [ebp - 0x3f10], 0
jne 0x424fe0
mov dword [ebp - 0x22b0], 0
cmp dword [ebp - 0x22ac], 0
je 0x42510c
lea ecx, [ebp - 0x2308]
push ecx
lea edx, [ebp - 0x3b0c]
push edx
lea eax, [ebp - 0x3f10]
push eax
push 1
push 1
push str.EXECUTE_msdb.dbo.sp_msx_defect
lea ecx, [ebp - 0xbd0]
push ecx
call fcn.00407c09
add esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x3f10], 0
je 0x4250fd
mov edx, dword [ebp - 0x3b0c]
and edx, 0xffff
test edx, edx
je 0x4250fd
cmp dword [ebp - 0x3f1c], 0
je 0x4250fd
push str.Target_SQLAgent___Downloader
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x19a0]
push ecx
call fcn.004271e4
add esp, 0xc
test eax, eax
je 0x4250fb
push 0x800
lea edx, [ebp - 0x22a0]
push edx
push 0x4448cc
push 0x4448d4
lea eax, [ebp - 0x3b0c]
push eax
call fcn.0042fc50
add esp, 0x14
mov ecx, dword [ebp - 0x3f1c]
push ecx
lea edx, [ebp - 0x22a0]
push edx
push 0x4448d8
lea eax, [ebp - 0x4f1c]
push eax
mov ecx, dword [0x44df4c]
call dword [ecx + 0x4cc]
add esp, 0x10
lea edx, [ebp - 0x2308]
push edx
lea eax, [ebp - 0x3b0c]
push eax
lea ecx, [ebp - 0x3f10]
push ecx
push 1
push 1
lea edx, [ebp - 0x4f1c]
push edx
lea eax, [ebp - 0x19a0]
push eax
call fcn.00407c09
add esp, 0x1c
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x19a0]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLLogoff]
add esp, 4
jmp 0x42510c
mov edx, dword [ebp - 0xddc]
add edx, 1
mov dword [ebp - 0xddc], edx
lea eax, [ebp - 0xbd0]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLLogoff]
add esp, 4
cmp dword [ebp - 0x22d4], 0
je 0x425144
mov ecx, dword [ebp - 0x22d4]
push ecx
mov edx, dword [ebp - 0xddc]
push edx
push 0x121
push 0
push 3
call fcn.0041bfab
add esp, 0x14
mov eax, dword [ebp - 0xddc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret