Function at 0x425150
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c98
call fcn.004321a0
push esi
push edi
mov ecx, 0xc
mov esi, str.ProcessJobMSXInstruction
lea edi, [ebp - 0x186c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x44bcd8]
mov word [ebp - 0x2c78], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x2c76]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44bce0]
mov word [ebp - 0xc30], cx
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0xc2e]
rep stosd dword es:[edi], eax
mov dx, word [0x44bce8]
mov word [ebp - 0x1c6c], dx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x1c6a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x44bcf0]
mov word [ebp - 0x1430], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x142e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44bcf8]
mov word [ebp - 0xbe8], cx
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xbe6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], 0
mov dword [ebp - 0xae4], 0
mov dword [ebp - 0x1c78], 0
mov dword [ebp - 0x2c80], 0
mov dword [ebp - 0x1c74], 0
mov dword [ebp - 0x2c7c], 0
mov dword [ebp - 0xae8], 0
mov dword [ebp - 0x1c70], 0
mov dword [ebp - 0x1434], 0
push str.ProcessJobMSXInstruction___n
call fcn.004303d5
add esp, 4
mov edx, dword [ebp + 0x10]
add edx, 0xc
push edx
call fcn.0041681d
add esp, 4
test eax, eax
je 0x425299
lea eax, [ebp - 0xc30]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0xc
push ecx
call fcn.004177d0
add esp, 8
jmp 0x4252c0
mov edx, dword [ebp + 0x10]
cmp dword [edx + 4], 3
je 0x4252c0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0x16
mov edx, dword [0x44b81c]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
xor eax, eax
jmp 0x425933
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 1
je 0x4252db
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 2
je 0x4252db
mov edx, dword [ebp + 0x10]
cmp dword [edx + 4], 3
jne 0x42532c
cmp dword [ebp + 0x20], 0
jne 0x4252e8
xor eax, eax
jmp 0x425933
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
lea ecx, [ebp - 0x186c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x1c74]
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 0x425325
cmp dword [ebp - 0x1c74], 0
je 0x42532c
xor eax, eax
jmp 0x425933
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x2c84], eax
mov ecx, dword [ebp - 0x2c84]
sub ecx, 1
mov dword [ebp - 0x2c84], ecx
cmp dword [ebp - 0x2c84], 4
ja case.default.0x42535a
mov edx, dword [ebp - 0x2c84]
jmp dword [edx*4 + 0x425939]
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1c78]
push edx
lea eax, [ebp - 0xc30]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00425f37
add esp, 0x14
test eax, eax
je 0x4253f7
lea edx, [ebp - 0x186c]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1c74]
push ecx
push 1
push 1
mov edx, dword [ebp - 0x1c78]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00407c09
add esp, 0x1c
test eax, eax
je 0x4253c3
xor ecx, ecx
cmp dword [ebp - 0x1c74], 0
sete cl
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x4253d8
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
jmp 0x4253f7
cmp dword [0x44dea4], 0
je 0x4253f7
mov edx, dword [ebp - 0x1c78]
push edx
lea eax, [ebp - 0xc30]
push eax
call fcn.00426fce
add esp, 8
cmp dword [ebp - 0x1c78], 0
je 0x42540f
mov ecx, dword [ebp - 0x1c78]
push ecx
call fcn.0042138d
add esp, 4
jmp 0x425916
push 0xadc
push 0
lea edx, [ebp - 0xae0]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x1838]
push eax
push 0
push 0
lea ecx, [ebp - 0xae0]
push ecx
lea edx, [ebp - 0xc30]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00409ef3
add esp, 0x1c
test eax, eax
je 0x4256f2
push 0x800
lea ecx, [ebp - 0x1430]
push ecx
push 0x444a44
push 0x444a4c
lea edx, [ebp - 0xad0]
push edx
call fcn.0042fc50
add esp, 0x14
lea eax, [ebp - 0x1430]
push eax
lea ecx, [ebp - 0xad0]
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
push 0x800
lea edx, [ebp - 0x1430]
push edx
push 0x444a50
push 0x444a58
lea eax, [ebp - 0x1838]
push eax
call fcn.0042fc50
add esp, 0x14
lea ecx, [ebp - 0x1430]
push ecx
lea edx, [ebp - 0x1838]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea eax, [ebp - 0xc30]
push eax
push 0x444a5c
lea ecx, [ebp - 0x2c78]
push ecx
mov edx, dword [0x44df4c]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0x186c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1c74]
push edx
push 0
push 1
lea eax, [ebp - 0x2c78]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407c09
add esp, 0x1c
mov dword [ebp - 0xae4], eax
cmp dword [ebp - 0xae4], 0
je 0x4255b2
cmp dword [ebp - 0x1c74], 0
jne 0x4255b2
lea edx, [ebp - 0x1434]
push edx
lea eax, [ebp - 0xbe8]
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 - 0x1434]
push edx
lea eax, [ebp - 0x1c70]
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 0x425591
jmp 0x42557d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x425538
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLPurgeResults]
add esp, 4
jmp 0x4255b7
jmp 0x4256f2
cmp dword [ebp - 0x860], 0
je 0x4255d5
cmp dword [ebp - 0x86c], 0
je 0x4255d5
mov dword [ebp - 0x2c88], 0x444b88
jmp 0x4255df
mov dword [ebp - 0x2c88], 0x44bcfc
cmp dword [ebp - 0x864], 0
je 0x4255fd
cmp dword [ebp - 0x870], 0
je 0x4255fd
mov dword [ebp - 0x2c8c], 0x444ba0
jmp 0x425607
mov dword [ebp - 0x2c8c], 0x44bd00
cmp dword [ebp - 0x868], 0
je 0x425625
cmp dword [ebp - 0x874], 0
je 0x425625
mov dword [ebp - 0x2c90], 0x444bb8
jmp 0x42562f
mov dword [ebp - 0x2c90], 0x44bd04
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x1c70]
push eax
lea ecx, [ebp - 0xbe8]
push ecx
mov edx, dword [ebp - 0x85c]
push edx
mov eax, dword [ebp - 0x2c88]
push eax
mov ecx, dword [ebp - 0x2c8c]
push ecx
mov edx, dword [ebp - 0x2c90]
push edx
mov eax, dword [ebp - 0x86c]
push eax
mov ecx, dword [ebp - 0x870]
push ecx
mov edx, dword [ebp - 0x874]
push edx
mov eax, dword [ebp - 0x878]
push eax
mov ecx, dword [ebp - 0x984]
push ecx
lea edx, [ebp - 0x1838]
push edx
mov eax, dword [ebp - 0x988]
push eax
lea ecx, [ebp - 0xad0]
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 - 0x2c78]
push eax
mov ecx, dword [0x44df4c]
call dword [ecx + 0x4cc]
add esp, 0x48
lea edx, [ebp - 0x186c]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1c74]
push ecx
push 1
push 1
lea edx, [ebp - 0x2c78]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00407c09
add esp, 0x1c
test eax, eax
je 0x4256f0
xor ecx, ecx
cmp dword [ebp - 0x1c74], 0
sete cl
mov dword [ebp - 4], ecx
jmp 0x425734
push 0x200
lea edx, [ebp - 0x1c6c]
push edx
push 0x13e
mov eax, dword [0x44b81c]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x444f68
lea ecx, [ebp - 0x1c6c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [0x44df4c]
call dword [eax + 0x4cc]
add esp, 0xc
xor eax, eax
jmp 0x425933
jmp 0x425916
mov ecx, dword [ebp - 0xc30]
and ecx, 0xffff
test ecx, ecx
je 0x425774
lea edx, [ebp - 0xc30]
push edx
lea eax, [ebp - 0xc30]
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 - 0x2c78]
push ecx
mov edx, dword [0x44df4c]
call dword [edx + 0x4cc]
add esp, 0x10
jmp 0x425796
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 - 0x2c78]
push ecx
mov edx, dword [0x44df4c]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0x186c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1c74]
push edx
push 1
push 1
lea eax, [ebp - 0x2c78]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00407c09
add esp, 0x1c
xor edx, edx
cmp dword [ebp - 0x1c74], 0
sete dl
mov dword [ebp - 4], edx
jmp 0x425916
lea eax, [ebp - 0xc30]
push eax
push str.EXECUTE_msdb.dbo.sp_start_job__job_id___s
lea ecx, [ebp - 0x2c78]
push ecx
mov edx, dword [0x44df4c]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0x186c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1c74]
push edx
push 1
push 1
lea eax, [ebp - 0x2c78]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00407c09
add esp, 0x1c
cmp dword [ebp - 0x1c74], 0
je 0x42583f
cmp dword [ebp - 0x1c74], 0x5606
je 0x42583f
mov dword [ebp - 0x2c94], 0
jmp 0x425849
mov dword [ebp - 0x2c94], 1
mov edx, dword [ebp - 0x2c94]
mov dword [ebp - 4], edx
jmp 0x425916
lea eax, [ebp - 0xc30]
push eax
push str.EXECUTE_msdb.dbo.sp_stop_job__job_id___s
lea ecx, [ebp - 0x2c78]
push ecx
mov edx, dword [0x44df4c]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0x186c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x1c74]
push edx
push 1
push 1
lea eax, [ebp - 0x2c78]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00407c09
add esp, 0x1c
cmp dword [ebp - 0x1c74], 0
je 0x4258c3
cmp dword [ebp - 0x1c74], 0x5606
je 0x4258c3
mov dword [ebp - 0x2c98], 0
jmp 0x4258cd
mov dword [ebp - 0x2c98], 1
mov edx, dword [ebp - 0x2c98]
mov dword [ebp - 4], edx
jmp 0x425916
push 0x200
lea eax, [ebp - 0x1c6c]
push eax
push 0x124
mov ecx, dword [0x44b81c]
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 - 0x1c6c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [0x44df4c]
call dword [eax + 0x4cc]
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x425930
cmp dword [ebp - 0x1c74], 0
je 0x425930
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x1c74]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret