Function at 0x1001c1d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov eax, edx
push edi
mov edi, dword [ecx]
xor ebx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edi
test eax, eax
jne 0x1001c282
lea ebx, [ecx + 0x24]
xor esi, esi
cmp dword [ebx], esi
jne 0x1001c240
push dword [edi + 0x28]
push dword [edi + 0x24]
push dword [edi + 0x34]
push str.SELECT__s_FROM__s_T_WHERE_T._Q_
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1001c21b
lea esi, [eax + 7]
jmp 0x1001c240
mov ecx, dword [edi]
push 0
push ebx
push 0
push 0x81
push 0xffffffffffffffff
mov edx, eax
call fcn.1008e180
add esp, 0x14
mov esi, eax
push dword [ebp - 0x10]
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov ebx, dword [ebx]
push ebx
call sym.SQLite.Interop.dll_sqlite3_reset
add esp, 4
test esi, esi
jne 0x1001c3c2
push dword [ebp + 0xc]
push dword [ebp + 8]
push 1
push ebx
call sym.SQLite.Interop.dll_sqlite3_bind_int64
push ebx
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 0x14
cmp eax, 0x64
je 0x1001c27f
push ebx
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 - 8]
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
push dword [ebp + 8]
mov ecx, dword [ecx + 4]
mov edx, 1
mov dword [ebp - 0x18], 0xffffffff
call fcn.10022b70
mov esi, eax
add esp, 8
mov edi, 1
test esi, esi
jne 0x1001c3a9
mov eax, dword [ebp - 0xc]
cmp edi, dword [eax + 0xc]
jg 0x1001c3a9
mov eax, dword [eax + 0x14]
cmp byte [eax + edi - 1], 0
jne 0x1001c39c
test ebx, ebx
je 0x1001c2e4
push edi
push ebx
call sym.SQLite.Interop.dll_sqlite3_column_text
push edi
push ebx
mov esi, eax
call sym.SQLite.Interop.dll_sqlite3_column_bytes
add esp, 0x10
jmp 0x1001c35f
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x1001c2f1
xor esi, esi
jmp 0x1001c320
movzx edx, word [ecx + 8]
mov eax, edx
and eax, 0x202
cmp eax, 0x202
jne 0x1001c30e
cmp byte [ecx + 0xa], 1
jne 0x1001c30e
mov esi, dword [ecx + 0x10]
jmp 0x1001c320
test dl, 1
je 0x1001c317
xor esi, esi
jmp 0x1001c320
mov dl, 1
call fcn.100ca520
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
movzx ecx, word [eax + 8]
test cl, 2
je 0x1001c339
cmp byte [eax + 0xa], 1
jne 0x1001c339
mov ecx, dword [eax + 0xc]
jmp 0x1001c361
test cl, 0x10
je 0x1001c34d
test ecx, 0x4000
mov ecx, dword [eax + 0xc]
je 0x1001c361
add ecx, dword [eax]
jmp 0x1001c361
test cl, 1
je 0x1001c356
xor ecx, ecx
jmp 0x1001c361
mov dl, 1
mov ecx, eax
call fcn.100c9450
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x14], eax
test esi, esi
je 0x1001c38d
mov edx, dword [ebp - 0xc]
push 0x1001c3d0
mov eax, dword [edx + 0x3c]
push ecx
mov eax, dword [eax + 8]
push esi
push 4
lea ecx, [ebp - 0x1c]
push ecx
push dword [edx + 0x38]
call eax
mov esi, eax
mov eax, dword [ebp - 0x14]
add esp, 0x18
mov ecx, dword [ebp - 8]
cdq
mov ecx, dword [ecx + 0x18]
sub dword [ecx + edi*8 - 8], eax
sbb dword [ecx + edi*8 - 4], edx
add dword [ebp - 4], 4
inc edi
test esi, esi
je 0x1001c2b1
mov eax, dword [ebp - 8]
push ebx
add dword [eax + 0x10], 0xffffffff
adc dword [eax + 0x14], 0xffffffff
call sym.SQLite.Interop.dll_sqlite3_reset
add esp, 4
test esi, esi
cmove esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret