Function at 0x422c04
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4448
call fcn.004321a0
push esi
push edi
mov ecx, 9
mov esi, str.UploadMSXJobStatus
lea edi, [ebp - 0x1c3c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x44bc2c]
mov word [ebp - 0x4448], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x4446]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44bc34]
mov word [ebp - 0x1c14], cx
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1c12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x44bc3c]
mov word [ebp - 0x2c48], dx
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x2c46]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x44bc44]
mov word [ebp - 0x3448], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x3446]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44bc4c]
mov word [ebp - 0x54], cx
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x52]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c48], 0
mov dword [ebp - 0x1c40], 0
mov dword [ebp - 0x1c44], 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.UploadMSXJobStatus__s___d__n
call fcn.004303d5
add esp, 0xc
cmp dword [0x44b08c], 0
je 0x422d16
push 0x44c1c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x422d57
push 0x44c1c0
call dword [0x44b824]
test eax, eax
jne 0x422d57
cmp dword [0x44b090], 0
je 0x422d4c
cmp dword [0x44dc84], 0
je 0x422d4c
lea ecx, [ebp - 0x1c3c]
push ecx
push 0x442df4
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
push 0x44c1c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x44b090], 0
je 0x422d7e
cmp dword [0x44dc84], 0
je 0x422d7e
lea edx, [ebp - 0x1c3c]
push edx
push 0x442e30
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
mov eax, dword [0x44c348]
mov dword [ebp - 0x1c40], eax
push 0x44c1c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x44b090], 0
je 0x422dbb
cmp dword [0x44dc84], 0
je 0x422dbb
lea ecx, [ebp - 0x1c3c]
push ecx
push 0x442e64
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
cmp dword [ebp - 0x1c40], 0
jne 0x422dcb
xor eax, eax
jmp 0x4231b0
push 0
call fcn.004270b5
add esp, 4
test eax, eax
jne 0x422de0
xor eax, eax
jmp 0x4231b0
push str.Target_SQLAgent___Uploader
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xc14]
push eax
call fcn.004271e4
add esp, 0xc
test eax, eax
je 0x423067
cmp dword [0x44b08c], 0
je 0x422e16
push 0x44c1c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x422e57
push 0x44c1c0
call dword [0x44b824]
test eax, eax
jne 0x422e57
cmp dword [0x44b090], 0
je 0x422e4c
cmp dword [0x44dc84], 0
je 0x422e4c
lea ecx, [ebp - 0x1c3c]
push ecx
push 0x442ed0
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
push 0x44c1c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x44b090], 0
je 0x422e7e
cmp dword [0x44dc84], 0
je 0x422e7e
lea edx, [ebp - 0x1c3c]
push edx
push 0x442f0c
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
mov dword [ebp - 0x1c48], 0
jmp 0x422e99
mov eax, dword [ebp - 0x1c48]
add eax, 1
mov dword [ebp - 0x1c48], eax
mov ecx, dword [ebp - 0x1c48]
cmp ecx, dword [ebp - 0x1c40]
jge 0x423025
push 0
push 0x44c340
call dword [sym.imp.SQLSVC.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x423020
push 0x1000
lea edx, [ebp - 0x2c48]
push edx
push 0x442f40
push 0x442f48
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x24]
push ecx
call fcn.0042fc50
add esp, 0x14
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004177d0
add esp, 8
push 0x44b704
lea ecx, [ebp - 0x54]
push ecx
push 0x442f4c
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
push eax
push str.UPDATE_msdb.dbo.sysjobservers_SET_last_run_date___ld__last_run_time___ld__last_run_duration___ld__last_run_outcome___ld__last_outcome_message__N_s_WHERE__job_id___s__AND__server_id___SELECT_server_id_FROM_msdb.dbo.systargetservers_WHERE__server_name__N_s___
lea ecx, [ebp - 0x1c14]
push ecx
mov edx, dword [0x44df4c]
call dword [edx + 0x4cc]
add esp, 0x24
push 0x1000
lea eax, [ebp - 0x4448]
push eax
lea ecx, [ebp - 0x2c48]
push ecx
push 0x44319c
lea edx, [ebp - 0x1c14]
push edx
call fcn.0042fc50
add esp, 0x14
mov word [ebp - 0x3448], 0
mov eax, dword [ebp - 0x3448]
and eax, 0xffff
mov dword [ebp - 0x1c44], eax
lea ecx, [ebp - 0x1c3c]
push ecx
lea edx, [ebp - 0x3448]
push edx
lea eax, [ebp - 0x1c44]
push eax
push 1
push 1
lea ecx, [ebp - 0x4448]
push ecx
lea edx, [ebp - 0xc14]
push edx
call fcn.00407c09
add esp, 0x1c
xor eax, eax
cmp dword [ebp - 0x1c44], 0
setne al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x422fd2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x422ff8
lea edx, [ebp - 0x4448]
push edx
push 0x126
push 0
push 1
call fcn.0041bfab
add esp, 0x10
cmp dword [ebp - 0x1c44], 0x2714
jne 0x422ff8
jmp 0x423025
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x24], 0
je 0x423010
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x24]
push edx
call fcn.0042138d
add esp, 4
push 0
push 0x44c340
call dword [sym.imp.SQLSVC.dll_SHRecMemDelete]
add esp, 8
jmp 0x422e8a
push 0x44c1c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x44b090], 0
je 0x423057
cmp dword [0x44dc84], 0
je 0x423057
lea eax, [ebp - 0x1c3c]
push eax
push 0x4431d0
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
lea ecx, [ebp - 0xc14]
push ecx
call dword [sym.imp.SQLSVC.dll_QSQLLogoff]
add esp, 4
call fcn.004231b6
cmp dword [ebp + 0xc], 0
je 0x423192
cmp dword [0x44b08c], 0
je 0x42308c
push 0x44c1c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x4230cd
push 0x44c1c0
call dword [0x44b824]
test eax, eax
jne 0x4230cd
cmp dword [0x44b090], 0
je 0x4230c2
cmp dword [0x44dc84], 0
je 0x4230c2
lea edx, [ebp - 0x1c3c]
push edx
push 0x443204
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
push 0x44c1c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x44b090], 0
je 0x4230f4
cmp dword [0x44dc84], 0
je 0x4230f4
lea eax, [ebp - 0x1c3c]
push eax
push 0x443240
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
mov dword [ebp - 0x1c48], 0
jmp 0x42310f
mov ecx, dword [ebp - 0x1c48]
add ecx, 1
mov dword [ebp - 0x1c48], ecx
mov edx, dword [ebp - 0x1c48]
cmp edx, dword [0x44c348]
jge 0x423160
push 0
push 0x44c340
call dword [sym.imp.SQLSVC.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42315e
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x24], 0
je 0x42314e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x24]
push edx
call fcn.0042138d
add esp, 4
push 0
push 0x44c340
call dword [sym.imp.SQLSVC.dll_SHRecMemDelete]
add esp, 8
jmp 0x423100
push 0x44c1c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x44b090], 0
je 0x423192
cmp dword [0x44dc84], 0
je 0x423192
lea eax, [ebp - 0x1c3c]
push eax
push 0x443274
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
cmp dword [ebp - 4], 0
je 0x4231ad
mov ecx, dword [ebp - 4]
push ecx
push 0x12b
push 0
push 3
call fcn.0041bfab
add esp, 0x10
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret