Function at 0x1022f70
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x218
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x200], rax
lea rax, [rsp + 0x78]
lea rcx, [0x01004b38]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x26
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x30], 0
cmp qword [rsp + 0x230], 0
jne 0x1022fcf
xor eax, eax
jmp 0x1023442
mov r8d, 3
mov edx, 0x148
lea rcx, [rsp + 0x38]
call qword [sym.imp.SQLSVC.dll_SHRecMemInit]
lea r8, [rsp + 0x78]
mov edx, dword [rsp + 0x238]
mov rcx, qword [rsp + 0x230]
call fcn.01020940
test eax, eax
je 0x102340c
lea rdx, [0x01004860]
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x102340c
mov dword [rsp + 0x68], 1
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 1
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x20], rax
mov r9d, reloc.ODBC32.dll_SQLFreeStmt
mov r8d, 0xfffffffe
mov edx, 2
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc4]
mov qword [rsp + 0x20], rax
mov r9d, 0x108
mov r8d, 0xfffffff8
mov edx, 3
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1cc]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 4
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 5
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1d4]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 6
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 7
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1dc]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 8
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 9
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1e4]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, 0xa
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1e8]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, VariantTimeToDosDateTime
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1ec]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, SQLFreeStmt
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1f4]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, 0xfffffff0
mov edx, SQLFreeStmt
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLBind]
mov r8d, 0x148
xor edx, edx
lea rcx, [rsp + 0xb0]
call sub.MSVCR80.dll_memset
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLNextRow]
cmp eax, 0xffffffff
jne 0x10233ca
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, [rsp + 0x38]
call qword [sym.imp.SQLSVC.dll_SHRecMemBSInsert]
cmp dword [rsp + 0x1cc], 0
jne 0x10233b3
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov r8d, 0x148
xor edx, edx
lea rcx, [rsp + 0xb0]
call sub.MSVCR80.dll_memset
jmp 0x102335f
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x102302c
cmp dword [rsp + 0x44], 0
je 0x102340c
lea rcx, [0x01065d98]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
mov r8d, gethostbyname
lea rdx, [rsp + 0x38]
lea rcx, [0x01065d98]
call sub.MSVCR80.dll_memcpy
cmp dword [0x010679c0], 0
je 0x102343e
cmp dword [rsp + 0x238], 0
je 0x102343e
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x44]
mov r8d, 0xa9
xor edx, edx
mov ecx, 3
call fcn.01033fa0
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x218
pop rdi
pop rsi
ret