Function at 0x1008a7e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x1011d004]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
mov ebx, edx
mov edx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [edx + 0x74]
xor edi, edi
test eax, eax
mov dword [esp + 0x34], edx
mov esi, edx
cmovne esi, eax
cmp byte [esi + 0xcb], 2
jne 0x1008aaae
movzx eax, byte [ecx + 0x34]
mov edi, dword [ecx + 0x48]
lea eax, [eax + eax*8]
lea eax, [eax + 1]
lea eax, [ebx + eax*8]
mov ebx, dword [edi + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 8]
mov edx, dword [edx]
mov dword [esp + 0x2c], eax
test ebx, 0x2000
jne 0x1008ab25
mov ax, word [ebp + 0xc]
test al, 0x20
jne 0x1008ab25
mov esi, ebx
and esi, 0x30
jne 0x1008a876
test ebx, 0x400
jne 0x1008a86e
cmp word [edi + 0x18], si
ja 0x1008a876
test al, 3
jne 0x1008a876
xor ecx, ecx
jmp 0x1008a87b
mov ecx, 1
push dword [esp + 0x24]
lea eax, [esp + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
test ecx, ecx
mov edx, str.SCAN
mov dword [esp + 0x2c], ecx
mov eax, str.SEARCH
mov dword [esp + 0x18], 0x64
cmove eax, edx
mov dword [esp + 0x1c], 0x3b9aca00
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 0
push str._s__S
push eax
mov word [esp + 0x30], 0x100
call sym.sqlite3.dll_sqlite3_str_appendf
add esp, 0x10
test ebx, 0x500
jne 0x1008a9a4
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x30], ecx
mov eax, dword [eax + 0x10]
test byte [eax + 0x1c], 0x80
je 0x1008a911
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
jne 0x1008a911
xor eax, eax
mov esi, str.PRIMARY_KEY
cmp dword [esp + 0x28], eax
cmove esi, eax
test esi, esi
je 0x1008aa12
jmp 0x1008a93f
test ebx, 0x20000
je 0x1008a920
mov esi, str.AUTOMATIC_PARTIAL_COVERING_INDEX
jmp 0x1008a93f
test ebx, 0x4000
je 0x1008a92f
mov esi, str.AUTOMATIC_COVERING_INDEX
jmp 0x1008a93f
test bl, 0x40
mov esi, str.COVERING_INDEX__s
mov eax, str.INDEX__s
cmove esi, eax
mov ecx, dword [esp + 0x1c]
add ecx, 7
cmp ecx, dword [esp + 0x14]
jb 0x1008a961
push 7
mov edx, str._USING
lea ecx, [esp + 0x10]
call fcn.100076a0
add esp, 4
jmp 0x1008a983
mov eax, dword [str._USING]
mov dword [esp + 0x1c], ecx
add ecx, dword [esp + 0x10]
mov dword [ecx - 7], eax
mov ax, word [0x1010d054]
mov word [ecx - 3], ax
mov al, byte [0x1010d056]
mov byte [ecx - 1], al
mov eax, dword [esp + 0x30]
push dword [eax]
lea eax, [esp + 0x10]
push esi
push eax
call sym.sqlite3.dll_sqlite3_str_appendf
add esp, 0xc
lea ecx, [esp + 0xc]
mov edx, edi
call fcn.1008a650
jmp 0x1008aa12
test bl, 0xf
setne cl
bt ebx, 8
setb al
test al, cl
je 0x1008a9f2
test bl, 5
je 0x1008a9c1
mov eax, 0x1010d058
jmp 0x1008a9dd
cmp esi, 0x30
jne 0x1008a9cd
mov eax, str.___AND_rowid_
jmp 0x1008a9dd
test bl, 0x20
mov eax, 0x1010cfd0
mov ecx, 0x1010cfd4
cmove eax, ecx
push eax
lea eax, [esp + 0x10]
push str._USING_INTEGER_PRIMARY_KEY__rowid_s__
push eax
call sym.sqlite3.dll_sqlite3_str_appendf
add esp, 0xc
jmp 0x1008aa12
test ebx, 0x400
je 0x1008aa12
push dword [edi + 0x20]
lea eax, [esp + 0x10]
push dword [edi + 0x18]
push str._VIRTUAL_TABLE_INDEX__d:_s
push eax
call sym.sqlite3.dll_sqlite3_str_appendf
add esp, 0x10
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1008aa41
mov eax, dword [esp + 0x1c]
mov byte [eax + esi], 0
cmp dword [esp + 0x18], 0
jbe 0x1008aa3d
test byte [esp + 0x21], 4
jne 0x1008aa3d
lea ecx, [esp + 0xc]
call fcn.10007790
mov esi, eax
jmp 0x1008aa41
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov edi, dword [ebx + 0x74]
mov edx, dword [edx + 0xd8]
cmp dword [ebx + 0x78], edi
jg 0x1008aa6e
push 0
push edx
push edi
mov edx, 0xb4
mov ecx, ebx
call fcn.10029250
add esp, 0xc
mov edi, eax
jmp 0x1008aa99
lea eax, [edi + 1]
mov dword [ebx + 0x74], eax
lea ecx, [edi + edi*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0xb4
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx]
mov eax, edi
cmp byte [ecx + 0x53], 0
je 0x1008aac5
test esi, esi
je 0x1008aaae
mov edx, esi
call fcn.10004cc0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
test edi, edi
jns 0x1008aacd
mov eax, dword [ebx + 0x74]
dec eax
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x70]
cmp byte [eax + edx*4 + 1], 0
lea eax, [eax + edx*4]
je 0x1008ab03
push 0xfffffffffffffff9
push esi
mov edx, eax
mov ecx, ebx
call fcn.1002a2c0
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1008aaae
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xf9
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xa4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret