Function at 0x1017290
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7dc
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0xa
mov esi, 0x1002bbc
lea edi, [ebp - 0x7d8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x7ac], 0
mov ax, word [0x10015d4]
mov word [ebp - 0x408], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x406]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x10172ff
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xbf8]
and eax, 1
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp dword [ebp + 0x18], 0
je 0x1017316
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xbf8]
and eax, 2
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
cmp dword [ebp + 0x1c], 0
je 0x101732d
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xbf8]
and eax, 4
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
lea edx, [ebp - 0x7d8]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0101a630
add esp, 0xc
test eax, eax
je 0x10175ff
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 0
jne 0x1017366
mov edx, dword [ebp + 0x18]
cmp dword [edx], 0
jne 0x1017366
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
je 0x10175f5
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
push 0x1002898
push 0x200
lea eax, [ebp - 0x408]
push eax
call fcn.01011d00
add esp, 0x10
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLExecDirect]
add esp, 8
cmp eax, 1
jne 0x10175db
lea eax, [ebp - 0x7dc]
push eax
lea ecx, [ebp - 0x7a8]
push ecx
push 4
push 0xfffffffffffffff0
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x7dc]
push eax
lea ecx, [ebp - 0x7a4]
push ecx
push 0x108
push 0xfffffffffffffff8
push 2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x7dc]
push eax
lea ecx, [ebp - 0x698]
push ecx
push 4
push 0xfffffffffffffff0
push 3
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x7dc]
push eax
lea ecx, [ebp - 0x694]
push ecx
push 0xd0
push 0xfffffffffffffff8
push 4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x7dc]
push eax
lea ecx, [ebp - 0x5c4]
push ecx
push 0xd0
push 0xfffffffffffffff8
push 5
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x7dc]
push eax
lea ecx, [ebp - 0x4f4]
push ecx
push 0xd0
push 0xfffffffffffffff8
push 6
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x7dc]
push eax
lea ecx, [ebp - 0x424]
push ecx
push 4
push 0xfffffffffffffff0
push 7
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x7dc]
push eax
lea ecx, [ebp - 0x420]
push ecx
push 4
push 0xfffffffffffffff0
push 8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x7dc]
push eax
lea ecx, [ebp - 0x41c]
push ecx
push 4
push 0xfffffffffffffff0
push 9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x7dc]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 4
push 0xfffffffffffffff0
push 0xa
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x7dc]
push eax
lea ecx, [ebp - 0x414]
push ecx
push 4
push 0xfffffffffffffff0
push 0xb
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x7dc]
push eax
lea ecx, [ebp - 0x410]
push ecx
push 4
push 0xfffffffffffffff0
push 0xc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
lea eax, [ebp - 0x7dc]
push eax
lea ecx, [ebp - 0x40c]
push ecx
push 1
push 0xfffffffffffffff0
push 0xd
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLBind]
add esp, 0x18
push 0x3a0
push 0
lea eax, [ebp - 0x7a8]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SQLSVC90.dll_QSQLNextRow]
add esp, 4
cmp eax, 0xffffffff
jne 0x10175b9
mov dword [ebp - 0x69c], 1
lea edx, [ebp - 0x7a8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SQLSVC90.dll_SHRecMemAdd]
add esp, 8
push 0x3a0
push 0
lea ecx, [ebp - 0x7a8]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
jmp 0x1017571
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SQLSVC90.dll_QSQLResults]
add esp, 4
cmp eax, 1
je 0x10173a2
mov dword [ebp - 0x7ac], 1
jmp 0x10175f3
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push 0xd4
push 0
push 1
call fcn.01028fb0
add esp, 0x10
jmp 0x10175ff
mov dword [ebp - 0x7ac], 1
mov eax, dword [ebp - 0x7ac]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret