Function at 0x10043fce0
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1fb0]
mov eax, 0x20b0
call fcn.10046b370
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x2100], rbx
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x1fa0], rax
mov r13d, edx
mov rsi, rcx
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x17a0]
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
mov r15d, ebx
mov r8d, r13d
mov rdx, rsi
lea rcx, str.UploadMSXJobStatus__s___d__n
call fcn.10044c220
call fcn.1004342d0
movzx edi, al
lea rcx, [0x1004a9c08]
mov rax, qword [0x1004a90d0]
call qword [case.0x10044bd0b.0]
lea r14, str.UploadMSXJobStatus
test eax, eax
jne 0x10043fda4
cmp dword [0x1004a8ebc], ebx
je 0x10043fd97
test dil, dil
je 0x10043fd97
mov rdx, r14
lea rcx, str.__s_____Waiting_for_CritSec__n
call fcn.10043bdc0
lea rcx, [0x1004a9c08]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1004a8ebc], ebx
je 0x10043fdc0
test dil, dil
je 0x10043fdc0
mov rdx, r14
lea rcx, str.__s_____Enters_CritSec__n
call fcn.10043bdc0
mov r12d, dword [0x1004a9c9c]
call fcn.1004342d0
movzx edi, al
lea rcx, [0x1004a9c08]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x1004a8ebc], ebx
je 0x10043fdf8
test dil, dil
je 0x10043fdf8
mov rdx, r14
lea rcx, str.__s_____Leaves_CritSec__n
call fcn.10043bdc0
test r12d, r12d
jne 0x10043fe04
xor eax, eax
jmp 0x1004403e6
xor edx, edx
xor ecx, ecx
call fcn.100445570
test eax, eax
je 0x10043fdfd
xor r9d, r9d
lea r8, str.msdb
lea rdx, str.SQLAgent___MSX_Op_Servicer
lea rcx, [rbp + 0xb90]
call fcn.10040f7b0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], bx
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rdx, str.LoginTimeout
lea rcx, [rsp + 0x58]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x58]
call fcn.100409ee0
mov r9d, eax
mov r8, r14
mov edx, 1
lea rcx, [rbp + 0xb90]
call fcn.10040fcc0
test eax, eax
je 0x10043fdfd
lea r9, str.Target_SQLAgent___Uploader
mov r8, rsi
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xb90]
call fcn.100445950
mov esi, 3
test eax, eax
je 0x1004402d1
call fcn.1004342d0
movzx edi, al
lea rcx, [0x1004a9c08]
mov rax, qword [0x1004a90d0]
call qword [case.0x10044bd0b.0]
test eax, eax
jne 0x10043ff04
cmp dword [0x1004a8ebc], eax
je 0x10043fef7
test dil, dil
je 0x10043fef7
mov rdx, r14
lea rcx, str.__s_____Waiting_for_CritSec__n
call fcn.10043bdc0
lea rcx, [0x1004a9c08]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1004a8ebc], 0
je 0x10043ff21
test dil, dil
je 0x10043ff21
mov rdx, r14
lea rcx, str.__s_____Enters_CritSec__n
call fcn.10043bdc0
mov r14d, ebx
test r12d, r12d
jle 0x10044028e
lea rsi, [0x1004a8db0]
nop dword [rax]
nop dword [rax + rax]
xor edx, edx
lea rcx, [0x1004a9c90]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
mov rdi, rax
test rax, rax
je 0x10044027d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rax
mov word [rsp + 0x60], bx
mov r10d, 4
mov qword [rsp + 0x50], r10
mov ecx, 1
mov word [rsp + 0x60], cx
lea rax, [rdi + 0x10]
lea r9d, [r10 - 0x14]
mov r8d, ecx
mov edx, ecx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], bx
mov qword [rsp + 0x28], rbx
mov word [rsp + 0x20], r10w
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov r10d, 4
mov qword [rsp + 0x50], r10
mov ecx, 2
mov word [rsp + 0x60], cx
lea rax, [rdi + 0x14]
lea r9d, [r10 - 0x14]
lea r8d, [r10 - 3]
mov edx, ecx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], bx
mov qword [rsp + 0x28], rbx
mov word [rsp + 0x20], r10w
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov r10d, 4
mov qword [rsp + 0x50], r10
mov ecx, 3
mov word [rsp + 0x60], cx
lea rax, [rdi + 0x18]
lea r9d, [r10 - 0x14]
lea r8d, [r10 - 3]
mov edx, ecx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], bx
mov qword [rsp + 0x28], rbx
mov word [rsp + 0x20], r10w
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov r10d, 4
mov qword [rsp + 0x50], r10
mov word [rsp + 0x60], r10w
lea rax, [rdi + 0x1c]
lea r9d, [r10 - 0x14]
lea r8d, [r10 - 3]
mov edx, r10d
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], bx
mov qword [rsp + 0x28], rbx
mov word [rsp + 0x20], r10w
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov r10, qword [rdi + 0x28]
mov rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], 0
jne 0x1004400b4
add eax, eax
mov edx, 5
mov word [rsp + 0x60], dx
movsxd rcx, eax
lea r9d, [rdx - 0xd]
lea r8d, [rdx - 4]
lea rax, [0x100499038]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r10
mov word [rsp + 0x30], bx
mov qword [rsp + 0x28], 0xfa0
mov eax, 0xfffffff7
mov word [rsp + 0x20], ax
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov qword [rsp + 0x50], reloc.ODBC32.dll_SQLFreeStmt
mov eax, 6
mov word [rsp + 0x60], ax
mov ecx, 0xfffffff5
mov r9d, ecx
lea r8d, [rax - 5]
mov edx, eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], reloc.ODBC32.dll_SQLFreeStmt
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x30], bx
mov qword [rsp + 0x28], reloc.ODBC32.dll_SQLFreeStmt
mov word [rsp + 0x20], cx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x100440170
add eax, eax
mov edx, 7
mov word [rsp + 0x60], dx
cdqe
lea r9d, [rdx - 0xf]
lea r8d, [rdx - 6]
lea rcx, [0x100499038]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x30], bx
mov qword [rsp + 0x28], 0x80
mov eax, 0xfffffff7
mov word [rsp + 0x20], ax
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov word [rbp + 0x17a0], bx
mov dword [rsp + 0x50], ebx
lea rax, str.UploadMSXJobStatus
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x400
lea rax, [rbp + 0x17a0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, str.UPDATE_msdb.dbo.sysjobservers_SET_last_run_date_____last_run_time_____last_run_duration_____last_run_outcome_____last_outcome_message____WHERE__job_id_____AND__server_id___SELECT_server_id_FROM_msdb.dbo.systargetservers_WHERE__server_name______
lea rcx, [rbp - 0x80]
call fcn.100410640
mov esi, dword [rsp + 0x50]
test esi, esi
jne 0x100440221
inc r15d
jmp 0x100440244
lea r9, str.UPDATE_msdb.dbo.sysjobservers_SET_last_run_date_____last_run_time_____last_run_duration_____last_run_outcome_____last_outcome_message____WHERE__job_id_____AND__server_id___SELECT_server_id_FROM_msdb.dbo.systargetservers_WHERE__server_name______
xor edx, edx
lea ecx, [rdx + 1]
mov r8d, 0x126
call fcn.100432180
cmp esi, 0x2714
je 0x100440410
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x100440252
call fcn.10043b3b0
xor edx, edx
lea rcx, [0x1004a9c90]
call qword [sym.imp.SQLSVC.dll_SHRecMemDelete]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x100440276
mov edx, 3
call qword [sym.imp.ODBC32.dll_SQLFreeStmt]
lea rsi, [0x1004a8db0]
inc r14d
cmp r14d, r12d
jl 0x10043ff40
mov esi, 3
call fcn.1004342d0
movzx edi, al
lea rcx, [0x1004a9c08]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r14, str.UploadMSXJobStatus
cmp dword [0x1004a8ebc], 0
je 0x1004402c7
test dil, dil
je 0x1004402c7
mov rdx, r14
lea rcx, str.__s_____Leaves_CritSec__n
call fcn.10043bdc0
lea rcx, [rbp - 0x80]
call qword [sym.imp.SQLSVC.dll_QSQLLogoff]
lea rcx, [rbp + 0xb90]
call qword [sym.imp.SQLSVC.dll_QSQLLogoff]
call fcn.100440440
test r13d, r13d
je 0x1004403cc
call fcn.1004342d0
movzx edi, al
lea rcx, [0x1004a9c08]
mov rax, qword [0x1004a90d0]
call qword [case.0x10044bd0b.0]
test eax, eax
jne 0x100440335
cmp dword [0x1004a8ebc], eax
je 0x100440328
test dil, dil
je 0x100440328
mov rdx, r14
lea rcx, str.__s_____Waiting_for_CritSec__n
call fcn.10043bdc0
lea rcx, [0x1004a9c08]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1004a8ebc], 0
je 0x100440352
test dil, dil
je 0x100440352
mov rdx, r14
lea rcx, str.__s_____Enters_CritSec__n
call fcn.10043bdc0
cmp dword [0x1004a9c9c], 0
jle 0x10044039b
nop dword [rax + rax]
xor edx, edx
lea rcx, [0x1004a9c90]
call qword [sym.imp.SQLSVC.dll_SHRecMemLock]
test rax, rax
je 0x100440391
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x100440382
call fcn.10043b3b0
xor edx, edx
lea rcx, [0x1004a9c90]
call qword [sym.imp.SQLSVC.dll_SHRecMemDelete]
inc ebx
cmp ebx, dword [0x1004a9c9c]
jl 0x100440360
call fcn.1004342d0
movzx ebx, al
lea rcx, [0x1004a9c08]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x1004a8ebc], 0
je 0x1004403cc
test bl, bl
je 0x1004403cc
mov rdx, r14
lea rcx, str.__s_____Leaves_CritSec__n
call fcn.10043bdc0
test r15d, r15d
je 0x1004403e3
mov r9d, r15d
xor edx, edx
mov r8d, 0x12b
mov ecx, esi
call fcn.100432180
mov eax, r15d
mov rcx, qword [rbp + 0x1fa0]
xor rcx, rsp
call fcn.100469360
mov rbx, qword [rsp + 0x2100]
add rsp, 0x20b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbp - 0x68]
mov esi, 3
test rcx, rcx
je 0x10044028e
mov edx, esi
call qword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x10044028e