Function at 0x1401b2c50
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rsp + 0x110], rbx
mov r15, rcx
lea rcx, [rbp - 0x59]
call fcn.14007ba30
nop
xor r12d, r12d
mov qword [rbp + 0x6f], r12
lea r13, vtable.CSABString.0
mov qword [rbp - 0x71], r13
mov dword [rbp - 0x61], r12d
lea ecx, [r12 + 0x10]
call fcn.140247068
mov r14, rax
mov qword [rbp - 0x69], rax
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov dword [rbp - 0x5d], 1
lea rcx, [rbp - 0x59]
call fcn.1400e0560
mov ebx, r12d
test eax, eax
je 0x1401b2e29
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1401b2cf8
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rbp + 0x6f]
lea rdx, str.SELECT__FROM_sas_servers_WHERE_servertypeDEFINITION_AND_activeyes
call qword [rax]
mov ebx, eax
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x1401b2e24
mov esi, r12d
mov qword [rbp + 0x7f], r12
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx]
lea r9, [rbp + 0x7f]
lea r8, [0x140294f68]
xor edx, edx
call qword [rax + 0x40]
test eax, eax
je 0x1401b2dfa
mov qword [rbp + 0x77], r12
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx]
lea r9, [rbp + 0x77]
lea r8, str.serverip
mov edx, esi
call qword [rax + 0x40]
mov rbx, qword [rbp + 0x77]
test rbx, rbx
je 0x1401b2dd9
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x1401b2d60
test rax, rax
je 0x1401b2dd9
mov qword [rsp + 0x20], r13
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x1401b2d80
mov dword [rbp - 0x79], eax
inc eax
mov edi, eax
mov ecx, eax
call fcn.140247068
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1401b2daf
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.1402496a0
mov dword [rbp - 0x75], 1
lea rdx, [rsp + 0x20]
mov rcx, r15
call fcn.1400b2e80
nop
cmp dword [rbp - 0x75], 1
jne 0x1401b2dd9
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1401b2dd9
call fcn.140247060
inc esi
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx]
lea r9, [rbp + 0x7f]
lea r8, [0x140294f68]
mov edx, esi
call qword [rax + 0x40]
test eax, eax
jne 0x1401b2d30
mov rbx, qword [rbp + 0x6f]
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1401b2e1a
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 1
test r14, r14
je 0x1401b2e37
mov rcx, r14
call fcn.140247060
nop
lea rax, vtable.CSABSQL.0
mov qword [rbp - 0x59], rax
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1401b2e65
mov r8, qword [rcx]
mov edx, 1
call qword [r8 + 0x40]
mov qword [rbp - 0x29], r12
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rax, vtable.CSABByteString.0
mov qword [rbp - 0x51], rax
mov edx, 1
mov rcx, qword [rbp - 0x49]
call fcn.140247060
mov eax, ebx
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret