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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x1013d070]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [esp + 0x18], ebx
mov eax, dword [ebx + 0x78]
mov esi, ebx
test eax, eax
cmovne esi, eax
cmp byte [esi + 0x18f], 2
jne 0x1009a1d6
movzx eax, byte [ecx + 0x2c]
mov edi, dword [ecx + 0x40]
lea eax, [eax + eax*8]
lea eax, [eax + 1]
lea eax, [edx + eax*8]
mov edx, dword [ebx]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 8]
mov ebx, dword [edi + 0x24]
mov dword [esp + 0x1c], eax
test ebx, 0x2000
jne 0x1009a1ed
mov ax, word [ebp + 0xc]
test al, 0x20
jne 0x1009a1ed
mov esi, ebx
and esi, 0x30
jne 0x10099fa4
test ebx, 0x400
jne 0x10099f9c
cmp word [edi + 0x18], si
ja 0x10099fa4
test al, 3
jne 0x10099fa4
xor ecx, ecx
jmp 0x10099fa9
mov ecx, 1
lea eax, [esp + 0x38]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
test ecx, ecx
mov edx, str.SCAN
mov dword [esp + 0x14], ecx
mov eax, str.SEARCH
mov dword [esp + 0x28], 0x64
cmove eax, edx
mov dword [esp + 0x2c], 0x3b9aca00
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x34], 0
push eax
mov word [esp + 0x3c], 0
call fcn.10031a90
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x1009a008
push ecx
push str._SUBQUERY_0x_p
jmp 0x1009a010
push dword [eax + 8]
push str._TABLE__s
lea eax, [esp + 0x28]
push eax
call fcn.100320b0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x1009a03f
push eax
lea eax, [esp + 0x24]
push str._AS__s
push eax
call fcn.100320b0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test ebx, 0x500
jne 0x1009a10f
mov eax, dword [ecx + 0x10]
mov edx, dword [edi + 0x20]
mov dword [esp + 0x10], edx
test byte [eax + 0x24], 0x20
je 0x1009a07c
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
jne 0x1009a07c
xor eax, eax
mov esi, str.PRIMARY_KEY
cmp dword [esp + 0x14], eax
cmove esi, eax
test esi, esi
je 0x1009a17d
jmp 0x1009a0aa
test ebx, 0x20000
je 0x1009a08b
mov esi, str.AUTOMATIC_PARTIAL_COVERING_INDEX
jmp 0x1009a0aa
test ebx, 0x4000
je 0x1009a09a
mov esi, str.AUTOMATIC_COVERING_INDEX
jmp 0x1009a0aa
test bl, 0x40
mov esi, str.COVERING_INDEX__s
mov eax, str.INDEX__s
cmove esi, eax
mov ecx, dword [esp + 0x30]
add ecx, 7
cmp ecx, dword [esp + 0x28]
jb 0x1009a0d0
push 7
mov edx, str._USING
lea ecx, [esp + 0x24]
call fcn.10031a00
mov edx, dword [esp + 0x14]
add esp, 4
jmp 0x1009a0f2
mov eax, dword [str._USING]
mov dword [esp + 0x30], ecx
add ecx, dword [esp + 0x24]
mov dword [ecx - 7], eax
mov ax, word [0x10136c68]
mov word [ecx - 3], ax
mov al, byte [0x10136c6a]
mov byte [ecx - 1], al
push dword [edx]
lea eax, [esp + 0x24]
push esi
push eax
call fcn.100320b0
add esp, 0xc
lea ecx, [esp + 0x20]
mov edx, edi
call fcn.10099d60
jmp 0x1009a17d
test bl, 0xf
setne cl
bt ebx, 8
setb al
test al, cl
je 0x1009a15d
test bl, 5
je 0x1009a12c
mov eax, 0x1012fc54
jmp 0x1009a148
cmp esi, 0x30
jne 0x1009a138
mov eax, str.___AND_rowid_
jmp 0x1009a148
test bl, 0x20
mov eax, 0x10136bb0
mov ecx, 0x10136bac
cmove eax, ecx
push eax
lea eax, [esp + 0x24]
push str._USING_INTEGER_PRIMARY_KEY__rowid_s__
push eax
call fcn.100320b0
add esp, 0xc
jmp 0x1009a17d
test ebx, 0x400
je 0x1009a17d
push dword [edi + 0x20]
lea eax, [esp + 0x24]
push dword [edi + 0x18]
push str._VIRTUAL_TABLE_INDEX__d:_s
push eax
call fcn.100320b0
add esp, 0x10
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x1009a1ac
mov eax, dword [esp + 0x30]
mov byte [eax + ecx], 0
cmp dword [esp + 0x2c], 0
jbe 0x1009a1a8
test byte [esp + 0x35], 4
jne 0x1009a1a8
lea ecx, [esp + 0x20]
call fcn.10031b00
mov ecx, eax
jmp 0x1009a1ac
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov edx, 0xaa
push 0xfffffffffffffff9
push ecx
push 0
push dword [eax + 0x19c]
mov eax, dword [esp + 0x2c]
mov ecx, eax
push dword [eax + 0x88]
call fcn.1004fc00
add esp, 0x14
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100ae9aa
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.100ae9aa
mov esp, ebp
pop ebp
ret