Function at 0x424d3d
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d18
call fcn.00430730
push esi
push edi
mov ecx, 0xc
mov esi, str.ProcessJobMSXInstruction
lea edi, [ebp - 0x18ec]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x44978c]
mov word [ebp - 0x2cf8], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x2cf6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x449794]
mov word [ebp - 0xcb0], cx
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0xcae]
rep stosd dword es:[edi], eax
mov dx, word [0x44979c]
mov word [ebp - 0x1cec], dx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x1cea]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x4497a4]
mov word [ebp - 0x14b0], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x14ae]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x4497ac]
mov word [ebp - 0xc68], cx
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xc66]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], 0
mov dword [ebp - 0xb64], 0
mov dword [ebp - 0x1cf8], 0
mov dword [ebp - 0x2d00], 0
mov dword [ebp - 0x1cf4], 0
mov dword [ebp - 0x2cfc], 0
mov dword [ebp - 0xb68], 0
mov dword [ebp - 0x1cf0], 0
mov dword [ebp - 0x14b4], 0
push str.ProcessJobMSXInstruction___n
call fcn.0042fc9e
add esp, 4
mov edx, dword [ebp + 0x10]
add edx, 0xc
push edx
call fcn.004163d3
add esp, 4
test eax, eax
je 0x424e86
lea eax, [ebp - 0xcb0]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0xc
push ecx
call fcn.00417386
add esp, 8
jmp 0x424ead
mov edx, dword [ebp + 0x10]
cmp dword [edx + 4], 3
je 0x424ead
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0x16
mov edx, dword [0x4492ac]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
xor eax, eax
jmp 0x425520
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 1
je 0x424ec8
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 2
je 0x424ec8
mov edx, dword [ebp + 0x10]
cmp dword [edx + 4], 3
jne 0x424f19
cmp dword [ebp + 0x20], 0
jne 0x424ed5
xor eax, eax
jmp 0x425520
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
lea ecx, [ebp - 0x18ec]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x1cf4]
push eax
push 1
push 1
push str.BEGIN_TRANSACTION
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00407c09
add esp, 0x1c
test eax, eax
je 0x424f12
cmp dword [ebp - 0x1cf4], 0
je 0x424f19
xor eax, eax
jmp 0x425520
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x2d04], eax
mov ecx, dword [ebp - 0x2d04]
sub ecx, 1
mov dword [ebp - 0x2d04], ecx
cmp dword [ebp - 0x2d04], 4
ja case.default.0x424f47
mov edx, dword [ebp - 0x2d04]
jmp dword [edx*4 + 0x425526]
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1cf8]
push edx
lea eax, [ebp - 0xcb0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00425b24
add esp, 0x14
test eax, eax
je 0x424fe4
lea edx, [ebp - 0x18ec]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1cf4]
push ecx
push 1
push 1
mov edx, dword [ebp - 0x1cf8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00407c09
add esp, 0x1c
test eax, eax
je 0x424fb0
xor ecx, ecx
cmp dword [ebp - 0x1cf4], 0
sete cl
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x424fc5
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
jmp 0x424fe4
cmp dword [0x44b900], 0
je 0x424fe4
mov edx, dword [ebp - 0x1cf8]
push edx
lea eax, [ebp - 0xcb0]
push eax
call fcn.00426bbb
add esp, 8
cmp dword [ebp - 0x1cf8], 0
je 0x424ffc
mov ecx, dword [ebp - 0x1cf8]
push ecx
call fcn.004209ff
add esp, 4
jmp 0x425503
push 0xb5c
push 0
lea edx, [ebp - 0xb60]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x18b8]
push eax
push 0
push 0
lea ecx, [ebp - 0xb60]
push ecx
lea edx, [ebp - 0xcb0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00409f1d
add esp, 0x1c
test eax, eax
je 0x4252df
push 0x800
lea ecx, [ebp - 0x14b0]
push ecx
push 0x4428f8
push 0x442900
lea edx, [ebp - 0xb50]
push edx
call fcn.0042f530
add esp, 0x14
lea eax, [ebp - 0x14b0]
push eax
lea ecx, [ebp - 0xb50]
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
push 0x800
lea edx, [ebp - 0x14b0]
push edx
push 0x442904
push 0x44290c
lea eax, [ebp - 0x18b8]
push eax
call fcn.0042f530
add esp, 0x14
lea ecx, [ebp - 0x14b0]
push ecx
lea edx, [ebp - 0x18b8]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea eax, [ebp - 0xcb0]
push eax
push 0x442910
lea ecx, [ebp - 0x2cf8]
push ecx
mov edx, dword [0x449ba0]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0x18ec]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1cf4]
push edx
push 0
push 1
lea eax, [ebp - 0x2cf8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407c09
add esp, 0x1c
mov dword [ebp - 0xb64], eax
cmp dword [ebp - 0xb64], 0
je 0x42519f
cmp dword [ebp - 0x1cf4], 0
jne 0x42519f
lea edx, [ebp - 0x14b4]
push edx
lea eax, [ebp - 0xc68]
push eax
push 0x100
push 0xfffffffffffffff8
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea edx, [ebp - 0x14b4]
push edx
lea eax, [ebp - 0x1cf0]
push eax
push 4
push 0xfffffffffffffff0
push 2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x42517e
jmp 0x42516a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x425125
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLPurgeResults]
add esp, 4
jmp 0x4251a4
jmp 0x4252df
cmp dword [ebp - 0x8e0], 0
je 0x4251c2
cmp dword [ebp - 0x8ec], 0
je 0x4251c2
mov dword [ebp - 0x2d08], 0x442a3c
jmp 0x4251cc
mov dword [ebp - 0x2d08], 0x4497b0
cmp dword [ebp - 0x8e4], 0
je 0x4251ea
cmp dword [ebp - 0x8f0], 0
je 0x4251ea
mov dword [ebp - 0x2d0c], 0x442a54
jmp 0x4251f4
mov dword [ebp - 0x2d0c], 0x4497b4
cmp dword [ebp - 0x8e8], 0
je 0x425212
cmp dword [ebp - 0x8f4], 0
je 0x425212
mov dword [ebp - 0x2d10], 0x442a6c
jmp 0x42521c
mov dword [ebp - 0x2d10], 0x4497b8
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x1cf0]
push eax
lea ecx, [ebp - 0xc68]
push ecx
mov edx, dword [ebp - 0x8dc]
push edx
mov eax, dword [ebp - 0x2d08]
push eax
mov ecx, dword [ebp - 0x2d0c]
push ecx
mov edx, dword [ebp - 0x2d10]
push edx
mov eax, dword [ebp - 0x8ec]
push eax
mov ecx, dword [ebp - 0x8f0]
push ecx
mov edx, dword [ebp - 0x8f4]
push edx
mov eax, dword [ebp - 0x8f8]
push eax
mov ecx, dword [ebp - 0xa04]
push ecx
lea edx, [ebp - 0x18b8]
push edx
mov eax, dword [ebp - 0xa08]
push eax
lea ecx, [ebp - 0xb50]
push ecx
lea edx, [ebp - 0x4c]
push edx
push str.EXECUTE_msdb.dbo.sp_update_job__job_id___s___new_name__N_s___enabled___ld___description__N_s___start_step_id___ld___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_UPDATE_msdb.dbo.sysjobs_SET_date_modified__N_s__version_number___ld_WHERE__job_id___s_
lea eax, [ebp - 0x2cf8]
push eax
mov ecx, dword [0x449ba0]
call dword [ecx + 0x4cc]
add esp, 0x48
lea edx, [ebp - 0x18ec]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1cf4]
push ecx
push 1
push 1
lea edx, [ebp - 0x2cf8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00407c09
add esp, 0x1c
test eax, eax
je 0x4252dd
xor ecx, ecx
cmp dword [ebp - 0x1cf4], 0
sete cl
mov dword [ebp - 4], ecx
jmp 0x425321
push 0x200
lea edx, [ebp - 0x1cec]
push edx
push 0x13e
mov eax, dword [0x4492ac]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x442e1c
lea ecx, [ebp - 0x1cec]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [0x449ba0]
call dword [eax + 0x4cc]
add esp, 0xc
xor eax, eax
jmp 0x425520
jmp 0x425503
mov ecx, dword [ebp - 0xcb0]
and ecx, 0xffff
test ecx, ecx
je 0x425361
lea edx, [ebp - 0xcb0]
push edx
lea eax, [ebp - 0xcb0]
push eax
push str.IF__EXISTS__SELECT__FROM_msdb.dbo.sysjobs_WHERE__job_id___s____EXECUTE_msdb.dbo.sp_delete_job__job_id___s
lea ecx, [ebp - 0x2cf8]
push ecx
mov edx, dword [0x449ba0]
call dword [edx + 0x4cc]
add esp, 0x10
jmp 0x425383
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
push str.EXECUTE_msdb.dbo.sp_delete_all_msx_jobs__msx_server__N_s
lea ecx, [ebp - 0x2cf8]
push ecx
mov edx, dword [0x449ba0]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0x18ec]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1cf4]
push edx
push 1
push 1
lea eax, [ebp - 0x2cf8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00407c09
add esp, 0x1c
xor edx, edx
cmp dword [ebp - 0x1cf4], 0
sete dl
mov dword [ebp - 4], edx
jmp 0x425503
lea eax, [ebp - 0xcb0]
push eax
push str.EXECUTE_msdb.dbo.sp_start_job__job_id___s
lea ecx, [ebp - 0x2cf8]
push ecx
mov edx, dword [0x449ba0]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0x18ec]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1cf4]
push edx
push 1
push 1
lea eax, [ebp - 0x2cf8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00407c09
add esp, 0x1c
cmp dword [ebp - 0x1cf4], 0
je 0x42542c
cmp dword [ebp - 0x1cf4], 0x5606
je 0x42542c
mov dword [ebp - 0x2d14], 0
jmp 0x425436
mov dword [ebp - 0x2d14], 1
mov edx, dword [ebp - 0x2d14]
mov dword [ebp - 4], edx
jmp 0x425503
lea eax, [ebp - 0xcb0]
push eax
push str.EXECUTE_msdb.dbo.sp_stop_job__job_id___s
lea ecx, [ebp - 0x2cf8]
push ecx
mov edx, dword [0x449ba0]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0x18ec]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1cf4]
push edx
push 1
push 1
lea eax, [ebp - 0x2cf8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00407c09
add esp, 0x1c
cmp dword [ebp - 0x1cf4], 0
je 0x4254b0
cmp dword [ebp - 0x1cf4], 0x5606
je 0x4254b0
mov dword [ebp - 0x2d18], 0
jmp 0x4254ba
mov dword [ebp - 0x2d18], 1
mov edx, dword [ebp - 0x2d18]
mov dword [ebp - 4], edx
jmp 0x425503
push 0x200
lea eax, [ebp - 0x1cec]
push eax
push 0x124
mov ecx, dword [0x4492ac]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x1cec]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [0x449ba0]
call dword [eax + 0x4cc]
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x42551d
cmp dword [ebp - 0x1cf4], 0
je 0x42551d
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x1cf4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret