Function at 0x101efa40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
xor edi, edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
cmp dword [ebp + 0x14], edi
jne 0x101efb11
xor ebx, ebx
cmp dword [esi + 0x24], ebx
lea edi, [esi + 0x24]
jne 0x101efac6
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x34]
push ecx
push edx
push eax
push str.SELECT__s_FROM__s_T_WHERE_T._Q_
call sym.SQLite.Interop.dll_sqlite3_mprintf
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x101efa8d
lea ebx, [eax + 7]
jmp 0x101efac3
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [ebp - 8]
inc dword [eax + 0x40]
mov eax, dword [edx]
push 0
push edi
push 0
push 0x81
push 0xffffffffffffffff
push esi
push eax
call fcn.101fbc70
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
dec dword [eax + 0x40]
add esp, 0x1c
push esi
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov esi, dword [ebp + 8]
mov edi, dword [edi]
push edi
mov dword [ebp - 4], edi
call sym.SQLite.Interop.dll_sqlite3_reset
add esp, 4
test ebx, ebx
je 0x101efae1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push 1
push edi
call sym.SQLite.Interop.dll_sqlite3_bind_int64
push edi
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 0x14
cmp eax, 0x64
je 0x101efb11
mov eax, edi
push eax
call sym.SQLite.Interop.dll_sqlite3_reset
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
mov dword [ebp - 0x18], esi
mov esi, dword [esi + 4]
push 1
mov dword [ebp - 0x14], 0xffffffff
call fcn.101eeed0
mov esi, eax
add esp, 0xc
mov ebx, 1
mov dword [ebp - 0xc], ebx
test esi, esi
jne 0x101efc51
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x14], eax
jmp 0x101efb50
mov eax, dword [ebp - 8]
cmp ebx, dword [eax + 0xc]
jg 0x101efc51
mov ecx, dword [eax + 0x14]
cmp byte [ecx + ebx - 1], 0
jne 0x101efc41
test edi, edi
je 0x101efb86
push ebx
push edi
call sym.SQLite.Interop.dll_sqlite3_column_text
mov edx, dword [ebp - 4]
push ebx
push edx
mov edi, eax
call sym.SQLite.Interop.dll_sqlite3_column_bytes
add esp, 0x10
jmp 0x101efbff
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x101efbc1
movzx ecx, word [eax + 8]
mov edx, ecx
and edx, 0x202
cmp edx, 0x202
jne 0x101efbae
cmp byte [eax + 0xa], 1
jne 0x101efbae
mov eax, dword [eax + 0x10]
jmp 0x101efbc1
test cl, 1
je 0x101efbb7
xor eax, eax
jmp 0x101efbc1
mov bl, 1
call fcn.10179800
mov ebx, dword [ebp - 0xc]
mov edi, eax
mov eax, dword [ebp + 0x14]
mov esi, dword [eax]
movzx eax, word [esi + 8]
test al, 2
je 0x101efbdb
cmp byte [esi + 0xa], 1
jne 0x101efbdb
mov eax, dword [esi + 0xc]
jmp 0x101efbff
test al, 0x10
je 0x101efbed
test eax, 0x4000
mov eax, dword [esi + 0xc]
je 0x101efbff
add eax, dword [esi]
jmp 0x101efbff
test al, 1
je 0x101efbf5
xor eax, eax
jmp 0x101efbff
mov bl, 1
call fcn.1017eb70
mov ebx, dword [ebp - 0xc]
xor esi, esi
mov dword [ebp - 0x10], esi
cmp edi, esi
je 0x101efc29
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3c]
mov ecx, dword [ecx + 0x38]
mov edx, dword [edx + 8]
push 0x10159eb0
push eax
push edi
push 4
lea eax, [ebp - 0x18]
push eax
push ecx
call edx
add esp, 0x18
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
cdq
sub dword [ecx + ebx*8 - 8], eax
lea ecx, [ecx + ebx*8 - 8]
sbb dword [ecx + 4], edx
add dword [ebp + 0x14], 4
inc ebx
mov dword [ebp - 0xc], ebx
test esi, esi
je 0x101efb50
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add dword [eax + 0x10], ecx
push edi
adc dword [eax + 0x14], ecx
call sym.SQLite.Interop.dll_sqlite3_reset
add esp, 4
test esi, esi
jne 0x101efc6c
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret