Function at 0x1023950
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 [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x200], rax
lea rax, [rsp + 0x78]
lea rcx, [0x01004c28]
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 0x10239af
xor eax, eax
jmp 0x1023e22
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.01020c30
test eax, eax
je 0x1023dec
lea rdx, [0x01004950]
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLExecDirect]
cmp eax, 1
jne 0x1023dec
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 0x1023daa
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 0x1023d93
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 0x1023d3f
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.SQLSVC.dll_QSQLResults]
cmp eax, 1
je 0x1023a0c
cmp dword [rsp + 0x44], 0
je 0x1023dec
lea rcx, [0x01066d98]
call qword [sym.imp.SQLSVC.dll_SHRecMemFree]
mov r8d, gethostbyname
lea rdx, [rsp + 0x38]
lea rcx, [0x01066d98]
call sub.MSVCR80.dll_memcpy
cmp dword [0x010689c0], 0
je 0x1023e1e
cmp dword [rsp + 0x238], 0
je 0x1023e1e
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.01034b80
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x218
pop rdi
pop rsi
ret