Function at 0x10043d800
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4c90]
mov eax, 0x4d90
call fcn.10046b370
sub rsp, rax
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4de0], rbx
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x4c80], rax
mov qword [rsp + 0x68], rdx
mov rbx, rcx
mov qword [rsp + 0x58], rcx
xor edx, edx
mov r8d, 0x330
lea rcx, [rbp + 0x3d50]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x4080]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x90
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x2150
lea rcx, [rbp + 0x1c00]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x4480]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x3a0
lea rcx, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0xc08
lea rcx, [rbp + 0x3e0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0xc08
lea rcx, [rbp + 0xff0]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov r11d, eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x60], eax
lea rax, [rbp + 0x1c00]
mov qword [rbp - 0x40], rax
lea r15, [rbx + 0x114]
mov qword [rbp - 0x80], r15
test r15, r15
je 0x10043d919
mov rcx, r15
call fcn.10044c110
lea r14, [rbx + 0x21c]
test r14, r14
je 0x10043d92d
mov rcx, r14
call fcn.10044c110
lea r12, [rbx + 0x3b4]
test r12, r12
je 0x10043d941
mov rcx, r12
call fcn.10044c110
lea rax, [rbx + 0x3f4]
mov qword [rsp + 0x78], rax
test rax, rax
je 0x10043d95a
mov rcx, rax
call fcn.10044c110
mov rdi, 0xffffffffffffffff
mov r13d, 0x84
xor r9d, r9d
cmp r9w, word [r15]
je 0x10043db7b
mov rsi, r15
test r15, r15
je 0x10043db25
mov ebx, r9d
movzx eax, word [0x100472a8c]
cmp ax, word [0x100472a84]
jne 0x10043d9a7
movzx eax, word [0x100472a8e]
cmp ax, word [0x100472a86]
je 0x10043dafb
lea rdx, [0x100472a8c]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x10043dafb
mov ecx, 0x332
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x10043dafb
xor edx, edx
mov r8d, 0x330
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x100472a8c]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x10043daad
sub rax, rsi
sar rax, 1
cdqe
lea r15, [rax + rax]
mov r9, r15
mov r8, rsi
mov edx, 0x332
mov rcx, rbx
call fcn.10044c240
xor eax, eax
mov word [r15 + rbx], ax
mov rcx, rdi
nop dword [rax]
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x10043da30
lea rdx, [rbp + 0x3d50]
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x10043da44
add rax, 2
add rax, rcx
cmp rax, 0x198
jae 0x10043daa9
mov r8, rbx
mov edx, 0x330
lea rcx, [rbp + 0x3d50]
call fcn.10042b640
lea r8, [0x100472a84]
mov edx, 0x330
lea rcx, [rbp + 0x3d50]
call fcn.10042b640
add rsi, 2
add rsi, r15
lea rdx, [0x100472a8c]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x10043da00
mov r15, qword [rbp - 0x80]
cmp word [rsi], 0
je 0x10043db0f
mov rax, rdi
inc rax
cmp word [rsi + rax*2], 0
jne 0x10043dab6
lea rdx, [rbp + 0x3d50]
mov rcx, rdi
nop word [rax + rax]
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x10043dad0
add rax, rcx
cmp rax, 0x198
jae 0x10043db0f
mov r8, rsi
mov edx, 0x198
lea rcx, [rbp + 0x3d50]
call fcn.10040d600
jmp 0x10043db0f
mov r8, rsi
mov edx, 0x330
lea rcx, [rbp + 0x3d50]
call fcn.10040b320
test rbx, rbx
je 0x10043db1d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r9d, r9d
mov r11d, dword [rsp + 0x50]
mov r8, r13
mov rdx, r15
lea rcx, [rbp + 0x3d50]
sub rcx, r15
nop word [rax + rax]
lea rax, [r8 + 0x7fffff7a]
test rax, rax
je 0x10043db62
movzx eax, word [rcx + rdx]
test ax, ax
je 0x10043db62
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x10043db40
lea rcx, [rdx - 2]
test r8, r8
cmovne rcx, rdx
mov word [rcx], r9w
jne 0x10043db7b
mov eax, r11d
jmp 0x10043eda8
cmp r9w, word [r14]
je 0x10043dd8c
mov rsi, r14
test r14, r14
je 0x10043dd44
mov rbx, r9
movzx eax, word [0x100472a8c]
cmp ax, word [0x100472a84]
jne 0x10043dbb8
movzx eax, word [0x100472a8e]
cmp ax, word [0x100472a86]
je 0x10043dd1f
lea rdx, [0x100472a8c]
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x10043dd1f
mov ecx, 0x332
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x10043dd1f
xor edx, edx
mov r8d, 0x330
lea rcx, [rbp + 0x3d50]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x330
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x100472a8c]
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x10043dcd4
sub rax, r14
mov r8, r14
sar rax, 1
cdqe
lea r15, [rax + rax]
mov r9, r15
mov edx, 0x332
mov rcx, rbx
call fcn.10044c240
xor eax, eax
mov word [rbx + r15], ax
mov rcx, rdi
nop
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x10043dc50
lea rdx, [rbp + 0x3d50]
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x10043dc64
add rax, 2
add rax, rcx
cmp rax, 0x198
jae 0x10043dcd0
mov r8, rbx
mov edx, 0x330
lea rcx, [rbp + 0x3d50]
call fcn.10042b640
lea r8, [0x100472a84]
mov edx, 0x330
lea rcx, [rbp + 0x3d50]
call fcn.10042b640
add rsi, 2
add rsi, r15
lea rdx, [0x100472a8c]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x10043dcd0
sub rax, rsi
mov r8, rsi
jmp 0x10043dc2b
mov r15, qword [rbp - 0x80]
cmp word [rsi], 0
je 0x10043dd33
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x10043dce0
lea rdx, [rbp + 0x3d50]
mov rcx, rdi
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x10043dcf4
add rax, rcx
cmp rax, 0x198
jae 0x10043dd33
mov r8, rsi
mov edx, 0x198
lea rcx, [rbp + 0x3d50]
call fcn.10040d600
jmp 0x10043dd33
mov r8, r14
mov edx, 0x330
lea rcx, [rbp + 0x3d50]
call fcn.10040b320
test rbx, rbx
je 0x10043dd41
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r9d, r9d
mov ecx, 0xcc
lea rdx, [rbp + 0x3d50]
sub rdx, r14
lea rax, [rcx + 0x7fffff32]
test rax, rax
je 0x10043dd77
movzx eax, word [r14 + rdx]
test ax, ax
je 0x10043dd77
mov word [r14], ax
add r14, 2
sub rcx, 1
jne 0x10043dd53
lea rax, [r14 - 2]
test rcx, rcx
cmovne rax, r14
mov word [rax], r9w
je 0x10043e27b
mov r14d, 0x20
cmp r9w, word [r12]
je 0x10043dfac
mov rsi, r12
test r12, r12
je 0x10043df64
mov rbx, r9
movzx eax, word [0x100472a8c]
cmp ax, word [0x100472a84]
jne 0x10043ddd0
movzx eax, word [0x100472a8e]
cmp ax, word [0x100472a86]
je 0x10043df3f
lea rdx, [0x100472a8c]
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x10043df3f
mov ecx, 0x332
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x10043df3f
xor edx, edx
mov r8d, 0x330
lea rcx, [rbp + 0x3d50]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x330
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x100472a8c]
mov rcx, r12
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x10043def2
sub rax, r12
mov r8, r12
sar rax, 1
cdqe
lea r14, [rax + rax]
mov r9, r14
mov edx, 0x332
mov rcx, rbx
call fcn.10044c240
xor eax, eax
mov word [rbx + r14], ax
mov rcx, rdi
inc rcx
cmp word [rbx + rcx*2], 0
jne 0x10043de66
lea rdx, [rbp + 0x3d50]
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x10043de80
add rax, 2
add rax, rcx
cmp rax, 0x198
jae 0x10043deec
mov r8, rbx
mov edx, 0x330
lea rcx, [rbp + 0x3d50]
call fcn.10042b640
lea r8, [0x100472a84]
mov edx, 0x330
lea rcx, [rbp + 0x3d50]
call fcn.10042b640
add rsi, 2
add rsi, r14
lea rdx, [0x100472a8c]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x10043deec
sub rax, rsi
mov r8, rsi
jmp 0x10043de43
mov r14d, 0x20
cmp word [rsi], 0
je 0x10043df53
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x10043df00
lea rdx, [rbp + 0x3d50]
mov rcx, rdi
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x10043df14
add rax, rcx
cmp rax, 0x198
jae 0x10043df53
mov r8, rsi
mov edx, 0x198
lea rcx, [rbp + 0x3d50]
call fcn.10040d600
jmp 0x10043df53
mov r8, r12
mov edx, 0x330
lea rcx, [rbp + 0x3d50]
call fcn.10040b320
test rbx, rbx
je 0x10043df61
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r9d, r9d
mov rcx, r14
lea rdx, [rbp + 0x3d50]
sub rdx, r12
lea rax, [rcx + 0x7fffffde]
test rax, rax
je 0x10043df96
movzx eax, word [r12 + rdx]
test ax, ax
je 0x10043df96
mov word [r12], ax
add r12, 2
sub rcx, 1
jne 0x10043df71
lea rax, [r12 - 2]
test rcx, rcx
cmovne rax, r12
mov word [rax], r9w
je 0x10043e27b
mov rbx, qword [rsp + 0x78]
cmp r9w, word [rbx]
je 0x10043e1e7
mov rsi, rbx
test rbx, rbx
je 0x10043e199
mov rbx, r9
movzx eax, word [0x100472a8c]
cmp ax, word [0x100472a84]
jne 0x10043dfee
movzx eax, word [0x100472a8e]
cmp ax, word [0x100472a86]
je 0x10043e16f
lea rdx, [0x100472a8c]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x10043e16f
mov ecx, 0x332
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x10043e16f
xor edx, edx
mov r8d, 0x330
lea rcx, [rbp + 0x3d50]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x330
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x100472a8c]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x10043e126
sub rax, rsi
sar rax, 1
cdqe
lea r14, [rax + rax]
mov r9, r14
mov r8, rsi
mov edx, 0x332
mov rcx, rbx
call fcn.10044c240
xor r12d, r12d
mov word [rbx + r14], r12w
mov rcx, rdi
inc rcx
cmp word [rbx + rcx*2], r12w
jne 0x10043e085
lea rdx, [rbp + 0x3d50]
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rdx + rax*2], r12w
jne 0x10043e0a0
add rcx, 2
add rcx, rax
cmp rcx, 0x198
jae 0x10043e126
mov r8, rbx
mov edx, 0x330
lea rcx, [rbp + 0x3d50]
call fcn.10042b640
lea r8, [0x100472a84]
mov edx, 0x330
lea rcx, [rbp + 0x3d50]
call fcn.10042b640
add rsi, 2
add rsi, r14
lea rdx, [0x100472a8c]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x10043e126
sub rax, rsi
sar rax, 1
cdqe
lea r14, [rax + rax]
mov r9, r14
mov r8, rsi
mov edx, 0x332
mov rcx, rbx
call fcn.10044c240
jmp 0x10043e07d
cmp word [rsi], 0
je 0x10043e183
mov rax, rdi
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x10043e130
lea rdx, [rbp + 0x3d50]
mov rcx, rdi
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x10043e144
add rax, rcx
cmp rax, 0x198
jae 0x10043e183
mov r8, rsi
mov edx, 0x198
lea rcx, [rbp + 0x3d50]
call fcn.10040d600
jmp 0x10043e183
mov r8, rsi
mov edx, 0x330
lea rcx, [rbp + 0x3d50]
call fcn.10040b320
test rbx, rbx
je 0x10043e191
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r9d, r9d
mov rbx, qword [rsp + 0x78]
mov rcx, rbx
lea rdx, [rbp + 0x3d50]
sub rdx, rbx
nop word [rax + rax]
lea rax, [r13 + 0x7fffff7a]
test rax, rax
je 0x10043e1d2
movzx eax, word [rcx + rdx]
test ax, ax
je 0x10043e1d2
mov word [rcx], ax
add rcx, 2
sub r13, 1
jne 0x10043e1b0
lea rax, [rcx - 2]
test r13, r13
cmovne rax, rcx
mov word [rax], r9w
je 0x10043e27b
xor r9d, r9d
lea r8, str.msdb
lea rdx, str.xp_msx_enlist
lea rcx, [rbp + 0x3e0]
call fcn.10040f7b0
lea rax, [rbp - 0x78]
mov qword [rbp - 0x80], rax
xor esi, esi
mov qword [rbp - 0x68], rsi
mov eax, 7
mov qword [rbp - 0x60], rax
mov word [rbp - 0x78], si
lea r8d, [rsi + 0xc]
lea rdx, str.LoginTimeout
lea rcx, [rbp - 0x78]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rbp - 0x78]
call fcn.100409ee0
mov r9d, eax
xor r8d, r8d
lea edx, [rsi + 1]
lea rcx, [rbp + 0x3e0]
call fcn.10040fcc0
test eax, eax
jne 0x10043e284
mov r9d, 0x200
mov r8, qword [rsp + 0x68]
mov edx, 0x119
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [rsp + 0x50]
jmp 0x10043eda8
mov r12, qword [rsp + 0x58]
lea r8, [r12 + 0xc]
mov r13, qword [rsp + 0x68]
mov qword [rsp + 0x20], r13
lea rdx, [rbp + 0xff0]
lea rcx, [rbp + 0x3e0]
call fcn.10043ede0
mov r14d, eax
test eax, eax
je 0x10043ed65
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.SQLSVC.dll_QSQLSetUserData]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0xff0]
call qword [sym.imp.SQLSVC.dll_QSQLSetUserData]
mov ecx, dword [r12]
mov r10d, 2
test ecx, ecx
je 0x10043e2f4
cmp ecx, r10d
je 0x10043e30c
mov esi, dword [rsp + 0x50]
jmp 0x10043ea22
mov qword [rsp + 0x20], r15
mov r9, rbx
xor edx, edx
mov r8d, 0x138
mov ecx, r10d
call fcn.100432180
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov r9, r13
lea r8, [rbp + 0x40]
mov rdx, r12
lea rcx, [rbp + 0xff0]
call fcn.10043f6d0
test eax, eax
je 0x10043ed65
cmp dword [rsp + 0x78], 0
jne 0x10043e386
mov r9d, 0x200
lea r8, [rbp + 0x4080]
mov edx, 0x12c
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
lea r9, str.MSXOperator
lea r8, [rbp + 0x4080]
mov edx, 0x200
mov rcx, r13
call fcn.10040b460
xor eax, eax
mov word [r13 + 0x3fe], ax
mov esi, eax
jmp 0x10043ed69
lea rax, [rbp + 0x3e0]
mov qword [rsp + 0x68], rax
mov word [rsp + 0x70], si
mov eax, 1
mov word [rsp + 0x70], ax
lea r9d, [rax - 9]
mov r8d, eax
mov edx, eax
lea rax, [0x100499038]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0x16
lea rsi, str.MSXOperator
mov qword [rsp + 0x38], rsi
xor eax, eax
mov word [rsp + 0x30], ax
mov qword [rsp + 0x28], 0x80
mov eax, 0xfffffff7
mov word [rsp + 0x20], ax
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov edx, 2
mov word [rsp + 0x70], dx
lea r9d, [rdx - 0xa]
lea r8d, [rdx - 1]
lea rax, [0x100499038]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0x16
mov qword [rsp + 0x38], rsi
xor eax, eax
mov word [rsp + 0x30], ax
mov qword [rsp + 0x28], 0x80
mov eax, 0xfffffff7
mov word [rsp + 0x20], ax
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov eax, 3
mov word [rsp + 0x70], ax
lea r9d, [rax - 0xb]
lea r8d, [rax - 2]
mov edx, eax
lea rax, [0x100499038]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0x16
mov qword [rsp + 0x38], rsi
xor eax, eax
mov word [rsp + 0x30], ax
mov qword [rsp + 0x28], 0x80
mov eax, 0xfffffff7
mov word [rsp + 0x20], ax
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov r10d, 4
mov qword [rsp + 0x58], r10
mov word [rsp + 0x70], r10w
lea r9d, [r10 - 0x14]
lea r8d, [r10 - 3]
mov edx, r10d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x14c]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], rcx
mov word [rsp + 0x20], r10w
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
lea rcx, [rbp + 0x154]
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x10043e500
add eax, eax
mov edx, 5
mov word [rsp + 0x70], 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
lea rax, [rbp + 0x154]
mov qword [rsp + 0x38], rax
xor eax, eax
mov word [rsp + 0x30], ax
mov qword [rsp + 0x28], 0x64
mov eax, 0xfffffff7
mov word [rsp + 0x20], ax
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
lea rcx, [rbp + 0x224]
mov rax, rdi
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x10043e570
add eax, eax
mov edx, 6
mov word [rsp + 0x70], dx
movsxd rcx, eax
lea r9d, [rdx - 0xe]
lea r8d, [rdx - 5]
lea rax, [0x100499038]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x224]
mov qword [rsp + 0x38], rax
xor eax, eax
mov word [rsp + 0x30], ax
mov qword [rsp + 0x28], 0x64
mov eax, 0xfffffff7
mov word [rsp + 0x20], ax
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov r10d, 4
mov qword [rsp + 0x58], r10
mov eax, 7
mov word [rsp + 0x70], ax
lea r9d, [r10 - 0x14]
lea r8d, [r10 - 3]
mov edx, eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x3c4]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], rcx
mov word [rsp + 0x20], r10w
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov r10d, 4
mov qword [rsp + 0x58], r10
mov edx, 8
mov word [rsp + 0x70], dx
lea r9d, [r10 - 0x14]
lea r8d, [r10 - 3]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x3c8]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], rcx
mov word [rsp + 0x20], r10w
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov r10d, 4
mov qword [rsp + 0x58], r10
mov edx, 9
mov word [rsp + 0x70], dx
lea r9d, [r10 - 0x14]
lea r8d, [r10 - 3]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x3cc]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], rcx
mov word [rsp + 0x20], r10w
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov r10d, 4
mov qword [rsp + 0x58], r10
mov edx, 0xa
mov word [rsp + 0x70], dx
lea r9d, [r10 - 0x14]
lea r8d, [r10 - 3]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], rcx
mov word [rsp + 0x20], r10w
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov r10d, 4
mov qword [rsp + 0x58], r10
mov edx, VariantTimeToDosDateTime
mov word [rsp + 0x70], dx
lea r9d, [r10 - 0x14]
lea r8d, [r10 - 3]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x3d4]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], rcx
mov word [rsp + 0x20], r10w
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov r10d, 4
mov qword [rsp + 0x58], r10
mov eax, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov word [rsp + 0x70], ax
lea r9d, [r10 - 0x14]
lea r8d, [r10 - 3]
mov edx, eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x3d8]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], rcx
mov word [rsp + 0x20], r10w
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov r10d, 4
mov qword [rsp + 0x58], r10
mov edx, SQLFreeStmt
mov word [rsp + 0x70], dx
lea r9d, [r10 - 0x14]
lea r8d, [r10 - 3]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x3dc]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], rcx
mov word [rsp + 0x20], r10w
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
lea rcx, [rbp + 0x2f4]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x10043e844
add eax, eax
mov edx, SQLFreeStmt
mov word [rsp + 0x70], dx
movsxd rcx, eax
lea r9d, [rdx - 0x16]
lea r8d, [rdx - 0xd]
lea rax, [0x100499038]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x2f4]
mov qword [rsp + 0x38], rax
xor eax, eax
mov word [rsp + 0x30], ax
mov qword [rsp + 0x28], 0x64
mov eax, 0xfffffff7
mov word [rsp + 0x20], ax
mov rcx, qword [rbp + 0x3f8]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
lea rdx, str.IF__NOT_EXISTS__SELECT__FROM_msdb.dbo.sysoperators_WHERE__name_______BEGIN_EXECUTE_msdb.dbo.sp_add_operator__name____END_EXECUTE_msdb.dbo.sp_update_operator__name______enabled______email_address______pager_address______weekday_pager_start_time______weekday_pager_end_time______saturday_pager_start_time______saturday_pager_end_time______sunday_pager_start_time______sunday_pager_end_time______pager_days______netsend_address___
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.SQLSVC.dll_QSQLPurgeExec]
test eax, eax
je 0x10043e8cb
mov esi, 1
jmp 0x10043ea05
xor eax, eax
mov word [rbp + 0x4480], ax
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.SQLSVC.dll_QSQLGetUserData]
mov rbx, rax
test rax, rax
je 0x10043e984
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x10043e984
mov eax, 0x20
nop
movzx edx, word [rcx]
test dx, dx
je 0x10043e91d
cmp dx, 0xa
je 0x10043e914
cmp dx, 0xd
jne 0x10043e917
mov word [rcx], ax
add rcx, 2
jne 0x10043e900
mov r8, qword [rbx + 8]
mov edx, 0x400
lea rcx, [rbp + 0x4480]
lea rax, [rbp + 0x4480]
sub r8, rax
nop word [rax + rax]
lea rax, [rdx + 0x7ffffbfe]
test rax, rax
je 0x10043e963
movzx eax, word [rcx + r8]
test ax, ax
je 0x10043e963
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x10043e940
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
xor ecx, ecx
mov word [rax], cx
mov rcx, qword [rbx + 8]
call fcn.10043b3b0
xor eax, eax
mov qword [rbx + 8], rax
jmp 0x10043e986
xor eax, eax
mov ebx, dword [r12]
mov word [rbp + 0x4080], ax
mov r9d, 0x200
lea r8, [rbp + 0x4080]
lea edx, [r9 - 0x5f]
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
lea rcx, str._Unknown_
lea rax, [rbp + 0x4480]
xor edx, edx
cmp dx, word [rbp + 0x4480]
cmove rax, rcx
mov qword [rsp + 0x20], rax
mov r9, rsi
lea r8, [rbp + 0x4080]
mov edx, 0x200
mov rcx, r13
call fcn.10040b460
xor eax, eax
mov word [r13 + 0x3fe], ax
test ebx, ebx
sete al
mov dword [rsp + 0x60], eax
mov esi, dword [rsp + 0x50]
lea rbx, [r12 + 0x3f4]
mov rcx, qword [rbp + 0x3f8]
test rcx, rcx
je 0x10043ea1c
mov edx, 3
call qword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov r10d, 2
cmp dword [r12], 1
je 0x10043ea37
mov ebx, dword [rsp + 0x60]
test ebx, ebx
je 0x10043ecfc
jmp 0x10043ea5a
cmp dword [rsp + 0x60], 0
jne 0x10043ea56
mov qword [rsp + 0x20], r15
mov r9, rbx
xor edx, edx
mov r8d, 0x139
mov ecx, r10d
call fcn.100432180
mov ebx, dword [rsp + 0x60]
lea rax, [rbp + 0xff0]
mov qword [rsp + 0x68], rax
xor ecx, ecx
mov word [rsp + 0x70], cx
mov eax, dword [r12]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x50], 0xf0007d0
mov r10d, 4
mov qword [rsp + 0x58], r10
mov eax, 1
mov word [rsp + 0x70], ax
lea r9d, [rcx - 0x10]
mov r8d, eax
mov edx, eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], cx
mov qword [rsp + 0x28], rcx
mov word [rsp + 0x20], r10w
mov rcx, qword [rbp + 0x1008]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
lea rdi, [rdi + 1]
cmp word [r15 + rdi*2], 0
jne 0x10043ead1
lea eax, [rdi + rdi]
mov edx, 2
mov word [rsp + 0x70], dx
movsxd rcx, eax
lea r9d, [rdx - 0xa]
lea r8d, [rdx - 1]
lea rax, [0x100499038]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r15
xor edi, edi
mov word [rsp + 0x30], di
mov qword [rsp + 0x28], 0x80
mov eax, 0xfffffff7
mov word [rsp + 0x20], ax
mov rcx, qword [rbp + 0x1008]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
mov ecx, 4
mov qword [rsp + 0x58], rcx
mov edx, 3
mov word [rsp + 0x70], dx
lea r9d, [rdi - 0x10]
lea r8d, [rdi + 1]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], di
mov qword [rsp + 0x28], rdi
mov word [rsp + 0x20], cx
mov rcx, qword [rbp + 0x1008]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
lea rdx, str.DECLARE__Act_int__SName_sysname__TSX_Ver_int_SELECT__Act____SName____TSX_Ver__________________________________________________IF_____MICROSOFTVERSION___0x1000000___0xff____9__________________________________________________EXECUTE_msdb.dbo.sp_enlist_tsx__Action_Act___ServerName_SName___Locationnull___TimeZoneAdjustmentnull___LocalTimenull___NTUserNamenull___PollIntervalnull_________________________________________________ELSE_________________________________________________EXECUTE_msdb.dbo.sp_enlist_tsx__Action_Act___ServerName_SName___Locationnull___TimeZoneAdjustmentnull___LocalTimenull___NTUserNamenull___PollIntervalnull___TSX_Version_TSX_Ver
lea rcx, [rbp + 0xff0]
call qword [sym.imp.SQLSVC.dll_QSQLPurgeExec]
test eax, eax
je 0x10043ebe2
lea rax, [rbp - 0x78]
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], di
lea r8d, [rdi + 0x15]
lea rdx, str.RegularMSXConnections
lea rcx, [rbp - 0x78]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rbp - 0x78]
call fcn.100446230
movzx esi, al
jmp 0x10043ece5
test ebx, ebx
jne 0x10043ece5
mov word [rbp + 0x4480], di
lea rcx, [rbp + 0xff0]
call qword [sym.imp.SQLSVC.dll_QSQLGetUserData]
mov rbx, rax
test rax, rax
je 0x10043ec9d
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x10043ec9d
mov edi, 0x20
nop dword [rax]
movzx edx, word [rcx]
test dx, dx
je 0x10043ec3d
cmp dx, 0xa
je 0x10043ec34
cmp dx, 0xd
jne 0x10043ec37
mov word [rcx], di
add rcx, 2
jne 0x10043ec20
mov rdx, qword [rax + 8]
lea rcx, [rbp + 0x4480]
lea rax, [rbp + 0x4480]
sub rdx, rax
xor edi, edi
mov r8d, 0x400
nop word [rax + rax]
lea rax, [r8 + 0x7ffffbfe]
test rax, rax
je 0x10043ec82
movzx eax, word [rcx + rdx]
test ax, ax
je 0x10043ec82
mov word [rcx], ax
add rcx, 2
sub r8, 1
jne 0x10043ec60
lea rax, [rcx - 2]
test r8, r8
cmovne rax, rcx
mov word [rax], di
mov rcx, qword [rbx + 8]
call fcn.10043b3b0
mov qword [rbx + 8], rdi
mov word [rbp + 0x4080], di
mov r9d, 0x200
lea r8, [rbp + 0x4080]
lea edx, [r9 - 0x5e]
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
lea r9, [rbp + 0x4480]
lea r8, [rbp + 0x4080]
mov edx, 0x200
mov rcx, r13
call fcn.10040b460
mov word [r13 + 0x3fe], di
mov rcx, qword [rbp + 0x1008]
test rcx, rcx
je 0x10043ecfc
mov edx, 3
call qword [sym.imp.ODBC32.dll_SQLFreeStmt]
test esi, esi
je 0x10043ed69
mov eax, dword [r12]
test eax, eax
jne 0x10043ed0f
mov edx, 0x13b
jmp 0x10043ed2d
cmp eax, 1
jne 0x10043ed1b
mov edx, 0x13c
jmp 0x10043ed2d
mov edx, 0x17
mov r8d, 0x13d
cmp eax, 2
cmove edx, r8d
mov r9d, 0x200
lea r8, [rbp + 0x4080]
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x4080]
xor edx, edx
lea ecx, [rdx + 4]
mov r8d, 0x13a
call fcn.100432180
jmp 0x10043ed69
mov esi, dword [rsp + 0x50]
xor edx, edx
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.SQLSVC.dll_QSQLSetUserData]
lea rcx, [rbp + 0x3e0]
call qword [sym.imp.SQLSVC.dll_QSQLLogoff]
test r14d, r14d
je 0x10043eda6
xor edx, edx
lea rcx, [rbp + 0xff0]
call qword [sym.imp.SQLSVC.dll_QSQLSetUserData]
lea rcx, [rbp + 0xff0]
call qword [sym.imp.SQLSVC.dll_QSQLLogoff]
mov eax, esi
mov rcx, qword [rbp + 0x4c80]
xor rcx, rsp
call fcn.100469360
mov rbx, qword [rsp + 0x4de0]
add rsp, 0x4d90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret