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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [edx], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call sym._sqlite3_initialize
mov esi, eax
test eax, eax
jne 0x10104192
cmp byte [0x10164ca4], 0
mov eax, dword [ebp - 0x2c]
je 0x10103cf3
bt eax, 0xf
jb 0x10103cf3
bt eax, 0x10
mov esi, 1
jb 0x10103cf3
movzx esi, byte [0x10164ca5]
bt eax, 0x12
jae 0x10103d00
and eax, 0xfffdffff
jmp 0x10103d0e
cmp dword [0x10164d68], 0
je 0x10103d11
or eax, 0x20000
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x30], eax
and eax, 0xfff600e7
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
mov eax, 0x218
call sym._sqlite3MallocZero
mov ebx, eax
test eax, eax
je 0x10103d51
test esi, esi
je 0x10103d58
mov eax, 1
call sym._sqlite3MutexAlloc
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x10103d58
mov dword [esp], ebx
call sym._sqlite3_free
xor ebx, ebx
jmp 0x10104160
mov eax, dword [ebx + 0xc]
mov esi, 0x101eece0
mov dword [esp], eax
call sym._sqlite3_mutex_enter
mov eax, dword [ebp - 0x30]
mov byte [ebx + 0x61], 0x6d
mov ecx, 0xb
mov dword [ebx + 0x14], 2
mov dword [ebx + 0x130], 1
and eax, 0x2000000
mov word [ebx + 0x134], 0
cmp eax, 1
sbb eax, eax
and eax, 0x100
dec eax
mov dword [ebx + 0x48], eax
lea eax, [ebx + 0x1c8]
mov dword [ebx + 0x10], eax
lea eax, [ebx + 0x78]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebx + 0x55], 1
xor esi, esi
xor edi, edi
mov byte [ebx + 0x5a], 0xff
mov ecx, 1
mov eax, dword [0x10164d48]
mov dword [ebx + 0xa4], esi
xor esi, esi
mov edx, dword [0x10164d4c]
mov dword [ebx + 0x64], edi
xor edi, edi
mov dword [ebx + 0x30], eax
xor eax, eax
or dword [ebx + 0x20], 0xe00480e0
mov dword [ebx + 0x34], edx
mov edx, str.BINARY
mov dword [ebx + 0x1b4], eax
mov dword [ebx + 0x1b0], eax
mov dword [ebx + 0x1ac], eax
mov dword [ebx + 0x1b8], eax
mov dword [ebx + 0x188], eax
mov dword [ebx + 0x184], eax
mov dword [ebx + 0x180], eax
mov dword [ebx + 0x18c], eax
mov dword [ebx + 0xb8], 0x101650c0
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp], eax
mov eax, ebx
mov dword [esp + 4], sym._binCollFunc
call sym._createCollation
xor eax, eax
mov ecx, 3
mov dword [esp + 4], sym._binCollFunc
mov dword [esp + 8], eax
xor eax, eax
mov edx, str.BINARY
mov dword [esp], eax
mov eax, ebx
call sym._createCollation
xor eax, eax
xor edx, edx
mov ecx, 2
mov dword [esp + 8], eax
mov eax, ebx
mov dword [esp], edx
mov edx, str.BINARY
mov dword [esp + 4], sym._binCollFunc
call sym._createCollation
xor ecx, ecx
mov dword [esp], esi
mov edx, str.NOCASE
mov dword [esp + 8], ecx
mov eax, ebx
mov ecx, 1
mov dword [esp + 4], sym._nocaseCollatingFunc
call sym._createCollation
xor eax, eax
mov dword [esp + 8], edi
mov ecx, 1
mov dword [esp], eax
mov edx, str.RTRIM
mov eax, ebx
mov dword [esp + 4], sym._rtrimCollFunc
call sym._createCollation
cmp byte [ebx + 0x57], 0
jne 0x10104155
mov eax, dword [ebp - 0x34]
mov edx, 0x46
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x30]
and eax, 7
bt edx, eax
jb 0x10103ef8
mov eax, 0x2a796
call sym._sqlite3MisuseError
jmp 0x10103f17
lea eax, [ebp - 0x20]
mov dword [esp], ebx
lea ecx, [ebp - 0x2c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
call sym._sqlite3ParseUri.constprop.0
mov edx, dword [ebp - 0x24]
mov esi, eax
test eax, eax
je 0x10103f5f
cmp eax, 7
jne 0x10103f2c
mov eax, ebx
call sym._sqlite3OomFault
mov edi, dword [ebp - 0x20]
mov edx, 0
mov eax, 0x101e7e57
mov dword [esp], ebx
mov dword [esp + 4], esi
test edi, edi
mov dword [esp + 0xc], edi
cmove eax, edx
mov dword [esp + 8], eax
call sym._sqlite3ErrorWithMsg
mov dword [esp], edi
call sym._sqlite3_free
jmp 0x10104155
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [esp + 4], ecx
mov ecx, ebx
or ah, 1
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
add eax, 4
mov dword [esp], eax
mov eax, dword [ebx]
call sym._sqlite3BtreeOpen
mov esi, eax
test eax, eax
je 0x10103fa1
cmp eax, 0xc0a
jne 0x10103f93
mov esi, 7
mov edx, esi
mov eax, ebx
call sym._sqlite3Error
jmp 0x10104155
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
call sym._sqlite3BtreeEnter
mov edi, dword [ebx + 0x10]
mov eax, ebx
mov edx, dword [edi + 4]
call sym._sqlite3SchemaGet
mov dword [edi + 0xc], eax
cmp byte [ebx + 0x57], 0
jne 0x10103fd3
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0xc]
movzx edx, byte [eax + 0x4d]
mov eax, ebx
call sym._sqlite3SetTextEncoding
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
call sym._sqlite3BtreeLeave
mov edi, dword [ebx + 0x10]
xor edx, edx
mov eax, ebx
call sym._sqlite3SchemaGet
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x10]
mov dword [eax], str.main
mov byte [eax + 8], 3
mov dword [eax + 0x10], str.temp
mov byte [eax + 0x18], 1
cmp byte [ebx + 0x57], 0
mov byte [ebx + 0x61], 0x76
jne 0x10104155
xor edx, edx
mov eax, ebx
call sym._sqlite3Error
mov dword [esp + 8], 2
mov dword [esp + 4], str.MATCH
mov dword [esp], ebx
call sym._sqlite3_overload_function
cmp eax, 7
jne 0x10104040
mov eax, ebx
call sym._sqlite3OomFault
mov dword [esp], ebx
call sym._sqlite3_errcode
test eax, eax
jne 0x10104125
cmp esi, 1
jg 0x10104062
mov dword [esp], ebx
call dword [esi*4 + 0x101f0980]
inc esi
jmp 0x10104048
test eax, eax
jne 0x10104125
cmp dword [0x10164c20], 0
je 0x10104117
xor edi, edi
mov eax, 2
call sym._sqlite3MutexAlloc
mov dword [esp], eax
mov esi, eax
call sym._sqlite3_mutex_enter
cmp edi, dword [0x10164c20]
jb 0x101040a7
mov dword [esp], esi
call sym._sqlite3_mutex_leave
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [esp], edx
jmp 0x101040ff
mov eax, dword [0x10164c24]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x30], eax
mov dword [esp], esi
call sym._sqlite3_mutex_leave
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x10104106
lea edx, [ebp - 0x1c]
mov dword [esp + 8], 0x101f0540
mov dword [esp + 4], edx
mov dword [esp], ebx
call eax
test eax, eax
je 0x10104106
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp + 8], str.automatic_extension_loading_failed:__s
mov dword [esp + 0xc], edx
mov dword [esp], ebx
call sym._sqlite3ErrorWithMsg
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._sqlite3_free
jmp 0x10104117
mov eax, dword [ebp - 0x1c]
inc edi
mov dword [esp], eax
call sym._sqlite3_free
jmp 0x10104079
mov dword [esp], ebx
call sym._sqlite3_errcode
test eax, eax
je 0x1010412e
jmp 0x10104155
mov edx, eax
mov eax, ebx
call sym._sqlite3Error
mov eax, dword [0x10164cb8]
mov ecx, dword [0x10164cb4]
xor edx, edx
mov dword [esp], eax
mov eax, ebx
call sym._setupLookaside
mov dword [esp + 4], 0x3e8
mov dword [esp], ebx
call sym._sqlite3_wal_autocheckpoint
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._sqlite3_mutex_leave
mov dword [esp], ebx
call sym._sqlite3_errcode
mov esi, eax
cmp al, 7
jne 0x1010417a
mov dword [esp], ebx
xor ebx, ebx
call sym._sqlite3_close
jmp 0x10104182
test eax, eax
je 0x10104182
mov byte [ebx + 0x61], 0xba
mov eax, dword [ebp - 0x38]
mov dword [eax], ebx
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._sqlite3_free_filename
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret