Function at 0x1026cc0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x40]
lea rcx, [0x01005570]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0xb8], 0
je 0x1026d28
cmp qword [rsp + 0xc0], 0
jne 0x1026d2f
xor eax, eax
jmp 0x102712b
mov r8d, 0x3a0
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call sub.MSVCR80.dll_memset
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0xb0]
call fcn.01020c30
test eax, eax
je 0x102710d
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax + 0x18]
lea rcx, [rsp + 0x68]
call fcn.0101fbe0
nop
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x68]
call fcn.0102b6e0
lea rdx, [0x01005320]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x1027101
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 1
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rax, qword [rsp + 0xc0]
add rax, 4
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, 0x108
mov r8d, 0xfffffff8
mov edx, 2
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rax, qword [rsp + 0xc0]
add rax, 0x10c
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 3
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rax, qword [rsp + 0xc0]
add rax, 0x114
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, 0xd0
mov r8d, 0xfffffff8
mov edx, 4
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rax, qword [rsp + 0xc0]
add rax, 0x1e4
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, 0xd0
mov r8d, 0xfffffff8
mov edx, 5
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rax, qword [rsp + 0xc0]
add rax, 0x2b4
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, 0xd0
mov r8d, 0xfffffff8
mov edx, 6
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rax, qword [rsp + 0xc0]
add rax, 0x384
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 7
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rax, qword [rsp + 0xc0]
add rax, 0x388
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 8
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rax, qword [rsp + 0xc0]
add rax, 0x38c
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 9
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rax, qword [rsp + 0xc0]
add rax, 0x390
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 0xa
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rax, qword [rsp + 0xc0]
add rax, 0x394
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, VariantTimeToDosDateTime
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rax, qword [rsp + 0xc0]
add rax, 0x398
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov rax, qword [rsp + 0xc0]
add rax, 0x39c
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 0xfffffff0
mov edx, SQLFreeStmt
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov r8d, 0x3a0
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call sub.MSVCR80.dll_memset
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x10270ea
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax + 0x10c]
mov dword [rsp + 0x30], eax
jmp 0x10270c3
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x1026daa
lea rcx, [rsp + 0x68]
call fcn.0101fc10
jmp 0x1027127
mov r9d, dword [rsp + 0xb8]
mov r8d, 0xfc
xor edx, edx
mov ecx, 1
call fcn.01034b80
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x98
pop rdi
pop rsi
ret