Function at 0x427050
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2cb0
call fcn.00434e00
mov eax, dword [0x44d558]
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0xc
mov esi, str.ProcessJobMSXInstruction
lea edi, [ebp - 0x2c8c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x44eac8]
mov word [ebp - 0x1410], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x140e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44ead0]
mov word [ebp - 0x1468], cx
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x1466]
rep stosd dword es:[edi], eax
mov dx, word [0x44ead8]
mov word [ebp - 0x408], dx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x406]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x44eae0]
mov word [ebp - 0x2850], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x284e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44eae8]
mov word [ebp - 0x1568], cx
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x1566]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x156c], 0
mov dword [ebp - 0x141c], 0
mov dword [ebp - 0x2c98], 0
mov dword [ebp - 0x2c94], 0
mov dword [ebp - 0x1570], 0
mov dword [ebp - 0x1414], 0
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x1418], 0
mov dword [ebp - 0x2c90], 0
push str.ProcessJobMSXInstruction___n
call fcn.004329b0
add esp, 4
mov edx, dword [ebp + 0x10]
add edx, 0xc
push edx
call fcn.00417cb0
add esp, 4
test eax, eax
je 0x4271a6
lea eax, [ebp - 0x1468]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0xc
push ecx
call fcn.00418cd0
add esp, 8
jmp 0x4271cd
mov edx, dword [ebp + 0x10]
cmp dword [edx + 4], 3
je 0x4271cd
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0x16
mov edx, dword [0x44e620]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
xor eax, eax
jmp 0x427867
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 1
je 0x4271e8
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 4], 2
je 0x4271e8
mov edx, dword [ebp + 0x10]
cmp dword [edx + 4], 3
jne 0x427239
cmp dword [ebp + 0x20], 0
jne 0x4271f5
xor eax, eax
jmp 0x427867
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
lea ecx, [ebp - 0x2c8c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x1570]
push eax
push 1
push 1
push str.BEGIN_TRANSACTION
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004084e0
add esp, 0x1c
test eax, eax
je 0x427232
cmp dword [ebp - 0x1570], 0
je 0x427239
xor eax, eax
jmp 0x427867
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x2c9c], eax
mov ecx, dword [ebp - 0x2c9c]
sub ecx, 1
mov dword [ebp - 0x2c9c], ecx
cmp dword [ebp - 0x2c9c], 4
ja case.default.0x427267
mov edx, dword [ebp - 0x2c9c]
jmp dword [edx*4 + 0x427875]
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x2c98]
push edx
lea eax, [ebp - 0x1468]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00427ef0
add esp, 0x14
test eax, eax
je 0x42730a
lea edx, [ebp - 0x2c8c]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1570]
push ecx
push 1
push 1
mov edx, dword [ebp - 0x2c98]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004084e0
add esp, 0x1c
test eax, eax
je 0x4272d3
xor ecx, ecx
cmp dword [ebp - 0x1570], 0
sete cl
mov dword [ebp - 0x156c], ecx
cmp dword [ebp - 0x156c], 0
je 0x4272eb
mov edx, dword [ebp + 0x24]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
jmp 0x42730a
cmp dword [0x450ca8], 0
je 0x42730a
mov edx, dword [ebp - 0x2c98]
push edx
lea eax, [ebp - 0x1468]
push eax
call fcn.00428f70
add esp, 8
cmp dword [ebp - 0x2c98], 0
je 0x427322
mov ecx, dword [ebp - 0x2c98]
push ecx
call fcn.00422e50
add esp, 4
jmp 0x427847
push 0xadc
push 0
lea edx, [ebp - 0x2050]
push edx
call sub.MSVCR71.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x2c58]
push eax
push 0
push 0
lea ecx, [ebp - 0x2050]
push ecx
lea edx, [ebp - 0x1468]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040a9d0
add esp, 0x1c
test eax, eax
je 0x42761d
push 0x800
lea ecx, [ebp - 0x2850]
push ecx
push 0x447af4
push 0x447afc
lea edx, [ebp - 0x2040]
push edx
call fcn.004321e0
add esp, 0x14
push 0x84
lea eax, [ebp - 0x2850]
push eax
lea ecx, [ebp - 0x2040]
push ecx
mov edx, dword [0x450d4c]
call dword [edx + 0x4c4]
push 0x800
lea eax, [ebp - 0x2850]
push eax
push 0x447b00
push 0x447b08
lea ecx, [ebp - 0x2c58]
push ecx
call fcn.004321e0
add esp, 0x14
push 0x201
lea edx, [ebp - 0x2850]
push edx
lea eax, [ebp - 0x2c58]
push eax
mov ecx, dword [0x450d4c]
call dword [ecx + 0x4c4]
lea edx, [ebp - 0x1468]
push edx
push str.SELECT_CONVERT_NVARCHAR__date_modified__112______CONVERT_NVARCHAR__date_modified__114___version_number_FROM_msdb.dbo.sysjobs_WHERE__job_id___s_
lea eax, [ebp - 0x1410]
push eax
mov ecx, dword [0x450d4c]
call dword [ecx + 0x4cc]
add esp, 0xc
lea edx, [ebp - 0x2c8c]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1570]
push ecx
push 0
push 1
lea edx, [ebp - 0x1410]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004084e0
add esp, 0x1c
mov dword [ebp - 0x141c], eax
cmp dword [ebp - 0x141c], 0
je 0x4274d5
cmp dword [ebp - 0x1570], 0
jne 0x4274d5
lea ecx, [ebp - 0x2c90]
push ecx
lea edx, [ebp - 0x1568]
push edx
push pe_nt_image_headers32
push 0xfffffffffffffff8
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
lea ecx, [ebp - 0x2c90]
push ecx
lea edx, [ebp - 0x1418]
push edx
push 4
push 0xfffffffffffffff0
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLBind]
add esp, 0x18
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x4274b4
jmp 0x4274a0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x42745b
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC.dll_QSQLPurgeResults]
add esp, 4
jmp 0x4274da
jmp 0x42761d
cmp dword [ebp - 0x1dd0], 0
je 0x4274f8
cmp dword [ebp - 0x1ddc], 0
je 0x4274f8
mov dword [ebp - 0x2ca0], 0x447c3c
jmp 0x427502
mov dword [ebp - 0x2ca0], 0x44eaec
cmp dword [ebp - 0x1dd4], 0
je 0x427520
cmp dword [ebp - 0x1de0], 0
je 0x427520
mov dword [ebp - 0x2ca4], 0x447c54
jmp 0x42752a
mov dword [ebp - 0x2ca4], 0x44eaf0
cmp dword [ebp - 0x1dd8], 0
je 0x427548
cmp dword [ebp - 0x1de4], 0
je 0x427548
mov dword [ebp - 0x2ca8], 0x447c6c
jmp 0x427552
mov dword [ebp - 0x2ca8], 0x44eaf4
lea ecx, [ebp - 0x15bc]
push ecx
mov edx, dword [ebp - 0x1418]
push edx
lea eax, [ebp - 0x1568]
push eax
mov ecx, dword [ebp - 0x1dcc]
push ecx
mov edx, dword [ebp - 0x2ca0]
push edx
mov eax, dword [ebp - 0x2ca4]
push eax
mov ecx, dword [ebp - 0x2ca8]
push ecx
mov edx, dword [ebp - 0x1ddc]
push edx
mov eax, dword [ebp - 0x1de0]
push eax
mov ecx, dword [ebp - 0x1de4]
push ecx
mov edx, dword [ebp - 0x1de8]
push edx
mov eax, dword [ebp - 0x1ef4]
push eax
lea ecx, [ebp - 0x2c58]
push ecx
mov edx, dword [ebp - 0x1ef8]
push edx
lea eax, [ebp - 0x2040]
push eax
lea ecx, [ebp - 0x15bc]
push ecx
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 edx, [ebp - 0x1410]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4cc]
add esp, 0x48
lea ecx, [ebp - 0x2c8c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x1570]
push eax
push 1
push 1
lea ecx, [ebp - 0x1410]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004084e0
add esp, 0x1c
test eax, eax
je 0x42761b
xor eax, eax
cmp dword [ebp - 0x1570], 0
sete al
mov dword [ebp - 0x156c], eax
jmp 0x427661
push 0x200
lea ecx, [ebp - 0x408]
push ecx
push 0x13e
mov edx, dword [0x44e620]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x448020
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [0x450d4c]
call dword [edx + 0x4cc]
add esp, 0xc
xor eax, eax
jmp 0x427867
jmp 0x427847
movzx eax, word [ebp - 0x1468]
test eax, eax
je 0x42769c
lea ecx, [ebp - 0x1468]
push ecx
lea edx, [ebp - 0x1468]
push edx
push str.IF__EXISTS__SELECT__FROM_msdb.dbo.sysjobs_WHERE__job_id___s____EXECUTE_msdb.dbo.sp_delete_job__job_id___s
lea eax, [ebp - 0x1410]
push eax
mov ecx, dword [0x450d4c]
call dword [ecx + 0x4cc]
add esp, 0x10
jmp 0x4276be
mov edx, dword [ebp + 8]
add edx, 0x14
push edx
push str.EXECUTE_msdb.dbo.sp_delete_all_msx_jobs__msx_server__N_s
lea eax, [ebp - 0x1410]
push eax
mov ecx, dword [0x450d4c]
call dword [ecx + 0x4cc]
add esp, 0xc
lea edx, [ebp - 0x2c8c]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1570]
push ecx
push 1
push 1
lea edx, [ebp - 0x1410]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004084e0
add esp, 0x1c
xor ecx, ecx
cmp dword [ebp - 0x1570], 0
sete cl
mov dword [ebp - 0x156c], ecx
jmp 0x427847
lea edx, [ebp - 0x1468]
push edx
push str.EXECUTE_msdb.dbo.sp_start_job__job_id___s
lea eax, [ebp - 0x1410]
push eax
mov ecx, dword [0x450d4c]
call dword [ecx + 0x4cc]
add esp, 0xc
lea edx, [ebp - 0x2c8c]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1570]
push ecx
push 1
push 1
lea edx, [ebp - 0x1410]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004084e0
add esp, 0x1c
cmp dword [ebp - 0x1570], 0
je 0x42776a
cmp dword [ebp - 0x1570], 0x5606
je 0x42776a
mov dword [ebp - 0x2cac], 0
jmp 0x427774
mov dword [ebp - 0x2cac], 1
mov ecx, dword [ebp - 0x2cac]
mov dword [ebp - 0x156c], ecx
jmp 0x427847
lea edx, [ebp - 0x1468]
push edx
push str.EXECUTE_msdb.dbo.sp_stop_job__job_id___s
lea eax, [ebp - 0x1410]
push eax
mov ecx, dword [0x450d4c]
call dword [ecx + 0x4cc]
add esp, 0xc
lea edx, [ebp - 0x2c8c]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1570]
push ecx
push 1
push 1
lea edx, [ebp - 0x1410]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004084e0
add esp, 0x1c
cmp dword [ebp - 0x1570], 0
je 0x4277f1
cmp dword [ebp - 0x1570], 0x5606
je 0x4277f1
mov dword [ebp - 0x2cb0], 0
jmp 0x4277fb
mov dword [ebp - 0x2cb0], 1
mov ecx, dword [ebp - 0x2cb0]
mov dword [ebp - 0x156c], ecx
jmp 0x427847
push 0x200
lea edx, [ebp - 0x408]
push edx
push 0x124
mov eax, dword [0x44e620]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
push edx
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [0x450d4c]
call dword [edx + 0x4cc]
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x427861
cmp dword [ebp - 0x1570], 0
je 0x427861
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x1570]
mov dword [eax], ecx
mov eax, dword [ebp - 0x156c]
mov ecx, dword [ebp - 4]
call fcn.00434de1
pop edi
pop esi
mov esp, ebp
pop ebp
ret