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

Disassembly:
sub esp, 0x54
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
xor eax, eax
push edi
mov edi, dword [esp + 0x68]
mov esi, dword [edi]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
cmp byte [esi + 0x41], al
jne 0x100788cb
cmp byte [edi + 0x1c3], al
jne 0x100788cb
cmp byte [esi + 0x91], al
jne 0x100782e8
lea eax, [edi + 4]
push eax
push esi
call fcn.1009d5e0
add esp, 8
test eax, eax
je 0x100782e8
inc dword [edi + 0x40]
mov dword [edi + 0xc], eax
jmp 0x100788cb
test ebp, ebp
je 0x100783c1
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
push edi
lea ecx, [esp + 0x28]
call fcn.100357a0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jl 0x100788cb
cmp byte [esi + 0x91], 0
jne 0x10078344
mov eax, ebp
mov ebx, edi
call fcn.10042fa0
mov ecx, dword [esp + 0x70]
cmp dword [ecx + 4], 0
jne 0x10078344
test eax, eax
je 0x10078344
mov edx, dword [esi + 0x10]
mov eax, dword [eax + 0x44]
cmp eax, dword [edx + 0x1c]
jne 0x10078344
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
push ecx
push str.index
mov ecx, edi
lea eax, [esp + 0x50]
call fcn.10013100
mov edx, eax
push ebp
push edx
call fcn.10035e70
add ebp, 8
push ebp
push 0
mov ecx, edi
call fcn.10039690
mov ebp, eax
add esp, 0x18
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x100788cb
mov ebx, dword [esp + 0x10]
cmp esi, 1
jne 0x100783ae
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [ebp + 0x44]
je 0x100783ae
mov edx, dword [ebp]
push edx
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
call fcn.100320c0
add esp, 8
jmp 0x100788cb
test byte [ebp + 0x2c], 0x20
je 0x100783e9
mov eax, ebp
call fcn.10013030
mov dword [esp + 0x34], eax
jmp 0x100783e9
mov ebp, dword [edi + 0x1e4]
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x100788cb
mov esi, dword [ebp + 0x44]
mov ecx, dword [esp + 0x10]
call fcn.10012bc0
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov esi, eax
mov ecx, dword [ebx + 0x10]
mov eax, esi
mov esi, dword [ebp]
shl eax, 4
push 7
add ecx, eax
push str.sqlite_
push esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], ecx
call sym.SQLite.Interop.dll_sqlite3_strnicmp
add esp, 0xc
test eax, eax
jne 0x10078444
cmp byte [ebx + 0x91], al
jne 0x10078444
push 9
lea eax, [esi + 7]
push str.altertab_
push eax
call sym.SQLite.Interop.dll_sqlite3_strnicmp
add esp, 0xc
test eax, eax
je 0x10078444
push esi
push str.table__s_may_not_be_indexed
call fcn.100320c0
add esp, 8
jmp 0x100788cb
cmp dword [ebp + 0xc], 0
je 0x1007845c
push str.views_may_not_be_indexed
call fcn.100320c0
add esp, 4
jmp 0x100788cb
test byte [ebp + 0x2c], 0x10
je 0x10078474
push str.virtual_tables_may_not_be_indexed
call fcn.100320c0
add esp, 4
jmp 0x100788cb
cmp dword [esp + 0x24], 0
je 0x10078528
mov ecx, dword [esp + 0x24]
push ebx
call fcn.1002e310
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
test esi, esi
je 0x100788cb
mov eax, edi
call fcn.10035750
test eax, eax
jne 0x100788cb
cmp byte [ebx + 0x91], al
jne 0x100784de
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ebx, esi
call fcn.10024af0
add esp, 8
test eax, eax
je 0x100784da
mov edx, esi
push edx
push str.there_is_already_a_table_named__s
call fcn.100320c0
add esp, 8
jmp 0x100788cb
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
push ecx
mov ebx, esi
call fcn.10024a00
add esp, 4
test eax, eax
je 0x10078559
cmp dword [esp + 0x8c], 0
jne 0x10078518
mov edx, dword [esp + 0x1c]
push edx
push str.index__s_already_exists
call fcn.100320c0
add esp, 8
jmp 0x100788cb
mov ecx, dword [esp + 0x14]
mov edx, edi
call fcn.100720c0
jmp 0x100788cb
mov eax, dword [ebp + 8]
mov ecx, 1
test eax, eax
je 0x1007853c
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x10078534
push ecx
push esi
push str.sqlite_autoindex__s__d
mov esi, ebx
call fcn.10032280
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x100788cb
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
mov esi, dword [eax]
mov eax, str.sqlite_temp_master
cmp ebx, 1
je 0x10078572
mov eax, str.sqlite_master
push esi
push 0
push eax
push 0x12
mov eax, edi
call fcn.100396f0
add esp, 0x10
test eax, eax
jne 0x100788cb
mov eax, 1
cmp ebx, eax
jne 0x10078598
mov eax, 3
mov ecx, dword [ebp]
mov edx, dword [esp + 0x1c]
push esi
push ecx
push edx
push eax
mov eax, edi
call fcn.100396f0
add esp, 0x10
test eax, eax
jne 0x100788cb
mov esi, dword [esp + 0x78]
test esi, esi
jne 0x10078604
push esi
xor ecx, ecx
mov eax, edi
call fcn.10036630
mov esi, eax
add esp, 4
mov dword [esp + 0x78], esi
test esi, esi
je 0x100788cb
movsx eax, word [ebp + 0x26]
mov ecx, dword [ebp + 4]
mov edx, dword [edi]
lea eax, [eax + eax*2]
mov ebx, dword [ecx + eax*8 - 0x18]
push edx
call fcn.1002d580
mov ecx, dword [esi + 4]
mov dword [ecx + 4], eax
mov edx, dword [esi + 4]
mov al, byte [esp + 0x8c]
add esp, 4
mov byte [edx + 0xc], al
mov eax, dword [esi]
test eax, eax
jle 0x10078631
mov esi, dword [esi + 4]
mov edi, dword [esp + 0x30]
mov edx, eax
mov eax, dword [esi]
test eax, eax
je 0x10078625
mov ecx, dword [eax + 8]
call fcn.10016f30
lea edi, [edi + eax + 1]
add esi, 0x18
sub edx, 1
jne 0x10078613
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x1c]
call fcn.10016f30
mov esi, eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1007864a
movzx eax, word [eax + 0x2e]
jmp 0x1007864f
mov eax, 1
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x78]
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + edx + 1]
mov dx, word [ebx]
add dx, ax
movzx eax, dx
push eax
push edi
call fcn.1002b240
add esp, 0xc
cmp byte [edi + 0x41], 0
mov ebp, eax
jne 0x100788bc
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + esi + 1]
inc esi
push esi
push edx
push eax
mov dword [ebp], eax
mov dword [esp + 0x2c], ecx
call fcn.100091c0
mov ecx, dword [esp + 0x88]
xor edx, edx
add esp, 0xc
test ecx, ecx
setne dl
mov eax, dword [esp + 0x18]
mov byte [ebp + 0x32], cl
xor ecx, ecx
mov esi, dword [esp + 0x84]
mov dword [ebp + 0xc], eax
and edx, 1
add edx, edx
add edx, edx
add edx, edx
cmp dword [esp + 0x24], ecx
sete cl
and ecx, 3
or edx, ecx
mov ecx, dword [ebp + 0x34]
and ecx, 0xfffffff4
or edx, ecx
mov ecx, dword [esp + 0x40]
mov dword [ebp + 0x34], edx
mov edx, dword [edi + 0x10]
mov edx, dword [ecx + edx + 0xc]
mov dword [ebp + 0x18], edx
mov cx, word [ebx]
mov word [ebp + 0x2e], cx
test esi, esi
je 0x1007871c
mov edx, dword [esp + 0x68]
push 0
push esi
push 0x10
push edx
call fcn.1004b5b0
add esp, 0x10
mov dword [ebp + 0x24], esi
mov dword [esp + 0x84], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0xc]
cmp byte [ecx + 0x4c], 4
mov edx, dword [ebx + 4]
sbb eax, eax
neg eax
xor edi, edi
dec eax
cmp dword [ebx], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], edx
jle 0x10078858
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov ecx, dword [eax + 4]
movsx eax, word [esi + 0x26]
mov edx, dword [esi + 4]
xor ebx, ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], edx
test eax, eax
jle 0x1007878b
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [esp + 0x3c]
push ecx
push edx
call sym.SQLite.Interop.dll_sqlite3_stricmp
add esp, 8
test eax, eax
je 0x1007878b
movsx eax, word [esi + 0x26]
add dword [esp + 0x30], 0x18
inc ebx
cmp ebx, eax
jl 0x10078765
movsx eax, word [esi + 0x26]
cmp ebx, eax
jge 0x1007889f
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x28]
mov word [ecx + edi*2], bx
mov eax, dword [edx]
test eax, eax
je 0x100787d2
mov ecx, dword [eax + 8]
call fcn.10016f30
mov esi, eax
mov eax, dword [esp + 0x20]
inc esi
push esi
push ecx
push eax
call fcn.100091c0
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x30], eax
add eax, esi
mov dword [esp + 0x20], eax
jmp 0x100787ec
mov edx, dword [esi + 4]
lea ecx, [ebx + ebx*2]
mov eax, dword [edx + ecx*8 + 0x10]
mov dword [esp + 0x30], eax
test eax, eax
jne 0x100787ec
mov dword [esp + 0x30], str.BINARY
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x91], 0
jne 0x10078812
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x68]
call fcn.1004e440
test eax, eax
je 0x100788bc
mov edi, dword [esp + 0x38]
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov dword [ecx + edi*4], edx
mov cl, byte [eax + 0xc]
and cl, byte [esp + 0x44]
mov edx, dword [ebp + 0x1c]
mov byte [edi + edx], cl
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
lea eax, [ebx + ebx*2]
cmp byte [edx + eax*8 + 0x14], 0
jne 0x10078842
and dword [ebp + 0x34], 0xfffffff7
mov eax, dword [esp + 0x78]
add dword [esp + 0x28], 0x18
inc edi
cmp edi, dword [eax]
mov dword [esp + 0x38], edi
jl 0x10078745
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x1007895d
xor eax, eax
xor esi, esi
cmp ax, word [ebx + 0x2e]
jae 0x10078971
mov ecx, dword [ebx + 4]
movsx edx, word [ecx + esi*2]
movzx eax, word [ebp + 0x2e]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x44], edx
call fcn.10012f90
test eax, eax
je 0x10078929
mov edx, 0xffff
add word [ebp + 0x30], dx
jmp 0x1007894e
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi]
mov edi, dword [esp + 0x68]
push ecx
push edx
push str.table__s_has_no_column_named__s
call fcn.100320c0
add esp, 0xc
mov byte [edi + 0x11], 1
test ebp, ebp
je 0x100788cb
mov ecx, dword [esp + 0x10]
mov eax, ebp
call fcn.100359d0
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x10]
push eax
push esi
call fcn.100316b0
mov ecx, dword [esp + 0x80]
push ecx
push esi
call fcn.10036490
mov edx, dword [esp + 0x84]
push edx
mov eax, esi
call fcn.1002b050
mov eax, dword [esp + 0x30]
add esp, 0x14
test eax, eax
je 0x10078c7d
cmp dword [esi + 0x208], 0
je 0x10078c44
mov ecx, esi
call fcn.10022ca0
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov eax, dword [ebp + 4]
mov cx, word [esp + 0x44]
mov word [eax + edi*2], cx
mov edx, dword [ebx + 0x20]
mov ecx, dword [edx + esi*4]
mov eax, dword [ebp + 0x20]
mov dword [eax + edi*4], ecx
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebp + 0x1c]
mov cl, byte [esi + edx]
mov byte [edi + eax], cl
inc edi
movzx edx, word [ebx + 0x2e]
inc esi
cmp esi, edx
jl 0x10078872
jmp 0x10078971
mov eax, dword [ebp + 4]
or ecx, 0xffffffff
mov word [eax + edi*2], cx
mov edx, dword [ebp + 0x20]
mov dword [edx + edi*4], str.BINARY
mov esi, ebp
call fcn.10012e50
mov esi, dword [esp + 0x68]
cmp dword [esi + 0x1e4], 0
jne 0x1007898c
mov edi, ebp
call fcn.1001b470
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x1e4]
jne 0x10078a0a
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x10078a0a
nop
movzx eax, word [ebx + 0x2e]
movzx ecx, word [ebp + 0x2e]
cmp ax, cx
jne 0x10078a03
movzx eax, ax
xor esi, esi
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x100789fd
mov edi, dword [ebp + 4]
mov edx, dword [ebx + 4]
sub edx, edi
mov dword [esp + 0x44], edx
mov ax, word [edx + edi]
cmp ax, word [edi]
jne 0x100789fd
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx + esi*4]
mov ecx, dword [ebp + 0x20]
mov ecx, dword [ecx + esi*4]
cmp eax, ecx
je 0x100789f1
push ecx
push eax
call sym.SQLite.Interop.dll_sqlite3_stricmp
add esp, 8
test eax, eax
jne 0x100789fd
mov edx, dword [esp + 0x44]
movzx eax, word [ebx + 0x2e]
inc esi
add edi, 2
cmp esi, eax
jl 0x100789c6
cmp esi, dword [esp + 0x3c]
je 0x10078a38
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x100789a0
mov edi, dword [esp + 0x10]
cmp byte [edi + 0x91], 0
je 0x10078a96
mov edx, dword [ebp]
mov eax, dword [ebp + 0x18]
push edx
add eax, 0x18
mov esi, ebp
call fcn.1002d320
add esp, 4
test eax, eax
je 0x10078a77
mov byte [edi + 0x41], 1
jmp 0x100788bc
mov al, byte [ebx + 0x32]
mov cl, byte [ebp + 0x32]
cmp al, cl
je 0x100788bc
cmp al, 0xa
je 0x10078a62
cmp cl, 0xa
je 0x10078a62
mov edi, dword [esp + 0x68]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.100320c0
add esp, 8
cmp byte [ebx + 0x32], 0xa
jne 0x100788bc
mov cl, byte [ebp + 0x32]
mov byte [ebx + 0x32], cl
jmp 0x100788bc
or dword [edi + 0x18], 2
cmp dword [esp + 0x74], 0
je 0x10078bd6
mov eax, edi
mov ecx, dword [eax + 0x8c]
mov dword [ebp + 0x28], ecx
jmp 0x10078bd6
mov edx, dword [esp + 0x68]
cmp dword [edx + 0x40], 0
jne 0x10078bd6
mov eax, dword [esp + 0x18]
test byte [eax + 0x2c], 0x20
je 0x10078ab9
cmp dword [esp + 0x74], 0
je 0x10078bd6
mov ebx, edx
inc dword [ebx + 0x48]
mov edi, dword [ebx + 0x48]
mov eax, ebx
call fcn.1003c530
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
je 0x100788bc
mov ecx, dword [esp + 0x14]
push 1
mov edx, ebx
call fcn.10077fb0
mov ecx, dword [esp + 0x18]
add esp, 4
push edi
push ecx
push 0x78
call fcn.1003a180
add esp, 0xc
cmp dword [esp + 0x80], 0
je 0x10078b45
mov eax, dword [ebx + 0x1fc]
add eax, dword [ebx + 0x1f8]
mov ecx, dword [esp + 0x24]
sub eax, dword [ecx]
mov ecx, dword [ecx]
cmp byte [ecx + eax - 1], 0x3b
jne 0x10078b1c
dec eax
cmp dword [esp + 0x7c], 0
mov edx, 0x100b4e24
je 0x10078b2d
mov edx, str._UNIQUE
mov esi, dword [esp + 0x10]
push ecx
push eax
push edx
push str.CREATE_s_INDEX__.s
call fcn.10032280
add esp, 0x10
mov esi, eax
jmp 0x10078b47
xor esi, esi
cmp dword [esp + 0x14], 1
mov eax, str.sqlite_temp_master
je 0x10078b58
mov eax, str.sqlite_master
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
mov edx, dword [ebp]
push esi
push edi
push ecx
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x10]
mov eax, dword [edx + ecx]
push eax
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
call fcn.10030ff0
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
mov eax, esi
call fcn.10025ff0
cmp dword [esp + 0x74], 0
je 0x10078bd6
push edi
push ebp
mov edi, ebx
call fcn.10062780
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.1003dac0
mov ecx, dword [ebp]
mov esi, dword [esp + 0x1c]
add esp, 0xc
push ecx
push str.name_q_AND_typeindex
call fcn.10032280
mov esi, dword [esp + 0x4c]
push eax
push ebx
call fcn.1003f4d0
push 0
push 0x8e
call fcn.1003a1e0
add esp, 0x18
mov edx, dword [esp + 0x10]
cmp byte [edx + 0x91], 0
jne 0x10078bee
cmp dword [esp + 0x74], 0
jne 0x100788bc
mov ecx, dword [esp + 0x18]
mov edx, 5
cmp dword [esp + 0x7c], edx
jne 0x10078c32
mov eax, dword [ecx + 8]
test eax, eax
je 0x10078c32
cmp byte [eax + 0x32], dl
je 0x10078c32
cmp dword [eax + 0x14], 0
je 0x10078c20
nop
mov ecx, dword [eax + 0x14]
cmp byte [ecx + 0x32], dl
je 0x10078c20
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x10078c10
mov ecx, dword [eax + 0x14]
mov dword [ebp + 0x14], ecx
mov dword [eax + 0x14], ebp
mov dword [esp + 0x2c], ebp
jmp 0x100788cb
mov edx, dword [ecx + 8]
mov dword [ebp + 0x14], edx
mov dword [ecx + 8], ebp
mov dword [esp + 0x2c], ebp
jmp 0x100788cb
cmp eax, dword [esi + 0x114]
jb 0x10078c74
cmp eax, dword [esi + 0x118]
jae 0x10078c74
mov ecx, dword [esi + 0x110]
mov dword [eax], ecx
dec dword [esi + 0xfc]
mov dword [esi + 0x110], eax
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
push eax
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret