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

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
push ebx
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x68]
push esi
push edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
cmp byte [eax + 0x40], cl
jne 0x10132e7a
mov ecx, dword [esp + 0x68]
cmp byte [ecx + 0x1d5], 0
jne 0x10132e7a
mov esi, eax
cmp byte [esi + 0x89], 0
mov edi, ecx
jne 0x10132839
lea edx, [edi + 4]
push edx
call fcn.10144370
add esp, 4
test eax, eax
je 0x10132839
inc dword [edi + 0x44]
mov dword [edi + 0xc], eax
jmp 0x10132e7a
cmp dword [esp + 0x74], 0
je 0x10132909
mov edx, dword [esp + 0x6c]
push edi
lea ecx, [esp + 0x2c]
mov eax, ebp
call fcn.1012fd60
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jl 0x10132e7a
cmp byte [esi + 0x89], 0
mov edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x68]
jne 0x10132898
mov eax, edi
call fcn.101350d0
cmp dword [ebp + 4], 0
jne 0x10132898
test eax, eax
je 0x10132898
mov ecx, dword [esi + 0x10]
mov edx, dword [eax + 0x44]
cmp edx, dword [ecx + 0x1c]
jne 0x10132898
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
push eax
push str.index
mov ecx, ebx
lea eax, [esp + 0x50]
call fcn.1012e1f0
mov ecx, eax
push edi
push ecx
call fcn.1012e230
add edi, 8
push edi
push 0
mov eax, ebx
call fcn.1012efe0
add esp, 0x18
mov dword [esp + 0x18], eax
test eax, eax
je 0x10132e7a
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, esi
cmp eax, 1
jne 0x1013292d
mov edx, dword [ebx + 0x10]
mov ecx, dword [edx + 0x1c]
cmp ecx, dword [edi + 0x44]
je 0x1013292d
mov edx, dword [edi]
mov edi, dword [esp + 0x68]
push edx
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
call fcn.100fe0b0
add esp, 8
jmp 0x10132e7a
mov edi, dword [edi + 0x1fc]
mov dword [esp + 0x18], edi
test edi, edi
je 0x10132e7a
mov ebx, dword [esp + 0x14]
mov esi, dword [edi + 0x44]
mov ecx, ebx
call fcn.101446d0
mov dword [esp + 0x1c], eax
mov ecx, dword [ebx + 0x10]
mov esi, dword [edi]
shl eax, 4
push 7
add ecx, eax
push str.sqlite_
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], ecx
call fcn.100fe1f0
add esp, 0xc
test eax, eax
jne 0x10132981
push 9
lea eax, [esi + 7]
push str.altertab_
push eax
call fcn.100fe1f0
add esp, 0xc
test eax, eax
je 0x10132981
mov edi, dword [esp + 0x68]
push esi
push str.table__s_may_not_be_indexed
call fcn.100fe0b0
add esp, 8
jmp 0x10132e7a
cmp dword [edi + 0xc], 0
je 0x1013299d
mov edi, dword [esp + 0x68]
push str.views_may_not_be_indexed
call fcn.100fe0b0
add esp, 4
jmp 0x10132e7a
test byte [edi + 0x2c], 0x10
je 0x101329b9
mov edi, dword [esp + 0x68]
push str.virtual_tables_may_not_be_indexed
call fcn.100fe0b0
add esp, 4
jmp 0x10132e7a
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10132a6c
push ebx
call fcn.1012fbb0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x10132e7a
mov esi, eax
mov eax, dword [esp + 0x68]
call fcn.1012fdf0
test eax, eax
jne 0x10132e7a
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x89], al
jne 0x10132a1f
push eax
push esi
push edi
call fcn.1012ee50
add esp, 0xc
test eax, eax
je 0x10132a1f
mov edi, dword [esp + 0x68]
push esi
push str.there_is_already_a_table_named__s
call fcn.100fe0b0
add esp, 8
jmp 0x10132e7a
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push edx
push esi
mov ecx, edi
call fcn.1012f040
add esp, 8
test eax, eax
je 0x10132a9d
cmp dword [esp + 0x8c], 0
jne 0x10132a56
mov edi, dword [esp + 0x68]
push esi
push str.index__s_already_exists
call fcn.100fe0b0
add esp, 8
jmp 0x10132e7a
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x6c]
call fcn.10134100
add esp, 4
jmp 0x10132e7a
mov eax, dword [edi + 8]
mov ecx, 1
test eax, eax
je 0x10132a80
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x10132a78
push ecx
push esi
push str.sqlite_autoindex__s__d
mov esi, ebx
call fcn.100fd5c0
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
je 0x10132e7a
cmp dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx]
mov eax, str.sqlite_temp_master
je 0x10132ab4
mov eax, str.sqlite_master
push esi
push 0
push eax
mov eax, dword [esp + 0x74]
push 0x12
call fcn.1012e7b0
add esp, 0x10
test eax, eax
jne 0x10132e7a
mov eax, 1
cmp dword [esp + 0x1c], eax
jne 0x10132ade
mov eax, 3
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
mov edx, dword [esp + 0x20]
push esi
push ecx
push edx
push eax
mov eax, dword [esp + 0x78]
call fcn.1012e7b0
add esp, 0x10
test eax, eax
jne 0x10132e7a
mov esi, dword [esp + 0x78]
test esi, esi
jne 0x10132b65
mov ecx, dword [esp + 0x18]
movsx eax, word [ecx + 0x26]
mov ecx, dword [ecx + 4]
lea eax, [eax + eax*2]
mov ecx, dword [ecx + eax*8 - 0x18]
mov dword [esp + 0x40], ecx
call fcn.100fe020
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x68]
push esi
xor ecx, ecx
call fcn.101271f0
add esp, 4
mov dword [esp + 0x78], eax
test eax, eax
je 0x10132e7a
mov edx, dword [esp + 0x68]
push esi
mov esi, eax
push edx
lea edx, [esp + 0x48]
mov ecx, esi
call fcn.101272a0
mov eax, dword [esi + 8]
mov cl, byte [esp + 0x90]
add esp, 8
mov byte [eax + 0xc], cl
mov ebx, dword [esi]
test ebx, ebx
jle 0x10132b92
mov edx, dword [esi + 8]
mov esi, ebx
mov eax, dword [edx]
test eax, eax
je 0x10132b8a
mov ecx, dword [eax + 8]
call fcn.100fe020
mov ecx, dword [esp + 0x30]
lea eax, [ecx + eax + 1]
mov dword [esp + 0x30], eax
add edx, 0x18
sub esi, 1
jne 0x10132b70
mov ecx, dword [esp + 0x20]
call fcn.100fe020
mov esi, eax
mov eax, dword [esp + 0x30]
lea ecx, [ebx*4 + 0xb]
and ecx, 0xfffffff8
add ecx, esi
lea edx, [ebx + ebx*8]
add edx, ecx
lea edi, [edx + eax + 0x39]
mov eax, dword [esp + 0x14]
call fcn.100fc290
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x40], 0
mov ebp, eax
jne 0x10132e52
mov ecx, dword [esp + 0x20]
lea edx, [ebx*4 + 8]
lea eax, [ebp + 0x38]
mov dword [ebp + 8], eax
and edx, 0xfffffff8
add eax, edx
mov dword [ebp + 0x20], eax
lea eax, [eax + ebx*4]
mov dword [ebp + 4], eax
lea eax, [eax + ebx*4]
add ebx, eax
mov dword [ebp + 0x1c], eax
lea eax, [ebx + esi + 1]
inc esi
push esi
push ecx
push ebx
mov dword [ebp], ebx
mov dword [esp + 0x40], eax
call fcn.10184640
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov dword [ebp + 0xc], edi
mov dx, word [eax]
mov word [ebp + 0x2e], dx
xor edx, edx
add esp, 0xc
cmp ecx, 2
sete dl
mov byte [ebp + 0x30], cl
xor ecx, ecx
mov esi, dword [esp + 0x84]
and edx, 1
add edx, edx
add edx, edx
add edx, edx
cmp dword [esp + 0x28], ecx
sete cl
and ecx, 3
or edx, ecx
mov ecx, dword [ebp + 0x34]
and ecx, 0xfffffff4
or edx, ecx
mov dword [ebp + 0x34], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x10]
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + ecx + 0xc]
mov dword [ebp + 0x18], ecx
test esi, esi
je 0x10132c98
mov edx, dword [esp + 0x68]
push esi
push 0x10
push edx
xor ebx, ebx
mov eax, edi
call fcn.10125bc0
mov eax, dword [esp + 0x84]
add esp, 0xc
mov dword [ebp + 0x24], esi
mov dword [esp + 0x84], ebx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0xc]
cmp byte [edx + 0x4c], 4
mov dword [esp + 0x38], 0
sbb ecx, ecx
neg ecx
dec ecx
cmp dword [eax], 0
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
jle 0x10132dd0
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
mov esi, dword [edi + 4]
mov dword [esp + 0x30], eax
movsx eax, word [edi + 0x26]
xor ebx, ebx
test eax, eax
jle 0x10132d00
lea esp, [esp]
mov ecx, dword [esi]
mov edx, dword [esp + 0x30]
push ecx
push edx
call fcn.100fe1a0
add esp, 8
test eax, eax
je 0x10132d00
movsx eax, word [edi + 0x26]
inc ebx
add esi, 0x18
cmp ebx, eax
jl 0x10132ce0
movsx eax, word [edi + 0x26]
cmp ebx, eax
jge 0x10132e35
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov dword [ecx + edx*4], ebx
mov eax, dword [eax]
test eax, eax
je 0x10132d4a
mov ecx, dword [eax + 8]
call fcn.100fe020
mov esi, eax
inc esi
push esi
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.10184640
mov eax, dword [esp + 0x40]
add esp, 0xc
mov dword [esp + 0x30], eax
add eax, esi
mov dword [esp + 0x34], eax
jmp 0x10132d64
mov eax, dword [edi + 4]
lea edx, [ebx + ebx*2]
mov eax, dword [eax + edx*8 + 0x10]
mov dword [esp + 0x30], eax
test eax, eax
jne 0x10132d64
mov dword [esp + 0x30], str.BINARY
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x89], 0
jne 0x10132d8a
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x68]
call fcn.101309c0
test eax, eax
je 0x10132e52
mov edi, dword [esp + 0x18]
mov edx, dword [ebp + 0x20]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov dword [edx + esi*4], eax
mov dl, byte [ecx + 0xc]
and dl, byte [esp + 0x40]
mov eax, dword [ebp + 0x1c]
mov byte [esi + eax], dl
mov edx, dword [edi + 4]
lea ecx, [ebx + ebx*2]
cmp byte [edx + ecx*8 + 0x14], 0
jne 0x10132dba
and dword [ebp + 0x34], 0xfffffff7
mov eax, dword [esp + 0x78]
add dword [esp + 0x24], 0x18
inc esi
cmp esi, dword [eax]
mov dword [esp + 0x38], esi
jl 0x10132cc4
mov edx, ebp
call fcn.10133220
mov esi, dword [esp + 0x68]
cmp dword [esi + 0x1fc], 0
jne 0x10132deb
mov ebx, ebp
call fcn.10130e00
cmp edi, dword [esi + 0x1fc]
jne 0x10132f46
mov esi, dword [edi + 8]
test esi, esi
je 0x10132f46
movzx eax, word [esi + 0x2e]
movzx ecx, word [ebp + 0x2e]
cmp ax, cx
jne 0x10132f3b
movzx eax, ax
xor ebx, ebx
mov dword [esp + 0x38], eax
test eax, eax
jle 0x10132f35
mov edi, dword [ebp + 4]
mov ecx, dword [esi + 4]
sub ecx, edi
mov dword [esp + 0x40], ecx
jmp 0x10132f04
mov ecx, dword [esp + 0x30]
mov edx, dword [edi]
mov edi, dword [esp + 0x68]
push ecx
push edx
push str.table__s_has_no_column_named__s
call fcn.100fe0b0
add esp, 0xc
mov byte [edi + 0x11], 1
test ebp, ebp
je 0x10132e7a
mov ecx, dword [ebp + 0x24]
mov esi, dword [esp + 0x14]
push ecx
push esi
call fcn.10126860
mov eax, dword [ebp + 0x10]
add esp, 8
mov ecx, esi
call fcn.100fc0b0
mov eax, ebp
mov ecx, esi
call fcn.100fc0b0
mov edx, dword [esp + 0x84]
mov esi, dword [esp + 0x14]
push edx
push esi
call fcn.10126860
mov eax, dword [esp + 0x80]
push eax
push esi
call fcn.10127390
mov ecx, dword [esp + 0x84]
push ecx
mov eax, esi
call fcn.10133960
mov eax, dword [esp + 0x34]
add esp, 0x14
test eax, eax
je 0x1013320b
cmp dword [esi + 0x200], 0
je 0x101331d2
cmp eax, dword [esi + 0x10c]
jb 0x101331b4
cmp eax, dword [esi + 0x110]
jae 0x101331b4
movzx eax, word [esi + 0xf0]
mov esi, dword [esi + 0x200]
add dword [esi], eax
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov ecx, dword [esp + 0x40]
lea eax, [edi + ebx*4]
mov ecx, dword [ecx + eax]
cmp ecx, dword [eax]
jne 0x10132f35
mov edx, dword [esi + 0x20]
mov ecx, dword [ebp + 0x20]
mov eax, dword [edx + ebx*4]
mov ecx, dword [ecx + ebx*4]
cmp eax, ecx
je 0x10132f2c
push ecx
push eax
call fcn.100fe1a0
add esp, 8
test eax, eax
jne 0x10132f35
movzx edx, word [esi + 0x2e]
inc ebx
cmp ebx, edx
jl 0x10132f00
cmp ebx, dword [esp + 0x38]
je 0x10132f7c
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x10132e02
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x89], 0
je 0x10132fda
mov ecx, dword [ebp]
push ebp
call fcn.100fe020
push ecx
mov ecx, dword [ebp + 0x18]
add ecx, 0x18
call fcn.100ff530
add esp, 8
test eax, eax
je 0x10132fbb
mov byte [esi + 0x40], 1
jmp 0x10132e52
mov al, byte [esi + 0x30]
mov cl, byte [ebp + 0x30]
cmp al, cl
je 0x10132e52
cmp al, 0xa
je 0x10132fa6
cmp cl, 0xa
je 0x10132fa6
mov edi, dword [esp + 0x68]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.100fe0b0
add esp, 8
cmp byte [esi + 0x30], 0xa
jne 0x10132e52
mov al, byte [ebp + 0x30]
mov byte [esi + 0x30], al
jmp 0x10132e52
or dword [esi + 0x18], 2
cmp dword [esp + 0x74], 0
je 0x10133145
mov ecx, esi
mov edx, dword [ecx + 0x84]
mov dword [ebp + 0x28], edx
jmp 0x10133145
mov eax, dword [esp + 0x68]
cmp dword [eax + 0x44], 0
jne 0x10133145
mov esi, eax
inc dword [esi + 0x4c]
mov ecx, dword [esi + 0x4c]
mov edi, esi
mov dword [esp + 0x38], ecx
call fcn.10147740
mov ebx, eax
mov dword [esp + 0x34], ebx
test ebx, ebx
je 0x10132e52
mov edi, dword [esp + 0x1c]
push 1
mov eax, esi
call fcn.10134250
mov edx, dword [esp + 0x3c]
add esp, 4
push 0
push edx
push edi
push 0x6e
mov eax, ebx
call fcn.101169d0
add esp, 0x10
cmp dword [esp + 0x80], 0
je 0x1013307c
mov eax, dword [esi + 0x214]
add eax, dword [esi + 0x210]
mov ecx, dword [esp + 0x28]
sub eax, dword [ecx]
mov ecx, dword [ecx]
cmp byte [ecx + eax - 1], 0x3b
jne 0x10133053
dec eax
cmp dword [esp + 0x7c], 0
mov edx, 0x101db5c4
je 0x10133064
mov edx, str._UNIQUE
mov esi, dword [esp + 0x14]
push ecx
push eax
push edx
push str.CREATE_s_INDEX__.s
call fcn.100fd5c0
add esp, 0x10
mov edi, eax
jmp 0x10133082
mov esi, dword [esp + 0x14]
xor edi, edi
cmp dword [esp + 0x1c], 1
mov eax, str.sqlite_temp_master
je 0x10133093
mov eax, str.sqlite_master
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x68]
push edi
push ecx
mov ecx, dword [edx]
mov edx, dword [ebp]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
mov eax, dword [esi + 0x10]
mov edx, dword [ecx + eax]
push edx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
call fcn.1012ed90
add esp, 0x1c
mov eax, edi
mov ecx, esi
call fcn.100fc0b0
cmp dword [esp + 0x74], 0
je 0x10133145
mov eax, dword [esp + 0x38]
push eax
push ebp
mov esi, ebx
push esi
call fcn.101322d0
mov ebx, dword [esp + 0x28]
add esp, 0xc
call fcn.10130a30
mov ecx, dword [ebp]
mov esi, dword [esp + 0x14]
push ecx
push str.name_q_AND_typeindex
call fcn.100fd5c0
mov esi, dword [esp + 0x3c]
push eax
push ebx
call fcn.10116af0
mov ebx, dword [esi + 0x1c]
add esp, 0x10
cmp dword [esi + 0x20], ebx
jg 0x1013311e
mov edi, esi
call fcn.10116950
test eax, eax
jne 0x10133145
mov eax, dword [esp + 0x34]
inc dword [eax + 0x1c]
mov eax, dword [eax + 4]
xor ecx, ecx
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x84
mov byte [eax + 3], cl
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x89], 0
jne 0x1013315d
cmp dword [esp + 0x74], 0
jne 0x10132e52
mov ecx, dword [esp + 0x18]
mov edx, 5
cmp dword [esp + 0x7c], edx
jne 0x101331a2
mov eax, dword [ecx + 8]
test eax, eax
je 0x101331a2
cmp byte [eax + 0x30], dl
je 0x101331a2
cmp dword [eax + 0x14], 0
je 0x10133190
mov edi, edi
mov ecx, dword [eax + 0x14]
cmp byte [ecx + 0x30], dl
je 0x10133190
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x10133180
mov edx, dword [eax + 0x14]
mov dword [ebp + 0x14], edx
mov dword [eax + 0x14], ebp
mov dword [esp + 0x2c], ebp
jmp 0x10132e7a
mov eax, dword [ecx + 8]
mov dword [ebp + 0x14], eax
mov dword [ecx + 8], ebp
mov dword [esp + 0x2c], ebp
jmp 0x10132e7a
push eax
call dword [0x10208e34]
mov esi, dword [esi + 0x200]
add esp, 4
add dword [esi], eax
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
cmp eax, dword [esi + 0x10c]
jb 0x10133202
cmp eax, dword [esi + 0x110]
jae 0x10133202
mov edx, dword [esi + 0x108]
mov dword [eax], edx
dec dword [esi + 0xf4]
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
push eax
call fcn.100fc010
add esp, 4
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret