Function at 0x101c590
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push esi
push edi
mov ecx, 9
mov esi, 0x1004330
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x101c5d3
xor eax, eax
jmp 0x101c884
push 3
push 0x148
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SQLSVC90.dll_SHRecMemInit]
add esp, 0xc
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0101a630
add esp, 0xc
test eax, eax
je 0x101c859
push 0x1004058
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLExecDirect]
add esp, 8
cmp eax, 1
jne 0x101c859
mov dword [ebp - 0x28], 1
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x1a0]
push eax
push 4
push 0xfffffffffffffff0
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x19c]
push eax
push 0x10
push 0xfffffffffffffffe
push 2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x18c]
push eax
push 0x108
push 0xfffffffffffffff8
push 3
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x84]
push eax
push 4
push 0xfffffffffffffff0
push 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x80]
push eax
push 4
push 0xfffffffffffffff0
push 5
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x7c]
push eax
push 4
push 0xfffffffffffffff0
push 6
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x78]
push eax
push 4
push 0xfffffffffffffff0
push 7
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x74]
push eax
push 4
push 0xfffffffffffffff0
push 8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x70]
push eax
push 4
push 0xfffffffffffffff0
push 9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x6c]
push eax
push 4
push 0xfffffffffffffff0
push 0xa
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x68]
push eax
push 4
push 0xfffffffffffffff0
push 0xb
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x64]
push eax
push 4
push 0xfffffffffffffff0
push 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x60]
push eax
push 4
push 0xfffffffffffffff0
push 0xd
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x5c]
push eax
push 4
push 0xfffffffffffffff0
push 0xe
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
push 0x148
push 0
lea edx, [ebp - 0x1a0]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SQLSVC90.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x101c81c
push 0
lea ecx, [ebp - 0x1a0]
push ecx
push 0
push 0
push 1
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.SQLSVC90.dll_SHRecMemBSInsert]
add esp, 0x18
cmp dword [ebp - 0x84], 0
jne 0x101c804
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
push 0x148
push 0
lea ecx, [ebp - 0x1a0]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
jmp 0x101c7c4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x101c625
cmp dword [ebp - 0x1c], 0
je 0x101c859
push 0x104ca0c
call dword [sym.imp.SQLSVC90.dll_SHRecMemFree]
add esp, 4
push 0x20
lea eax, [ebp - 0x24]
push eax
push 0x104ca0c
call sub.MSVCR80.dll_memcpy
add esp, 0xc
cmp dword [0x104e7a8], 0
je 0x101c881
cmp dword [ebp + 0xc], 0
je 0x101c881
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0xa9
push 0
push 3
call fcn.01028fb0
add esp, 0x14
mov eax, dword [ebp - 0x28]
pop edi
pop esi
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret