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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x101289b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov eax, dword [edx + 0x78]
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [ebp - 0x94], edx
test eax, eax
cmovne ecx, eax
cmp byte [ecx + 0xd7], 2
jne 0x100dcf65
movzx eax, byte [esi + 0x3c]
mov edi, dword [esi + 0x50]
lea eax, [eax + eax*8]
lea eax, [eax + 1]
lea eax, [ebx + eax*8]
mov ebx, dword [edi + 0x2c]
mov dword [ebp - 0x84], eax
mov eax, dword [edx + 8]
mov edx, dword [edx]
mov dword [ebp - 0x8c], eax
test ebx, 0x2000
jne 0x100dcfce
mov ax, word [ebp + 0x14]
test al, 0x20
jne 0x100dcfce
mov esi, ebx
and esi, 0x30
jne 0x100dcce7
test ebx, 0x400
jne 0x100dccdf
cmp word [edi + 0x18], si
ja 0x100dcce7
test al, 3
jne 0x100dcce7
xor ecx, ecx
jmp 0x100dccec
mov ecx, 1
push dword [ebp - 0x84]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], eax
test ecx, ecx
mov edx, str.SCAN
mov dword [ebp - 0x88], ecx
mov eax, str.SEARCH
mov dword [ebp - 0x78], 0x64
cmove eax, edx
mov dword [ebp - 0x74], 0x3b9aca00
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x70], 0
push str._s__S
push eax
mov word [ebp - 0x6c], 0x100
call sym.e_sqlite3.dll_sqlite3_str_appendf
add esp, 0x10
test ebx, 0x500
jne 0x100dce16
mov eax, dword [ebp - 0x84]
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x90], ecx
mov eax, dword [eax + 0x10]
test byte [eax + 0x1c], 0x80
je 0x100dcd84
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
jne 0x100dcd84
xor eax, eax
mov esi, str.PRIMARY_KEY
cmp dword [ebp - 0x88], eax
cmove esi, eax
test esi, esi
je 0x100dcea8
jmp 0x100dcdb2
test ebx, 0x20000
je 0x100dcd93
mov esi, str.AUTOMATIC_PARTIAL_COVERING_INDEX
jmp 0x100dcdb2
test ebx, 0x4000
je 0x100dcda2
mov esi, str.AUTOMATIC_COVERING_INDEX
jmp 0x100dcdb2
test bl, 0x40
mov esi, str.COVERING_INDEX__s
mov eax, str.INDEX__s
cmove esi, eax
mov ecx, dword [ebp - 0x70]
add ecx, 7
cmp ecx, dword [ebp - 0x78]
jb 0x100dcdd2
push 7
lea eax, [ebp - 0x80]
push str._USING
push eax
call fcn.100324f0
add esp, 0xc
jmp 0x100dcdf2
mov eax, dword [str._USING]
mov dword [ebp - 0x70], ecx
add ecx, dword [ebp - 0x7c]
mov dword [ecx - 7], eax
mov ax, word [0x1011a6c4]
mov word [ecx - 3], ax
mov al, byte [0x1011a6c6]
mov byte [ecx - 1], al
mov eax, dword [ebp - 0x90]
push dword [eax]
lea eax, [ebp - 0x80]
push esi
push eax
call sym.e_sqlite3.dll_sqlite3_str_appendf
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.10032ae0
add esp, 0x14
jmp 0x100dcea8
test bl, 0xf
setne cl
bt ebx, 8
setb al
test al, cl
je 0x100dce89
push str.rowid
lea eax, [ebp - 0x80]
push str._USING_INTEGER_PRIMARY_KEY___s
push eax
call sym.e_sqlite3.dll_sqlite3_str_appendf
add esp, 0xc
test bl, 5
je 0x100dce49
mov eax, 0x3d
jmp 0x100dce75
cmp esi, 0x30
jne 0x100dce69
push str.rowid
lea eax, [ebp - 0x80]
push str.___AND__s
push eax
call sym.e_sqlite3.dll_sqlite3_str_appendf
add esp, 0xc
lea eax, [esi + 0xc]
jmp 0x100dce75
movzx eax, bl
shr eax, 4
and eax, 2
or eax, 0x3c
push eax
lea eax, [ebp - 0x80]
push str._c__
push eax
call sym.e_sqlite3.dll_sqlite3_str_appendf
add esp, 0xc
jmp 0x100dcea8
test ebx, 0x400
je 0x100dcea8
push dword [edi + 0x24]
lea eax, [ebp - 0x80]
push dword [edi + 0x18]
push str._VIRTUAL_TABLE_INDEX__d:_s
push eax
call sym.e_sqlite3.dll_sqlite3_str_appendf
add esp, 0x10
mov eax, dword [ebp - 0x84]
test byte [eax + 0x24], 8
je 0x100dcec5
lea eax, [ebp - 0x80]
push str._LEFT_JOIN
push eax
call sym.e_sqlite3.dll_sqlite3_str_appendf
add esp, 8
mov esi, dword [ebp - 0x7c]
test esi, esi
je 0x100dcef2
mov eax, dword [ebp - 0x70]
mov byte [eax + esi], 0
cmp dword [ebp - 0x74], 0
jbe 0x100dceef
test byte [ebp - 0x6b], 4
jne 0x100dceef
lea eax, [ebp - 0x80]
push eax
call fcn.100e2480
add esp, 4
mov esi, eax
jmp 0x100dcef2
mov esi, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x94]
mov edi, dword [ebx + 0x6c]
mov edx, dword [eax + 0xe4]
cmp dword [ebx + 0x70], edi
jg 0x100dcf22
push 0
push edx
push edi
push 0xb9
push ebx
call fcn.1006b1b0
add esp, 0x14
mov edi, eax
jmp 0x100dcf4d
lea eax, [edi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edi + edi*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xb9
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 + 0x57], 0
je 0x100dcf78
test esi, esi
je 0x100dcf65
push esi
push ecx
call fcn.10094130
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100fa425
mov esp, ebp
pop ebp
ret
test edi, edi
jns 0x100dcf80
mov eax, dword [ebx + 0x6c]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x100dcfb0
push 0xfffffffffffffffa
push esi
push eax
push ebx
call fcn.100e5fe0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100fa425
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100dcf65
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xfa
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100fa425
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100fa425
mov esp, ebp
pop ebp
ret