Function at 0x100419380
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9f8]
sub rsp, 0xaf8
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x9e0], rax
mov r14d, r9d
mov r15, r8
mov rdi, rcx
mov dword [rsp + 0x50], edx
mov rbx, qword [rbp + 0xa60]
movups xmm0, xmmword [str.ConnGetMSXCredential]
movups xmmword [rbp + 0x9b0], xmm0
movups xmm1, xmmword [0x1004757f8]
movups xmmword [rbp + 0x9c0], xmm1
movsd xmm0, qword [0x100475808]
movsd qword [rbp + 0x9d0], xmm0
movzx eax, word [0x100475810]
mov word [rbp + 0x9d8], ax
xor r13d, r13d
mov esi, r13d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r13w
lea r8d, [r13 + 0xc]
lea rdx, str.LoginTimeout
lea rcx, [rsp + 0x60]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.100409ee0
mov r9d, eax
lea r8, [rbp + 0x9b0]
mov r12d, 1
mov edx, r12d
mov rcx, rdi
call fcn.10040fcc0
test eax, eax
je 0x1004195d7
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x68], r13w
mov ecx, 4
mov qword [rsp + 0x58], rcx
mov word [rsp + 0x68], r12w
lea r9d, [r13 - 0x10]
mov r8d, r12d
mov edx, r12d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], r13w
mov qword [rsp + 0x28], r13
mov word [rsp + 0x20], cx
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.ODBC32.dll_SQLBindParameter]
lea rdx, str.SELECT_c.credential_identity_FROM_master.sys.credentials_c_WHERE_c.credential_id___
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, r12d
jne 0x100419532
add r14d, r14d
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9d, r14d
mov r8d, 0xfffffff8
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x100419524
mov esi, r12d
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
je 0x100419516
mov rcx, rdi
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x1004194e2
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x100419546
mov edx, 3
call qword [sym.imp.ODBC32.dll_SQLFreeStmt]
test esi, esi
je 0x1004195d3
xor edx, edx
mov r8d, 0xa14
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [rsp + 0x50]
mov dword [rbp + 0x9a4], eax
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.100419060
mov r8d, eax
test eax, eax
je 0x1004195da
mov edx, 0x80
lea rdi, [rbp + 0x1a0]
sub rdi, rbx
nop dword [rax + rax]
lea rcx, [rdx + 0x7fffff7e]
test rcx, rcx
je 0x1004195b2
movzx eax, word [rdi + rbx]
test ax, ax
je 0x1004195b2
mov word [rbx], ax
add rbx, 2
sub rdx, 1
jne 0x100419590
lea rax, [rbx - 2]
test rdx, rdx
cmovne rax, rbx
mov word [rax], r13w
lea rdi, [rbp - 0x70]
xor eax, eax
mov ecx, 0xa18
rep stosb byte [rdi], al
mov eax, r8d
jmp 0x1004195da
mov eax, esi
jmp 0x1004195da
mov eax, r13d
mov rcx, qword [rbp + 0x9e0]
xor rcx, rsp
call fcn.100469360
add rsp, 0xaf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret