Function at 0x100069b0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x17c
push ebx
push ebp
mov ebp, dword [esp + 0x190]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
je 0x10006c9f
mov edi, dword [esp + 0x194]
push edi
call sub.olsql40.dll_AllocEnvConn
mov esi, eax
add esp, 4
cmp si, bx
jl 0x10006be0
lea eax, [esp + 0x14]
lea ebx, [edi + 4]
push eax
push ebx
call sub.olsql40.dll_sqlAllocStmt
mov esi, eax
add esp, 8
test si, si
jl 0x10006be0
mov edx, dword [edi]
lea ecx, [esp + 0x24]
push ecx
push 0x1000
push 1
push edx
call sub.olobj40.dll_hmAllocate
mov esi, eax
add esp, 0x10
test si, si
jl 0x10006be0
lea eax, [esp + 0x6c]
mov edi, ebp
push eax
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], esi
push ecx
push ebp
call fcn.10001c80
lea ecx, [esp + 0x58]
lea edx, [ebp + 0x3e]
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.10001c80
push str.SYSTEM
lea edx, [esp + 0xa8]
push str.SELECT_STATUS_FROM__s.SNAPSHOTS_WHERE_OWNER__
push edx
mov dword [esp + 0x4c], 0
mov byte [esp + 0x58], 0
mov dword [esp + 0x5c], 0x1000
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], esi
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0
push 0
lea eax, [esp + 0x78]
push 0x1000a398
push eax
lea edi, [esp + 0x80]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0xa0]
push ecx
lea ecx, [esp + 0xa4]
push str._AND_NAME__
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0xcc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x68]
push ecx
push edx
push eax
call sub.olsql40.dll_ConcateStr
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x60]
add esp, 0x4c
push 0
push esi
push ecx
push 0
push 0
push 0
push edx
call sub.olsql40.dll_sqlPrepStmt
mov esi, eax
add esp, 0x1c
test si, si
jl 0x10006bd9
lea eax, [esp + 0x10]
push eax
push ebx
call sub.olsql40.dll_sqlAllocBind
mov esi, eax
add esp, 8
test si, si
jl 0x10006bd9
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
push 2
push ebx
call sub.olsql40.dll_sqlAllocCursor
mov esi, eax
add esp, 0x10
test si, si
jl 0x10006bd9
lea eax, [ebp + 0x156]
lea edx, [esp + 0x3c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
push 0
push eax
mov dword [esp + 0x4c], 8
mov dword [esp + 0x48], ecx
mov word [esp + 0x54], 1
call sub.olsql40.dll_sqlBindVar
mov esi, eax
add esp, 0xc
test si, si
jl 0x10006bd9
mov ecx, dword [esp + 0x18]
push 0
push 0
push ecx
call sub.olsql40.dll_sqlOpenCursor
mov esi, eax
add esp, 0xc
test si, si
jl 0x10006bd9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push 0
push 0
push edx
push eax
call sub.olsql40.dll_sqlFetch
mov esi, eax
add esp, 0x10
cmp si, 0x13ed
je 0x10006bd9
test si, si
jl 0x10006bd9
mov ecx, dword [esp + 0x20]
mov byte [ecx + ebp + 0x156], 0
mov edi, dword [esp + 0x194]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10006c0c
push eax
call sub.olsql40.dll_sqlCloseCursor
add esp, 4
test si, si
jne 0x10006bf8
mov esi, eax
lea edx, [esp + 0x18]
push edx
call sub.olsql40.dll_sqlFreeCursor
add esp, 4
test si, si
jne 0x10006c0c
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10006c28
lea eax, [esp + 0x10]
push eax
call sub.olsql40.dll_sqlFreeBind
add esp, 4
test si, si
jne 0x10006c28
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10006c44
lea ecx, [esp + 0x14]
push ecx
call sub.olsql40.dll_sqlFreeStmt
add esp, 4
test si, si
jne 0x10006c44
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10006c61
mov edx, dword [edi]
push eax
push 1
push edx
call sub.olobj40.dll_hmFree
add esp, 0xc
test si, si
jne 0x10006c66
mov esi, eax
test si, si
je 0x10006c9f
cmp si, 0x13ed
jne 0x10006c7d
pop edi
pop esi
pop ebp
mov eax, 0x57b
pop ebx
add esp, 0x17c
ret
push str.Check_ooterr.h
push str.CheckRefresh
push esi
push edi
call sub.olsql40.dll_ErrorInfoSet
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x17c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x17c
ret