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

Disassembly:
sub esp, 0x94
mov eax, dword [0x100bdc68]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
mov ebx, dword [esp + 0x9c]
xor edx, edx
mov ecx, ebx
mov dword [esp + 0x28], ebx
push esi
mov esi, dword [esp + 0xa4]
mov eax, dword [ebx + 0x78]
test eax, eax
push edi
mov edi, dword [esp + 0xac]
cmovne ecx, eax
cmp byte [ecx + 0xd3], 2
jne 0x1008eb85
movzx eax, byte [edi + 0x3c]
mov edi, dword [edi + 0x50]
lea eax, [eax + eax*8]
lea eax, [eax + 1]
lea edx, [esi + eax*8]
mov eax, dword [ebx + 8]
mov dword [esp + 0x34], eax
mov eax, dword [ebx]
mov ebx, dword [edi + 0x2c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
test ebx, 0x2000
jne 0x1008eb9f
mov ax, word [esp + 0xb0]
test al, 0x20
jne 0x1008eb9f
push ebp
mov ebp, ebx
and ebp, 0x30
jne 0x1008e949
mov esi, ebx
and esi, 0x400
jne 0x1008e941
cmp word [edi + 0x18], si
ja 0x1008e949
test al, 3
jne 0x1008e949
xor ecx, ecx
jmp 0x1008e956
mov esi, ebx
mov ecx, 1
and esi, 0x400
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
test ecx, ecx
mov eax, dword [esp + 0x30]
push edx
mov dword [esp + 0x14], eax
mov edx, str.SCAN
mov eax, str.SEARCH
mov dword [esp + 0x1c], 0x64
cmove eax, edx
mov dword [esp + 0x20], 0x3b9aca00
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0
push str._s__S
push eax
mov word [esp + 0x34], 0x100
call sym.sqlite3.dll_sqlite3_str_appendf
add esp, 0x10
test ebx, 0x500
jne 0x1008ea7d
mov eax, dword [esp + 0x2c]
mov ebp, dword [edi + 0x20]
mov eax, dword [eax + 0x10]
test byte [eax + 0x1c], 0x80
je 0x1008e9e9
mov eax, dword [ebp + 0x38]
and al, 3
cmp al, 2
jne 0x1008e9e9
xor eax, eax
mov esi, str.PRIMARY_KEY
cmp dword [esp + 0x28], eax
cmove esi, eax
test esi, esi
je 0x1008eb0f
jmp 0x1008ea17
test ebx, 0x20000
je 0x1008e9f8
mov esi, str.AUTOMATIC_PARTIAL_COVERING_INDEX
jmp 0x1008ea17
test ebx, 0x4000
je 0x1008ea07
mov esi, str.AUTOMATIC_COVERING_INDEX
jmp 0x1008ea17
test bl, 0x40
mov esi, str.COVERING_INDEX__s
mov eax, str.INDEX__s
cmove esi, eax
mov ecx, dword [esp + 0x20]
add ecx, 7
cmp ecx, dword [esp + 0x18]
jb 0x1008ea3a
push 7
lea eax, [esp + 0x14]
push str._USING
push eax
call fcn.100277e0
add esp, 0xc
jmp 0x1008ea5c
mov eax, dword [str._USING]
mov dword [esp + 0x20], ecx
add ecx, dword [esp + 0x14]
mov dword [ecx - 7], eax
mov ax, word [0x100b7c4c]
mov word [ecx - 3], ax
mov al, byte [0x100b7c4e]
mov byte [ecx - 1], al
push dword [ebp]
lea eax, [esp + 0x14]
push esi
push eax
call sym.sqlite3.dll_sqlite3_str_appendf
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.10027e30
add esp, 0x14
jmp 0x1008eb0f
test bl, 0xf
setne cl
bt ebx, 8
setb al
test al, cl
je 0x1008eaf3
push str.rowid
lea eax, [esp + 0x14]
push str._USING_INTEGER_PRIMARY_KEY___s
push eax
call sym.sqlite3.dll_sqlite3_str_appendf
add esp, 0xc
test bl, 5
je 0x1008eab1
mov eax, 0x3d
jmp 0x1008eade
cmp ebp, 0x30
jne 0x1008ead2
push str.rowid
lea eax, [esp + 0x14]
push str.___AND__s
push eax
call sym.sqlite3.dll_sqlite3_str_appendf
add esp, 0xc
lea eax, [ebp + 0xc]
jmp 0x1008eade
movzx eax, bl
shr eax, 4
and eax, 2
or eax, 0x3c
push eax
lea eax, [esp + 0x14]
push str._c__
push eax
call sym.sqlite3.dll_sqlite3_str_appendf
add esp, 0xc
jmp 0x1008eb0f
test esi, esi
je 0x1008eb0f
push dword [edi + 0x24]
lea eax, [esp + 0x14]
push dword [edi + 0x18]
push str._VIRTUAL_TABLE_INDEX__d:_s
push eax
call sym.sqlite3.dll_sqlite3_str_appendf
add esp, 0x10
mov eax, dword [esp + 0x2c]
pop ebp
test byte [eax + 0x24], 8
je 0x1008eb2c
lea eax, [esp + 0xc]
push str._LEFT_JOIN
push eax
call sym.sqlite3.dll_sqlite3_str_appendf
add esp, 8
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1008eb5f
mov eax, dword [esp + 0x1c]
mov byte [eax + ecx], 0
cmp dword [esp + 0x18], 0
jbe 0x1008eb5b
test byte [esp + 0x21], 4
jne 0x1008eb5b
lea eax, [esp + 0xc]
push eax
call fcn.10093610
add esp, 4
mov ecx, eax
jmp 0x1008eb5f
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
push 0xfffffffffffffffa
push ecx
push 0
push dword [eax + 0xe0]
mov eax, dword [esp + 0x44]
push dword [eax + 0x6c]
push 0xb9
push eax
call fcn.1007aa80
add esp, 0x1c
mov edx, eax
pop edi
pop esi
mov eax, edx
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.100aac86
add esp, 0x94
ret
mov ecx, dword [esp + 0x9c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100aac86
add esp, 0x94
ret