Function at 0x426390
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x4f3c
call fcn.00434e00
mov eax, dword [0x44d558]
mov dword [ebp - 8], eax
push esi
push edi
mov ecx, 0xc
mov esi, str.DownloadMSXInstructions
lea edi, [ebp - 0x3064]
rep movsd dword es:[edi], dword [esi]
mov ax, word [0x44ea90]
mov word [ebp - 0x408], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x406]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44ea98]
mov word [ebp - 0x4f38], cx
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x4f36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x44eaa0]
mov word [ebp - 0x1410], dx
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x140e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x44eaa8]
mov word [ebp - 0x4c28], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x4c26]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44eab0]
mov word [ebp - 0x2808], cx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x2806]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x44eab8]
mov word [ebp - 0x3030], dx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x302e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x44eac0]
mov word [ebp - 0x4d38], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x4d36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x282c], 0
mov dword [ebp - 0x1424], 0
mov dword [ebp - 0x1420], 0
mov dword [ebp - 0x2818], 0
mov dword [ebp - 0x1418], 0
mov dword [ebp - 0x141c], 0
mov dword [ebp - 0x2814], 0
mov dword [ebp - 0x2824], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x281c], 0
mov dword [ebp - 0x3034], 0
mov dword [ebp - 0x4c34], 0
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x2828], 0
mov dword [ebp - 0x2810], 0
mov dword [ebp - 0x2820], 0
mov dword [ebp - 0x4c30], 0
mov dword [ebp - 0x280c], 0
mov dword [ebp - 0x1414], 0
mov dword [ebp - 0x4c2c], 0
mov ecx, dword [ebp + 8]
push ecx
push str.DownloadMSXInstructions__s__n
call fcn.004329b0
add esp, 8
cmp dword [ebp + 8], 0
je 0x426580
mov edx, dword [ebp + 8]
movzx eax, word [edx]
test eax, eax
je 0x426580
cmp dword [0x44ea10], 0
je 0x426587
xor eax, eax
jmp 0x427035
push 0x446ddc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x3c28]
push edx
call fcn.004291a0
add esp, 0xc
test eax, eax
je 0x426e36
push 0xa
push 0x1c
lea eax, [ebp - 0x1444]
push eax
call dword [sym.imp.SQLSVC.dll_SHRecMemInit]
add esp, 0xc
cmp dword [0x44ea14], 0
jne 0x4266b9
cmp dword [0x450754], 0
jne 0x4266b9
push 0x200
lea ecx, [ebp - 0x408]
push ecx
push 0x18f
mov edx, dword [0x44e620]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push str.7.0.594
push 0x446e28
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x3030]
push ecx
mov edx, dword [0x450d4c]
call dword [edx + 0x4cc]
add esp, 0x10
lea eax, [ebp - 0x3030]
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 - 0x1410]
push ecx
mov edx, dword [0x450d4c]
call dword [edx + 0x4cc]
add esp, 0x10
lea eax, [ebp - 0x3064]
push eax
lea ecx, [ebp - 0x4c28]
push ecx
lea edx, [ebp - 0x2828]
push edx
push 1
push 1
lea eax, [ebp - 0x1410]
push eax
lea ecx, [ebp - 0x3c28]
push ecx
call fcn.004084e0
add esp, 0x1c
mov dword [ebp - 0x2818], eax
cmp dword [ebp - 0x2818], 0
je 0x426688
cmp dword [ebp - 0x2828], 0
je 0x4266af
cmp dword [ebp - 0x2828], 0x38cd
je 0x4266a0
cmp dword [ebp - 0x2828], 0xc350
jne 0x4266aa
mov dword [0x44ea10], 1
jmp 0x426e16
mov dword [0x44ea14], 1
push 0
lea edx, [ebp - 0x4c30]
push edx
lea eax, [ebp - 0x2820]
push eax
call fcn.00423560
add esp, 0xc
mov eax, dword [ebp - 0x4c30]
cdq
mov ecx, 0x64
idiv ecx
push edx
mov eax, dword [ebp - 0x4c30]
cdq
mov ecx, 0x2710
idiv ecx
mov eax, edx
cdq
mov ecx, 0x64
idiv ecx
push eax
mov eax, dword [ebp - 0x4c30]
cdq
mov ecx, 0x2710
idiv ecx
push eax
mov eax, dword [ebp - 0x2820]
cdq
mov ecx, 0x64
idiv ecx
push edx
mov eax, dword [ebp - 0x2820]
cdq
mov ecx, 0x2710
idiv ecx
mov eax, edx
cdq
mov ecx, 0x64
idiv ecx
push eax
mov eax, dword [ebp - 0x2820]
cdq
mov ecx, 0x2710
idiv ecx
push eax
push str._ld__02ld__02ld__02ld:_02ld:_02ld
lea edx, [ebp - 0x4f38]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4cc]
add esp, 0x20
lea ecx, [ebp - 0x4d38]
push ecx
call fcn.00429940
add esp, 4
lea edx, [ebp - 0x4d38]
push edx
mov eax, dword [0x450a9c]
push eax
lea ecx, [ebp - 0x4f38]
push ecx
push 0x44e508
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 - 0x1410]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4cc]
add esp, 0x18
lea ecx, [ebp - 0x3064]
push ecx
lea edx, [ebp - 0x4c28]
push edx
lea eax, [ebp - 0x2828]
push eax
push 0
push 1
lea ecx, [ebp - 0x1410]
push ecx
lea edx, [ebp - 0x3c28]
push edx
call fcn.004084e0
add esp, 0x1c
mov dword [ebp - 0x2818], eax
cmp dword [ebp - 0x2818], 0
je 0x42690d
cmp dword [ebp - 0x2828], 0
jne 0x42690d
lea eax, [ebp - 0x4c2c]
push eax
lea ecx, [ebp - 0x2824]
push ecx
push 4
push 0xfffffffffffffff0
push 1
lea edx, [ebp - 0x3c28]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x4c2c]
push eax
lea ecx, [ebp - 4]
push ecx
push 4
push 0xfffffffffffffff0
push 2
lea edx, [ebp - 0x3c28]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x4c2c]
push eax
lea ecx, [ebp - 0x281c]
push ecx
push 4
push 0xfffffffffffffff0
push 3
lea edx, [ebp - 0x3c28]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x3c28]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x42686a
jmp 0x426853
lea ecx, [ebp - 0x3c28]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x4267ea
lea edx, [ebp - 0x3c28]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLPurgeResults]
add esp, 4
cmp dword [ebp - 0x2824], 0
jne 0x4268a2
cmp dword [ebp - 4], 0
je 0x4268fd
cmp dword [0x445cf8], 0
je 0x4268f8
cmp dword [ebp - 0x2824], 0
je 0x4268ce
mov eax, dword [ebp + 8]
push eax
push 0x44e508
push 0x122
push 0
push 1
call fcn.0041d760
add esp, 0x14
cmp dword [ebp - 4], 0
je 0x4268ee
mov ecx, dword [ebp + 8]
push ecx
push 0x44e508
push 0x123
push 0
push 1
call fcn.0041d760
add esp, 0x14
mov dword [0x445cf8], 0
jmp 0x426e16
cmp dword [ebp - 0x281c], 0
jne 0x42690b
jmp 0x426e16
jmp 0x426922
lea edx, [ebp - 0x3c28]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLPurgeResults]
add esp, 4
jmp 0x426e16
mov dword [0x445cf8], 1
mov eax, dword [0x450cc8]
push eax
lea ecx, [ebp - 0x1444]
push ecx
lea edx, [ebp - 0x3c28]
push edx
call fcn.0040cd40
add esp, 0xc
mov dword [ebp - 0x3034], eax
cmp dword [ebp - 0x3034], 0
je 0x426d54
push str.SQLAgent___MSX_Op_Servicer
lea eax, [ebp - 0x2008]
push eax
call fcn.004080a0
add esp, 8
lea ecx, [ebp - 0x3064]
push ecx
push 1
lea edx, [ebp - 0x2008]
push edx
call fcn.00408190
add esp, 0xc
test eax, eax
jne 0x426990
jmp 0x426e16
mov dword [ebp - 0x1418], 1
mov dword [ebp - 0x2810], 0
jmp 0x4269b5
mov eax, dword [ebp - 0x2810]
add eax, 1
mov dword [ebp - 0x2810], eax
mov ecx, dword [ebp - 0x2810]
cmp ecx, dword [ebp - 0x143c]
jge 0x426d54
push 0
mov edx, dword [0x450d00]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4269e2
jmp 0x426d54
mov dword [ebp - 0x2814], 0
mov eax, dword [ebp - 0x2814]
mov dword [ebp - 0x1420], eax
mov ecx, dword [ebp - 0x1420]
mov dword [ebp - 0x1424], ecx
mov word [ebp - 0x2808], 0
mov dword [ebp - 0x1414], 0
mov edx, dword [ebp - 0x1414]
mov dword [ebp - 0x2828], edx
mov eax, dword [ebp - 0x2810]
push eax
lea ecx, [ebp - 0x1444]
push ecx
call dword [sym.imp.SQLSVC.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0x282c], eax
cmp dword [ebp - 0x282c], 0
je 0x426d4f
mov edx, dword [ebp - 0x282c]
mov eax, dword [edx + 8]
mov dword [ebp - 0x4f3c], eax
cmp dword [ebp - 0x4f3c], 1
je 0x426a73
cmp dword [ebp - 0x4f3c], 2
je 0x426ac1
jmp 0x426b19
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x1420]
push edx
lea eax, [ebp - 0x1414]
push eax
push 0x400
lea ecx, [ebp - 0x2808]
push ecx
mov edx, dword [ebp - 0x282c]
push edx
lea eax, [ebp - 0x2008]
push eax
lea ecx, [ebp - 0x3c28]
push ecx
call fcn.00427050
add esp, 0x20
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x1424], eax
jmp 0x426b41
lea edx, [ebp - 0x2814]
push edx
lea eax, [ebp - 0x141c]
push eax
push 0x400
lea ecx, [ebp - 0x2808]
push ecx
mov edx, dword [ebp - 0x282c]
push edx
lea eax, [ebp - 0x2008]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00427890
add esp, 0x1c
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x1424], eax
cmp dword [ebp - 0x2814], 0
je 0x426b17
mov edx, dword [ebp - 0x282c]
mov eax, dword [edx]
mov dword [ebp - 0x280c], eax
jmp 0x426b41
push 0x400
lea ecx, [ebp - 0x2808]
push ecx
push 0x125
mov edx, dword [0x44e620]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
mov dword [ebp - 0x1424], 1
cmp dword [ebp - 0x2814], 0
je 0x426b4f
jmp 0x426d54
cmp dword [ebp - 0x1424], 0
jne 0x426c6e
mov eax, dword [ebp - 0x282c]
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 - 0x1410]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4cc]
add esp, 0xc
lea ecx, [ebp - 0x3064]
push ecx
lea edx, [ebp - 0x4c28]
push edx
lea eax, [ebp - 0x2828]
push eax
push 1
push 1
lea ecx, [ebp - 0x1410]
push ecx
lea edx, [ebp - 0x3c28]
push edx
call fcn.004084e0
add esp, 0x1c
mov dword [ebp - 0x2818], eax
cmp dword [ebp - 0x2818], 0
je 0x426bc6
cmp dword [ebp - 0x2828], 0
je 0x426bdb
mov eax, dword [ebp - 0x282c]
cmp dword [eax + 4], 7
jne 0x426c28
cmp dword [ebp - 0x2828], 0
jne 0x426c28
cmp dword [ebp - 0x1420], 0
je 0x426c17
lea ecx, [ebp - 0x3064]
push ecx
lea edx, [ebp - 0x4c28]
push edx
lea eax, [ebp - 0x2828]
push eax
push 1
push 1
push str.IF____trancount___0__COMMIT_TRANSACTION
lea ecx, [ebp - 0x2008]
push ecx
call fcn.004084e0
add esp, 0x1c
mov dword [ebp - 0x2818], eax
mov edx, dword [ebp - 0x4c34]
add edx, 1
mov dword [ebp - 0x4c34], edx
jmp 0x426c69
cmp dword [ebp - 0x1420], 0
je 0x426c64
lea eax, [ebp - 0x3064]
push eax
lea ecx, [ebp - 0x4c28]
push ecx
lea edx, [ebp - 0x2828]
push edx
push 1
push 1
push 0x4475f8
lea eax, [ebp - 0x2008]
push eax
call fcn.004084e0
add esp, 0x1c
mov dword [ebp - 0x2818], eax
jmp 0x426d54
jmp 0x426d4f
cmp dword [ebp - 0x1420], 0
je 0x426caa
lea ecx, [ebp - 0x3064]
push ecx
lea edx, [ebp - 0x4c28]
push edx
lea eax, [ebp - 0x2828]
push eax
push 1
push 1
push str.IF____trancount___0__ROLLBACK_TRANSACTION
lea ecx, [ebp - 0x2008]
push ecx
call fcn.004084e0
add esp, 0x1c
mov dword [ebp - 0x2818], eax
movzx edx, word [ebp - 0x2808]
test edx, edx
je 0x426d4d
cmp dword [ebp - 0x1414], 0x21cb
je 0x426d4d
push 0x800
lea eax, [ebp - 0x3030]
push eax
push 0x4476a4
push 0x4476ac
lea ecx, [ebp - 0x2808]
push ecx
call fcn.004321e0
add esp, 0x14
mov edx, dword [ebp - 0x282c]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x3030]
push ecx
push 0x4476b0
lea edx, [ebp - 0x1410]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4cc]
add esp, 0x10
lea ecx, [ebp - 0x3064]
push ecx
lea edx, [ebp - 0x4c28]
push edx
lea eax, [ebp - 0x2828]
push eax
push 1
push 1
lea ecx, [ebp - 0x1410]
push ecx
lea edx, [ebp - 0x3c28]
push edx
call fcn.004084e0
add esp, 0x1c
mov dword [ebp - 0x2818], eax
jmp 0x426d54
jmp 0x4269a6
cmp dword [ebp - 0x4c34], 0
je 0x426db2
push 0x44e508
push str.EXECUTE_msdb.dbo.sp_downloaded_row_limiter__server_name__N_s
lea eax, [ebp - 0x1410]
push eax
mov ecx, dword [0x450d4c]
call dword [ecx + 0x4cc]
add esp, 0xc
lea edx, [ebp - 0x3064]
push edx
lea eax, [ebp - 0x4c28]
push eax
lea ecx, [ebp - 0x2828]
push ecx
push 1
push 1
lea edx, [ebp - 0x1410]
push edx
lea eax, [ebp - 0x3c28]
push eax
call fcn.004084e0
add esp, 0x1c
mov dword [ebp - 0x2818], eax
cmp dword [ebp - 0x141c], 0
je 0x426e16
push 0x44e508
mov ecx, dword [0x450a9c]
push ecx
push str.UPDATE_msdb.dbo.systargetservers_SET_poll_interval___ld_WHERE__server_name__N_s_
lea edx, [ebp - 0x1410]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4cc]
add esp, 0x10
lea ecx, [ebp - 0x3064]
push ecx
lea edx, [ebp - 0x4c28]
push edx
lea eax, [ebp - 0x2828]
push eax
push 1
push 1
lea ecx, [ebp - 0x1410]
push ecx
lea edx, [ebp - 0x3c28]
push edx
call fcn.004084e0
add esp, 0x1c
mov dword [ebp - 0x2818], eax
lea eax, [ebp - 0x1444]
push eax
call dword [sym.imp.SQLSVC.dll_SHRecMemFree]
add esp, 4
lea ecx, [ebp - 0x3c28]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLLogoff]
add esp, 4
cmp dword [ebp - 0x1418], 0
je 0x427007
cmp dword [ebp - 0x40c], 0
je 0x426eca
push 0
call fcn.00429070
add esp, 4
test eax, eax
jne 0x426eca
mov edx, dword [ebp + 8]
push edx
push 0x447888
lea eax, [ebp - 0x1410]
push eax
mov ecx, dword [0x450d4c]
call dword [ecx + 0x4cc]
add esp, 0xc
lea edx, [ebp - 0x3064]
push edx
lea eax, [ebp - 0x4c28]
push eax
lea ecx, [ebp - 0x2828]
push ecx
push 1
push 1
lea edx, [ebp - 0x1410]
push edx
lea eax, [ebp - 0x2008]
push eax
call fcn.004084e0
add esp, 0x1c
mov dword [ebp - 0x2818], eax
cmp dword [ebp - 0x2818], 0
je 0x426eca
cmp dword [ebp - 0x2828], 0
jne 0x426eca
mov dword [ebp - 0x40c], 0
cmp dword [ebp - 0x2814], 0
je 0x426ff7
lea ecx, [ebp - 0x3064]
push ecx
lea edx, [ebp - 0x4c28]
push edx
lea eax, [ebp - 0x2828]
push eax
push 1
push 1
push str.EXECUTE_msdb.dbo.sp_msx_defect
lea ecx, [ebp - 0x2008]
push ecx
call fcn.004084e0
add esp, 0x1c
mov dword [ebp - 0x2818], eax
cmp dword [ebp - 0x2828], 0
je 0x426fe8
movzx edx, word [ebp - 0x4c28]
test edx, edx
je 0x426fe8
cmp dword [ebp - 0x280c], 0
je 0x426fe8
push str.Target_SQLAgent___Downloader
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3c28]
push ecx
call fcn.004291a0
add esp, 0xc
test eax, eax
je 0x426fe6
push 0x800
lea edx, [ebp - 0x3030]
push edx
push 0x44797c
push 0x447984
lea eax, [ebp - 0x4c28]
push eax
call fcn.004321e0
add esp, 0x14
mov ecx, dword [ebp - 0x280c]
push ecx
lea edx, [ebp - 0x3030]
push edx
push 0x447988
lea eax, [ebp - 0x1410]
push eax
mov ecx, dword [0x450d4c]
call dword [ecx + 0x4cc]
add esp, 0x10
lea edx, [ebp - 0x3064]
push edx
lea eax, [ebp - 0x4c28]
push eax
lea ecx, [ebp - 0x2828]
push ecx
push 1
push 1
lea edx, [ebp - 0x1410]
push edx
lea eax, [ebp - 0x3c28]
push eax
call fcn.004084e0
add esp, 0x1c
mov dword [ebp - 0x2818], eax
lea ecx, [ebp - 0x3c28]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLLogoff]
add esp, 4
jmp 0x426ff7
mov edx, dword [ebp - 0x4c34]
add edx, 1
mov dword [ebp - 0x4c34], edx
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLLogoff]
add esp, 4
cmp dword [ebp - 0x3034], 0
je 0x42702f
mov ecx, dword [ebp - 0x3034]
push ecx
mov edx, dword [ebp - 0x4c34]
push edx
push 0x121
push 0
push 3
call fcn.0041d760
add esp, 0x14
mov eax, dword [ebp - 0x4c34]
mov ecx, dword [ebp - 8]
call fcn.00434de1
pop edi
pop esi
mov esp, ebp
pop ebp
ret