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

Disassembly:
sub esp, 0x54
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x68]
mov ebp, dword [edi]
cmp byte [ebp + 0x40], bl
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
jne 0x10072ca2
cmp byte [edi + 0x1c3], bl
jne 0x10072ca2
cmp byte [ebp + 0x89], bl
jne 0x100726e5
lea eax, [edi + 4]
push eax
push ebp
call fcn.10097aa0
add esp, 8
cmp eax, ebx
je 0x100726e5
add dword [edi + 0x40], 1
mov dword [edi + 0xc], eax
jmp 0x10072ca2
cmp dword [esp + 0x74], ebx
je 0x100727c0
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
lea edx, [esp + 0x28]
mov eax, edi
call fcn.100349f0
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x10072ca2
cmp byte [ebp + 0x89], bl
jne 0x10072742
mov eax, dword [esp + 0x74]
mov ebx, edi
call fcn.1003dee0
mov ecx, dword [esp + 0x70]
cmp dword [ecx + 4], 0
jne 0x10072742
test eax, eax
je 0x10072742
mov edx, dword [ebp + 0x10]
mov eax, dword [eax + 0x44]
cmp eax, dword [edx + 0x1c]
jne 0x10072742
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
push ecx
push str.index
mov ecx, edi
lea eax, [esp + 0x50]
call fcn.100126b0
mov esi, dword [esp + 0x7c]
mov edx, eax
push esi
push edx
call fcn.10034e10
add esi, 8
push esi
push 0
mov eax, edi
call fcn.10039940
mov ebx, eax
add esp, 0x18
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x10072ca2
cmp dword [esp + 0x14], 1
jne 0x100727ad
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [ebx + 0x44]
je 0x100727ad
mov edx, dword [ebx]
push edx
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
call fcn.10030a70
add esp, 8
jmp 0x10072ca2
test byte [ebx + 0x2c], 0x20
je 0x100727e0
mov eax, ebx
call fcn.100125d0
mov dword [esp + 0x38], eax
jmp 0x100727e0
mov ebx, dword [edi + 0x1e4]
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x10072ca2
mov esi, dword [ebx + 0x44]
mov ecx, ebp
call fcn.100121a0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebx]
shl eax, 4
push 7
add ecx, eax
push str.sqlite_
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], ecx
call sym.SQLite.Interop.dll_sqlite3_strnicmp
add esp, 0xc
test eax, eax
jne 0x10072834
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 0x10072834
push esi
push str.table__s_may_not_be_indexed
call fcn.10030a70
add esp, 8
jmp 0x10072ca2
cmp dword [ebx + 0xc], 0
je 0x1007284c
push str.views_may_not_be_indexed
call fcn.10030a70
add esp, 4
jmp 0x10072ca2
test byte [ebx + 0x2c], 0x10
je 0x10072864
push str.virtual_tables_may_not_be_indexed
call fcn.10030a70
add esp, 4
jmp 0x10072ca2
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10072903
push ebp
call fcn.1002c260
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x34], esi
je 0x10072ca2
mov eax, edi
call fcn.100349a0
test eax, eax
jne 0x10072ca2
cmp byte [ebp + 0x89], al
jne 0x100728c0
push eax
push esi
push ebp
call fcn.10023ff0
add esp, 0xc
test eax, eax
je 0x100728c0
push esi
push str.there_is_already_a_table_named__s
call fcn.10030a70
add esp, 8
jmp 0x10072ca2
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
push edx
push esi
mov ecx, ebp
call fcn.10023ef0
add esp, 8
test eax, eax
je 0x10072939
cmp dword [esp + 0x8c], 0
jne 0x100728f3
push esi
push str.index__s_already_exists
call fcn.10030a70
add esp, 8
jmp 0x10072ca2
mov ecx, dword [esp + 0x14]
mov edx, edi
call fcn.1006ccc0
jmp 0x10072ca2
mov eax, dword [ebx + 8]
test eax, eax
mov ecx, 1
je 0x1007291a
nop
mov eax, dword [eax + 0x14]
add ecx, 1
test eax, eax
jne 0x10072910
push ecx
push esi
push str.sqlite_autoindex__s__d
mov esi, ebp
call fcn.10030b20
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [esp + 0x34], esi
je 0x10072ca2
cmp dword [esp + 0x14], 1
mov eax, dword [esp + 0x30]
mov ebp, dword [eax]
mov eax, str.sqlite_temp_master
je 0x10072950
mov eax, str.sqlite_master
push ebp
push 0
push eax
push 0x12
mov eax, edi
call fcn.10039af0
add esp, 0x10
test eax, eax
jne 0x10072ca2
mov eax, 1
cmp dword [esp + 0x14], eax
jne 0x10072978
mov eax, 3
mov ecx, dword [ebx]
push ebp
push ecx
push esi
push eax
mov eax, edi
call fcn.10039af0
add esp, 0x10
test eax, eax
jne 0x10072ca2
mov ebp, dword [esp + 0x78]
test ebp, ebp
jne 0x100729df
push ebp
xor ecx, ecx
mov eax, edi
call fcn.1002f8b0
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x78], ebp
je 0x10072ca2
movsx eax, word [ebx + 0x26]
mov ecx, dword [edi]
lea edx, [eax + eax*2]
mov eax, dword [ebx + 4]
mov ebx, dword [eax + edx*8 - 0x18]
push ecx
call fcn.1002b420
mov edx, dword [ebp + 4]
mov cl, byte [esp + 0x8c]
mov dword [edx + 4], eax
mov eax, dword [ebp + 4]
add esp, 4
mov byte [eax + 0xc], cl
mov eax, dword [ebp]
test eax, eax
mov ebx, dword [esp + 0x2c]
jle 0x10072a0a
mov ebp, dword [ebp + 4]
mov edx, eax
mov eax, dword [ebp]
test eax, eax
je 0x10072a02
mov ecx, dword [eax + 8]
call fcn.10016110
lea ebx, [ebx + eax + 1]
add ebp, 0x18
sub edx, 1
jne 0x100729ef
mov ecx, esi
call fcn.10016110
mov edi, eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10072a21
movzx eax, word [eax + 0x32]
jmp 0x10072a26
mov eax, 1
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
lea ecx, [edi + ebx + 1]
mov ebx, dword [esp + 0x7c]
movzx edx, word [ebx]
add dx, ax
push edx
mov edx, esi
call fcn.10029930
add esp, 8
cmp byte [esi + 0x40], 0
mov ebp, eax
jne 0x10072c93
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov dword [ebp], eax
mov edx, dword [ebp]
lea eax, [eax + edi + 1]
add edi, 1
push edi
push ecx
push edx
mov dword [esp + 0x2c], eax
call fcn.10008750
mov eax, dword [esp + 0x88]
xor ecx, ecx
add esp, 0xc
test eax, eax
setne cl
mov edi, dword [esp + 0x1c]
xor edx, edx
mov byte [ebp + 0x36], al
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0xc], edi
and ecx, 1
add ecx, ecx
add ecx, ecx
add ecx, ecx
cmp dword [esp + 0x28], edx
sete dl
and eax, 0xfffffff4
and edx, 3
or ecx, edx
mov edx, dword [esp + 0x3c]
or ecx, eax
mov dword [ebp + 0x38], ecx
mov ecx, dword [esi + 0x10]
mov eax, dword [edx + ecx + 0xc]
mov esi, dword [esp + 0x84]
test esi, esi
mov dword [ebp + 0x18], eax
mov cx, word [ebx]
mov word [ebp + 0x32], cx
je 0x10072af0
mov edx, dword [esp + 0x68]
push esi
push 0x10
push edx
xor ebx, ebx
mov eax, edi
call fcn.1004a8b0
add esp, 0xc
mov dword [ebp + 0x24], esi
mov dword [esp + 0x84], ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xc]
cmp byte [ecx + 0x4c], 4
sbb eax, eax
neg eax
sub eax, 1
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 4]
xor ebx, ebx
cmp dword [eax], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], edx
jle 0x10072c30
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
movsx eax, word [edi + 0x26]
mov esi, dword [edi + 4]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x2c], ecx
jle 0x10072b59
mov edx, dword [esi]
mov eax, dword [esp + 0x2c]
push edx
push eax
call sym.SQLite.Interop.dll_sqlite3_stricmp
add esp, 8
test eax, eax
je 0x10072b59
movsx ecx, word [edi + 0x26]
add ebx, 1
add esi, 0x18
cmp ebx, ecx
jl 0x10072b37
movsx eax, word [edi + 0x26]
cmp ebx, eax
jge 0x10072c76
mov eax, dword [esp + 0x30]
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x24]
mov word [edx + eax*2], bx
mov eax, dword [ecx]
test eax, eax
je 0x10072ba6
mov ecx, dword [eax + 8]
call fcn.10016110
mov edx, dword [esp + 0x20]
mov esi, eax
add esi, 1
push esi
push ecx
push edx
call fcn.10008750
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x2c], eax
add eax, esi
mov dword [esp + 0x20], eax
jmp 0x10072bc0
mov ecx, dword [edi + 4]
lea eax, [ebx + ebx*2]
mov eax, dword [ecx + eax*8 + 0x10]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x10072bc0
mov dword [esp + 0x2c], str.BINARY
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x89], 0
jne 0x10072be6
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x68]
call fcn.1004a0f0
test eax, eax
je 0x10072c93
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp + 0x20]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [eax + esi*4], ecx
mov al, byte [edx + 0xc]
and al, byte [esp + 0x44]
mov ecx, dword [ebp + 0x1c]
mov byte [esi + ecx], al
mov eax, dword [edi + 4]
lea edx, [ebx + ebx*2]
cmp byte [eax + edx*8 + 0x14], 0
jne 0x10072c16
and dword [ebp + 0x38], 0xfffffff7
mov ecx, dword [esp + 0x78]
add dword [esp + 0x24], 0x18
add esi, 1
cmp esi, dword [ecx]
mov dword [esp + 0x30], esi
jl 0x10072b1f
mov ebx, esi
mov edi, dword [esp + 0x38]
test edi, edi
je 0x10072d21
xor esi, esi
cmp word [edi + 0x32], si
jbe 0x10072d34
jmp 0x10072c50
mov ecx, dword [edi + 4]
movsx edx, word [ecx + esi*2]
movzx eax, word [ebp + 0x32]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x44], edx
call fcn.10012520
test eax, eax
je 0x10072ce9
add word [ebp + 0x34], 0xffff
jmp 0x10072d10
mov edx, dword [esp + 0x2c]
mov eax, dword [edi]
mov edi, dword [esp + 0x68]
push edx
push eax
push str.table__s_has_no_column_named__s
call fcn.10030a70
add esp, 0xc
mov byte [edi + 0x11], 1
test ebp, ebp
je 0x10072ca2
mov edi, dword [esp + 0x18]
mov eax, ebp
call fcn.1002f0f0
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x18]
push ecx
push esi
call fcn.1002cb00
mov edx, dword [esp + 0x80]
push edx
push esi
call fcn.1002f840
mov eax, dword [esp + 0x84]
push eax
call fcn.100267c0
mov eax, dword [esp + 0x48]
add esp, 0x14
mov ecx, esi
call fcn.10021de0
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov eax, dword [ebp + 4]
mov dx, word [esp + 0x44]
mov word [eax + ebx*2], dx
mov eax, dword [edi + 0x20]
mov edx, dword [eax + esi*4]
mov ecx, dword [ebp + 0x20]
mov dword [ecx + ebx*4], edx
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp + 0x1c]
mov dl, byte [esi + eax]
mov byte [ebx + ecx], dl
add ebx, 1
movzx eax, word [edi + 0x32]
add esi, 1
cmp esi, eax
jl 0x10072c50
jmp 0x10072d34
mov ecx, dword [ebp + 4]
mov word [ecx + ebx*2], 0xffff
mov edx, dword [ebp + 0x20]
mov dword [edx + ebx*4], str.BINARY
mov esi, ebp
call fcn.100123f0
mov esi, dword [esp + 0x68]
cmp dword [esi + 0x1e4], 0
jne 0x10072d4f
mov edi, ebp
call fcn.1001a4e0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x1e4]
jne 0x10072dce
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x10072dce
movzx eax, word [ebx + 0x32]
movzx ecx, word [ebp + 0x32]
cmp ax, cx
jne 0x10072dc7
movzx eax, ax
xor esi, esi
test eax, eax
mov dword [esp + 0x38], eax
jle 0x10072dc1
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 0x10072dc1
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 0x10072db3
push ecx
push eax
call sym.SQLite.Interop.dll_sqlite3_stricmp
add esp, 8
test eax, eax
jne 0x10072dc1
mov edx, dword [esp + 0x44]
movzx eax, word [ebx + 0x32]
add esi, 1
add edi, 2
cmp esi, eax
jl 0x10072d88
cmp esi, dword [esp + 0x38]
je 0x10072e04
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x10072d62
mov esi, dword [esp + 0x18]
cmp byte [esi + 0x89], 0
je 0x10072e62
mov ecx, dword [ebp]
push ebp
call fcn.10016110
push ecx
mov ecx, dword [ebp + 0x18]
add ecx, 0x18
call fcn.1002b1e0
add esp, 8
test eax, eax
je 0x10072e43
mov byte [esi + 0x40], 1
jmp 0x10072c93
mov al, byte [ebx + 0x36]
mov cl, byte [ebp + 0x36]
cmp al, cl
je 0x10072c93
cmp al, 0xa
je 0x10072e2e
cmp cl, 0xa
je 0x10072e2e
mov edi, dword [esp + 0x68]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.10030a70
add esp, 8
cmp byte [ebx + 0x36], 0xa
jne 0x10072c93
mov cl, byte [ebp + 0x36]
mov byte [ebx + 0x36], cl
jmp 0x10072c93
or dword [esi + 0x18], 2
cmp dword [esp + 0x74], 0
je 0x10072fa9
mov edx, esi
mov eax, dword [edx + 0x84]
mov dword [ebp + 0x2c], eax
jmp 0x10072fa9
mov ecx, dword [esp + 0x68]
cmp dword [ecx + 0x40], 0
jne 0x10072fa9
mov edx, dword [esp + 0x1c]
test byte [edx + 0x2c], 0x20
je 0x10072e85
cmp dword [esp + 0x74], 0
je 0x10072fa9
mov eax, ecx
add dword [eax + 0x48], 1
mov edi, dword [eax + 0x48]
call fcn.100389a0
test eax, eax
mov dword [esp + 0x38], eax
je 0x10072c93
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x68]
push 1
mov ecx, esi
mov edx, ebx
call fcn.100723c0
add esp, 4
push edi
push esi
mov esi, dword [esp + 0x40]
push 0x75
call fcn.10035eb0
add esp, 0xc
cmp dword [esp + 0x80], 0
je 0x10072f16
mov eax, dword [ebx + 0x1fc]
add eax, dword [ebx + 0x1f8]
mov ecx, dword [esp + 0x28]
sub eax, dword [ecx]
mov ecx, dword [ecx]
cmp byte [ecx + eax - 1], 0x3b
jne 0x10072eed
sub eax, 1
cmp dword [esp + 0x7c], 0
mov edx, 0x100af3b4
je 0x10072efe
mov edx, str._UNIQUE
mov esi, dword [esp + 0x18]
push ecx
push eax
push edx
push str.CREATE_s_INDEX__.s
call fcn.10030b20
add esp, 0x10
mov esi, eax
jmp 0x10072f18
xor esi, esi
cmp dword [esp + 0x14], 1
mov eax, str.sqlite_temp_master
je 0x10072f29
mov eax, str.sqlite_master
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov ecx, dword [ebp]
push esi
push edi
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x4c]
push eax
mov eax, dword [edx + 0x10]
mov edx, dword [ecx + eax]
push edx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
call fcn.1002f150
mov ecx, dword [esp + 0x34]
add esp, 0x1c
mov eax, esi
call fcn.10021de0
cmp dword [esp + 0x74], 0
je 0x10072fa9
push edi
mov edi, ebx
push ebp
mov eax, edi
call fcn.1005e350
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.10039560
mov eax, dword [ebp]
mov esi, dword [esp + 0x24]
add esp, 0xc
push eax
push str.name_q_AND_typeindex
call fcn.10030b20
mov esi, dword [esp + 0x40]
push eax
push ebx
call fcn.10035d60
push 0
push 0x8b
call fcn.10035f10
add esp, 0x18
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x89], 0
jne 0x10072fc1
cmp dword [esp + 0x74], 0
jne 0x10072c93
mov ecx, dword [esp + 0x1c]
mov edx, 5
cmp dword [esp + 0x7c], edx
jne 0x10073004
mov eax, dword [ecx + 8]
test eax, eax
je 0x10073004
cmp byte [eax + 0x36], dl
je 0x10073004
cmp dword [eax + 0x14], 0
je 0x10072ff2
mov ecx, dword [eax + 0x14]
cmp byte [ecx + 0x36], dl
je 0x10072ff2
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x10072fe2
mov edx, dword [eax + 0x14]
mov dword [ebp + 0x14], edx
mov dword [eax + 0x14], ebp
mov dword [esp + 0x40], ebp
jmp 0x10072ca2
mov eax, dword [ecx + 8]
mov dword [ebp + 0x14], eax
mov dword [ecx + 8], ebp
mov dword [esp + 0x40], ebp
jmp 0x10072ca2