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

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x58]
mov ebp, dword [edi]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
cmp byte [ebp + 0x1e], bl
jne 0x100801f7
cmp byte [edi + 0x204], bl
jne 0x100801f7
cmp byte [ebp + 0x7c], bl
jne 0x1007f97a
lea eax, [edi + 8]
push eax
mov esi, ebp
call fcn.1007a4d0
add esp, 4
cmp eax, ebx
je 0x1007f97a
inc dword [edi + 0x40]
mov dword [edi + 4], eax
jmp 0x100801f7
cmp dword [esp + 0x64], ebx
je 0x1007fa37
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
lea ecx, [esp + 0x1c]
mov eax, esi
call fcn.1004b1a0
mov dword [esp + 0x14], eax
test eax, eax
jl 0x100801f7
cmp byte [ebp + 0x7c], 0
jne 0x1007f9d5
mov ecx, dword [esp + 0x64]
mov eax, ebx
call fcn.1007b8f0
cmp dword [esi + 4], 0
jne 0x1007f9d5
test eax, eax
je 0x1007f9d5
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x44]
cmp edx, dword [ecx + 0x1c]
jne 0x1007f9d5
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push str.index
mov esi, ebx
lea ecx, [esp + 0x4c]
call fcn.1003d010
add esp, 8
test eax, eax
je 0x1007fa07
mov ecx, dword [esp + 0x64]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.10051d90
add esp, 8
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 8]
push ecx
push 0
mov edi, esi
call fcn.1007b080
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x100801f7
cmp byte [ebp + 0x1e], 0
je 0x1007fa57
jmp 0x100801f7
mov ebx, dword [edi + 0x1f0]
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x100801f7
mov esi, dword [ebx + 0x44]
mov ecx, ebp
call fcn.1003e1b0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov esi, dword [ebp + 8]
mov edi, dword [ebx + 4]
shl eax, 4
push 7
add esi, eax
push str.sqlite_
push edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], esi
call fcn.10036450
add esp, 0xc
test eax, eax
jne 0x1007fac5
mov eax, 9
mov ecx, str.altertab_
lea edx, [edi + 7]
nop
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1007faaa
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x1007fa90
mov al, byte [ecx]
cmp al, byte [edx]
je 0x1007fac1
mov esi, dword [esp + 0x58]
push edi
push str.table__s_may_not_be_indexed
call fcn.10048140
add esp, 8
jmp 0x100801f7
mov esi, dword [esp + 0x30]
cmp dword [ebx + 0x1c], 0
je 0x1007fade
mov esi, dword [esp + 0x58]
push str.views_may_not_be_indexed
call fcn.10048140
jmp 0x100801f4
test byte [ebx + 0x22], 0x10
je 0x1007faf7
mov esi, dword [esp + 0x58]
push str.virtual_tables_may_not_be_indexed
call fcn.10048140
jmp 0x100801f4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1007fb8a
push ebp
call fcn.10044fb0
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
je 0x100801f7
mov eax, dword [esp + 0x58]
call fcn.1004b200
test eax, eax
jne 0x100801f7
cmp byte [ebp + 0x7c], al
jne 0x1007fb56
push eax
push edi
push ebp
call fcn.1003d0a0
add esp, 0xc
test eax, eax
je 0x1007fb56
mov esi, dword [esp + 0x58]
push edi
push str.there_is_already_a_table_named__s
call fcn.10048140
add esp, 8
jmp 0x100801f7
mov ecx, dword [esi]
push ecx
push edi
mov ecx, ebp
call fcn.1003d1a0
add esp, 8
test eax, eax
je 0x1007fbbd
cmp dword [esp + 0x7c], 0
jne 0x100801f7
mov esi, dword [esp + 0x58]
push edi
push str.index__s_already_exists
call fcn.10048140
add esp, 8
jmp 0x100801f7
mov eax, dword [ebx + 0x14]
mov ecx, 1
test eax, eax
je 0x1007fb9e
mov eax, dword [eax + 0x20]
inc ecx
test eax, eax
jne 0x1007fb96
push ecx
push edi
push str.sqlite_autoindex__s__d
mov edi, ebp
call fcn.10047f80
mov edi, eax
add esp, 0xc
mov dword [esp + 0x20], edi
test edi, edi
je 0x100801f7
cmp dword [esp + 0x14], 1
mov ebp, dword [esi]
mov eax, str.sqlite_temp_master
je 0x1007fbd0
mov eax, str.sqlite_master
mov esi, dword [esp + 0x58]
push ebp
push 0
push eax
push 0x12
mov eax, esi
call fcn.1004ae20
add esp, 0x10
test eax, eax
jne 0x100801f7
mov eax, 1
cmp dword [esp + 0x14], eax
jne 0x1007fbfc
mov eax, 3
mov edx, dword [ebx + 4]
push ebp
push edx
push edi
push eax
mov eax, esi
call fcn.1004ae20
add esp, 0x10
test eax, eax
jne 0x100801f7
cmp dword [esp + 0x68], eax
jne 0x1007fc6c
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
lea eax, [eax + eax*2]
mov ecx, dword [ecx + eax*8 - 0x18]
mov dword [esp + 0x3c], ecx
call fcn.100362e0
mov dword [esp + 0x40], eax
xor edi, edi
xor ecx, ecx
mov eax, esi
call fcn.1004a550
mov edi, eax
mov dword [esp + 0x68], edi
test edi, edi
je 0x100801f7
push 0
push esi
lea edx, [esp + 0x44]
mov ecx, edi
call fcn.100445b0
mov edx, dword [edi + 0xc]
mov al, byte [esp + 0x80]
add esp, 8
mov byte [edx + 0xc], al
mov eax, dword [esp + 0x68]
mov esi, dword [eax]
test esi, esi
jle 0x1007fca4
mov edx, dword [eax + 0xc]
mov ebx, dword [esp + 0x24]
mov edi, esi
nop
mov eax, dword [edx]
test eax, eax
je 0x1007fc98
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1007fc98
mov ecx, dword [eax]
call fcn.100362e0
lea ebx, [ebx + eax + 1]
add edx, 0x14
sub edi, 1
jne 0x1007fc80
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x20]
call fcn.100362e0
mov edx, dword [esp + 0x24]
mov ecx, esi
imul ecx, ecx, 0xd
mov ebx, eax
mov eax, dword [esp + 0x10]
add ecx, ebx
lea edi, [ecx + edx + 0x39]
call fcn.100470a0
mov ebp, eax
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x1e], 0
jne 0x1007fec2
mov edx, dword [esp + 0x20]
lea eax, [ebp + 0x34]
mov dword [ebp + 0x2c], eax
lea eax, [eax + esi*4]
mov dword [ebp + 8], eax
lea eax, [eax + esi*4]
mov dword [ebp + 0xc], eax
lea eax, [eax + esi*4 + 4]
mov dword [ebp + 0x28], eax
add eax, esi
lea ecx, [eax + ebx + 1]
inc ebx
push ebx
push edx
push eax
mov dword [ebp], eax
mov dword [esp + 0x34], ecx
call fcn.100ae5b0
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x24]
mov dl, byte [esp + 0x78]
mov esi, dword [esp + 0x1c]
mov dword [ebp + 0x10], edi
mov ecx, dword [eax]
mov dword [ebp + 4], ecx
add esp, 0xc
cmp dword [esp + 0x1c], 0
mov byte [ebp + 0x18], dl
sete cl
mov byte [ebp + 0x19], cl
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + edx + 0xc]
mov ecx, dword [esp + 0x30]
mov dword [ebp + 0x24], edx
mov edx, dword [ecx + 0xc]
cmp byte [edx + 0x48], 4
sbb ecx, ecx
neg ecx
dec ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0xc]
xor ebx, ebx
cmp dword [eax], ebx
mov dword [esp + 0x24], ecx
jle 0x1007fe57
jmp 0x1007fd70
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
xor edi, edi
mov dword [esp + 0x38], eax
test eax, eax
jle 0x1007fdac
nop
mov edx, dword [esi]
mov ecx, dword [esp + 0x30]
call fcn.10036400
test eax, eax
je 0x1007fdac
mov ecx, dword [esp + 0x18]
inc edi
add esi, 0x18
cmp edi, dword [ecx + 0xc]
jl 0x1007fd90
cmp edi, dword [esp + 0x38]
jge 0x1007fea4
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x24]
mov dword [edx + ebx*4], edi
mov eax, dword [eax]
test eax, eax
je 0x1007fdec
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1007fdec
mov ecx, dword [eax]
call fcn.100362e0
mov esi, dword [esp + 0x28]
mov edi, eax
inc edi
push edi
push ecx
push esi
call fcn.100ae5b0
add esp, 0xc
add dword [esp + 0x28], edi
jmp 0x1007fe07
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x10]
lea ecx, [edi + edi*2]
mov esi, dword [eax + ecx*8 + 0x10]
test esi, esi
jne 0x1007fe07
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x2c]
mov esi, dword [edx]
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x7c], 0
jne 0x1007fe24
mov ecx, dword [esp + 0x58]
mov eax, esi
call fcn.10064bd0
test eax, eax
je 0x1007fec2
mov ecx, dword [ebp + 0x2c]
mov dword [ecx + ebx*4], esi
mov esi, dword [esp + 0x24]
mov dl, byte [esi + 0xc]
and dl, byte [esp + 0x3c]
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x68]
mov byte [ebx + eax], dl
inc ebx
add esi, 0x14
cmp ebx, dword [ecx]
mov dword [esp + 0x24], esi
jl 0x1007fd70
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov edx, ebp
call fcn.1003d4c0
mov edx, dword [esp + 0x58]
cmp edi, dword [edx + 0x1f0]
jne 0x1007ff55
mov ebx, dword [edi + 0x14]
test ebx, ebx
je 0x1007ff55
lea esp, [esp]
mov eax, dword [ebx + 4]
cmp eax, dword [ebp + 4]
jne 0x1007ff42
xor edi, edi
test eax, eax
jle 0x1007ff3d
mov esi, dword [ebp + 8]
mov ecx, dword [ebx + 8]
sub ecx, esi
mov dword [esp + 0x3c], ecx
jmp 0x1007ff14
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x58]
push edx
push ecx
push str.table__s_has_no_column_named__s
call fcn.10048140
add esp, 0xc
test ebp, ebp
je 0x100801f7
mov eax, dword [ebp + 0x1c]
push eax
call fcn.10036090
mov eax, dword [esp + 0x14]
add esp, 4
cmp ebp, dword [eax + 0xf0]
jb 0x100801ee
cmp ebp, dword [eax + 0xf4]
jae 0x100801ee
mov ecx, dword [eax + 0xec]
mov dword [ebp], ecx
dec dword [eax + 0xe4]
mov dword [eax + 0xec], ebp
jmp 0x100801f7
mov ecx, dword [esp + 0x3c]
lea eax, [esi + edi*4]
mov ecx, dword [ecx + eax]
cmp ecx, dword [eax]
jne 0x1007ff3d
mov edx, dword [ebx + 0x2c]
mov ecx, dword [edx + edi*4]
mov eax, dword [ebp + 0x2c]
mov edx, dword [eax + edi*4]
cmp ecx, edx
je 0x1007ff37
call fcn.10036400
test eax, eax
jne 0x1007ff3d
inc edi
cmp edi, dword [ebx + 4]
jl 0x1007ff10
cmp edi, dword [ebx + 4]
je 0x1007ff80
mov ebx, dword [ebx + 0x20]
test ebx, ebx
jne 0x1007fe80
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp byte [esi + 0x7c], 0
je 0x1007ffd9
mov ecx, dword [ebp]
push ebp
call fcn.100362e0
push ecx
mov ecx, dword [ebp + 0x24]
add ecx, 0x14
call fcn.10041b40
add esp, 8
test eax, eax
je 0x1007ffbf
mov byte [esi + 0x1e], 1
jmp 0x1007fec2
mov al, byte [ebx + 0x18]
mov cl, byte [ebp + 0x18]
cmp al, cl
je 0x1007fec2
cmp al, 0x63
je 0x1007ffaa
cmp cl, 0x63
je 0x1007ffaa
mov esi, dword [esp + 0x58]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.10048140
add esp, 8
cmp byte [ebx + 0x18], 0x63
jne 0x1007fec2
mov cl, byte [ebp + 0x18]
mov byte [ebx + 0x18], cl
jmp 0x1007fec2
or dword [esi + 0xc], 0x10
cmp dword [esp + 0x64], 0
je 0x1008018e
mov edx, dword [esi + 0x78]
mov dword [ebp + 0x14], edx
jmp 0x1008018e
mov edi, dword [esp + 0x58]
inc dword [edi + 0x48]
mov esi, dword [edi + 0x48]
call fcn.1004d6d0
mov ebx, eax
mov dword [esp + 0x28], ebx
test ebx, ebx
je 0x1007fec2
mov ecx, dword [esp + 0x14]
push 1
mov eax, edi
call fcn.1005f280
mov eax, dword [esp + 0x18]
push esi
push eax
push 0x60
mov eax, ebx
call fcn.10043700
add esp, 0x10
cmp dword [esp + 0x70], 0
je 0x10080054
cmp dword [esp + 0x6c], 0
mov eax, 0x100fed19
je 0x1008002d
mov eax, str._UNIQUE
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edi, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x78]
mov edx, dword [edx]
sub edx, dword [ecx]
inc edx
push edx
push eax
push str.CREATE_s_INDEX__.s
call fcn.10047f80
add esp, 0x10
mov edi, eax
jmp 0x10080056
xor edi, edi
cmp dword [esp + 0x14], 1
mov eax, str.sqlite_temp_master
je 0x10080067
mov eax, str.sqlite_master
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp]
mov ebx, dword [esp + 0x58]
push edi
push esi
push edx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [edx + 8]
mov edx, dword [ecx + eax]
push edx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
call fcn.1004aeb0
mov eax, dword [esp + 0x2c]
push edi
push eax
call fcn.10036110
add esp, 0x24
cmp dword [esp + 0x64], 0
je 0x10080186
push esi
push ebp
mov esi, ebx
call fcn.100766c0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.100450a0
mov edx, dword [ebp]
mov edi, dword [esp + 0x1c]
push edx
push str.name_q
call fcn.10047f80
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 0xc]
add esp, 0x14
cmp dword [eax + 0x10], esi
mov ebx, eax
jg 0x100800f8
mov edi, ebx
call fcn.10043580
test eax, eax
je 0x100800f8
mov eax, 1
jmp 0x10080124
mov ecx, dword [ebx + 0x14]
inc dword [ebx + 0xc]
mov edx, dword [esp + 0x14]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax], 0x62
mov byte [eax + 3], cl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebx + 0x6e], cl
mov eax, esi
mov esi, dword [ebx + 0x14]
mov edi, dword [ebx]
test esi, esi
je 0x1008016c
cmp byte [edi + 0x1e], 0
jne 0x1008016c
test eax, eax
jge 0x1008013b
mov eax, dword [ebx + 0xc]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*4 + 0x10]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
call fcn.10043980
mov eax, dword [esp + 0x58]
xor ecx, ecx
mov dword [esi + 0x10], ecx
cmp eax, ecx
jne 0x10080163
mov dword [esi + 0x10], ecx
mov byte [esi + 1], cl
jmp 0x10080178
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xff
jmp 0x10080178
mov ecx, dword [esp + 0x58]
or eax, 0xffffffff
call fcn.10043980
push 0
push 0x77
mov eax, ebx
call fcn.100436b0
add esp, 8
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
cmp byte [esi + 0x7c], 0
jne 0x1008019f
cmp dword [esp + 0x64], 0
jne 0x1007fec2
mov edx, 5
cmp dword [esp + 0x6c], edx
jne 0x100801df
mov eax, dword [edi + 0x14]
test eax, eax
je 0x100801df
cmp byte [eax + 0x18], dl
je 0x100801df
cmp dword [eax + 0x20], 0
je 0x100801d0
lea esp, [esp]
mov ecx, dword [eax + 0x20]
cmp byte [ecx + 0x18], dl
je 0x100801d0
mov eax, ecx
cmp dword [eax + 0x20], 0
jne 0x100801c0
mov ecx, dword [eax + 0x20]
mov dword [ebp + 0x20], ecx
mov dword [eax + 0x20], ebp
mov dword [esp + 0x2c], ebp
jmp 0x100801f7
mov edx, dword [edi + 0x14]
mov dword [ebp + 0x20], edx
mov dword [edi + 0x14], ebp
mov dword [esp + 0x2c], ebp
jmp 0x100801f7
push ebp
call fcn.10036090
add esp, 4
mov ebx, dword [esp + 0x68]
mov esi, dword [esp + 0x10]
call fcn.1003c850
mov edx, dword [esp + 0x64]
push edx
mov eax, esi
call fcn.1003d690
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x1008024b
cmp eax, dword [esi + 0xf0]
jb 0x1008024b
cmp eax, dword [esi + 0xf4]
jae 0x1008024b
mov ecx, dword [esi + 0xec]
mov dword [eax], ecx
dec dword [esi + 0xe4]
pop edi
mov dword [esi + 0xec], eax
mov eax, dword [esp + 0x28]
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
push eax
call fcn.10036090
mov eax, dword [esp + 0x30]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret