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

Disassembly:
sub esp, 0x38
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
mov ebx, dword [esp + 0x54]
push edi
mov edi, dword [ebp]
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], esi
mov al, byte [edi + 0x36]
mov dword [esp + 0x1c], esi
test al, al
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
jne 0x1012b7ed
mov al, byte [ebp + 0x1cd]
test al, al
jne 0x1012b7ed
push ebp
call fcn.1011d410
add esp, 4
test eax, eax
jne 0x1012b7ed
cmp ebx, esi
je 0x1012b2cc
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
push ebp
call fcn.10129280
mov esi, eax
add esp, 0x10
test esi, esi
mov dword [esp + 0x50], esi
jl 0x1012b7ed
mov al, byte [edi + 0x7d]
test al, al
jne 0x1012b274
push ebx
push ebp
call fcn.1012cd20
mov ecx, dword [esp + 0x5c]
add esp, 8
mov edx, dword [ecx + 4]
test edx, edx
jne 0x1012b274
test eax, eax
je 0x1012b274
mov edx, dword [edi + 0x10]
mov eax, dword [eax + 0x44]
cmp eax, dword [edx + 0x1c]
jne 0x1012b274
mov esi, 1
mov dword [esp + 0x50], esi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x38]
push ecx
push str.index
push esi
push ebp
push edx
call fcn.1012a5c0
add esp, 0x14
test eax, eax
je 0x1012b29f
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.1012a670
add esp, 8
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
push ecx
push edx
push 0
push ebp
call fcn.10119c90
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [esp + 0x54], ebx
je 0x1012b7ed
mov al, byte [edi + 0x36]
test al, al
je 0x1012b2f1
jmp 0x1012b7ed
mov ebx, dword [ebp + 0x1f4]
test ebx, ebx
mov dword [esp + 0x54], ebx
je 0x1012b7ed
mov eax, dword [ebx + 0x44]
push eax
push edi
call fcn.1011d440
mov esi, eax
add esp, 8
mov dword [esp + 0x50], esi
mov edx, dword [edi + 0x10]
mov ecx, dword [ebx]
mov eax, esi
push 7
shl eax, 4
mov dword [esp + 0x2c], eax
add eax, edx
push str.sqlite_
push ecx
mov dword [esp + 0x2c], eax
call fcn.100f9010
add esp, 0xc
test eax, eax
jne 0x1012b346
mov eax, dword [ebx]
mov ecx, 9
mov edi, str.altertab_
xor edx, edx
lea esi, [eax + 7]
repe cmpsb byte [esi], byte es:[edi]
je 0x1012b342
push eax
push str.table__s_may_not_be_indexed
push ebp
call fcn.101172f0
add esp, 0xc
jmp 0x1012b7ed
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1012b360
push str.views_may_not_be_indexed
push ebp
call fcn.101172f0
add esp, 8
jmp 0x1012b7ed
test byte [ebx + 0x22], 0x10
je 0x1012b379
push str.virtual_tables_may_not_be_indexed
push ebp
call fcn.101172f0
add esp, 8
jmp 0x1012b7ed
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1012b41e
push eax
push edi
call fcn.10129220
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x1c], esi
je 0x1012b7ed
push esi
push ebp
call fcn.10129310
add esp, 8
test eax, eax
jne 0x1012b7ed
mov al, byte [edi + 0x7d]
test al, al
jne 0x1012b3da
push 0
push esi
push edi
call fcn.10119b10
add esp, 0xc
test eax, eax
je 0x1012b3da
push esi
push str.there_is_already_a_table_named__s
push ebp
call fcn.101172f0
add esp, 0xc
jmp 0x1012b7ed
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push ecx
push esi
push edi
call fcn.10119d10
add esp, 0xc
test eax, eax
je 0x1012b452
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x1012b40b
push esi
push str.index__s_already_exists
push ebp
call fcn.101172f0
add esp, 0xc
jmp 0x1012b7ed
mov edx, dword [esp + 0x50]
push edx
push ebp
call fcn.1012c3f0
add esp, 8
jmp 0x1012b7ed
mov eax, dword [ebx + 0x10]
mov ecx, 1
test eax, eax
je 0x1012b432
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x1012b42a
mov eax, dword [ebx]
push ecx
push eax
push str.sqlite_autoindex__s__d
push edi
call fcn.10107a60
mov esi, eax
add esp, 0x10
test esi, esi
mov dword [esp + 0x1c], esi
je 0x1012b7ed
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
cmp eax, 1
mov eax, str.sqlite_temp_master
mov edi, dword [ecx]
je 0x1012b46b
mov eax, str.sqlite_master
push edi
push 0
push eax
push 0x12
push ebp
call fcn.10128db0
add esp, 0x14
test eax, eax
jne 0x1012b7ed
mov ecx, dword [esp + 0x50]
mov eax, 1
cmp ecx, eax
jne 0x1012b494
mov eax, 3
mov edx, dword [ebx]
push edi
push edx
push esi
push eax
push ebp
call fcn.10128db0
add esp, 0x14
test eax, eax
jne 0x1012b7ed
mov esi, dword [esp + 0x5c]
test esi, esi
jne 0x1012b502
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*8 - 0x18]
push eax
mov dword [esp + 0x34], eax
call fcn.100f8fa0
push esi
push esi
push ebp
mov dword [esp + 0x44], eax
call fcn.101228b0
mov esi, eax
add esp, 0x10
test esi, esi
mov dword [esp + 0x5c], esi
je 0x1012b7ed
lea edx, [esp + 0x30]
push 0
push edx
push esi
push ebp
call fcn.10122950
mov eax, dword [esi + 8]
mov cl, byte [esp + 0x7c]
add esp, 0x10
mov byte [eax + 0xc], cl
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
jle 0x1012b53e
mov ebp, dword [esp + 0x14]
xor edi, edi
mov edx, dword [esi + 8]
mov eax, dword [edi + edx]
test eax, eax
je 0x1012b530
mov eax, dword [eax + 0x14]
test eax, eax
je 0x1012b530
mov eax, dword [eax]
push eax
call fcn.100f8fa0
add esp, 4
lea ebp, [eax + ebp + 1]
mov eax, dword [esi]
inc ebx
add edi, 0x14
cmp ebx, eax
jl 0x1012b510
mov dword [esp + 0x14], ebp
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.100f8fa0
mov edx, dword [esp + 0x60]
mov ebx, eax
mov edi, dword [esp + 0x14]
mov esi, dword [edx]
mov edx, ebx
lea eax, [esi*4 + 0xb]
lea ecx, [esi + esi*8]
and al, 0xf8
add edx, eax
mov eax, dword [esp + 0x18]
add ecx, edx
lea ecx, [ecx + eax + 0x31]
push ecx
push edi
call fcn.100fc640
mov ebp, eax
mov al, byte [edi + 0x36]
add esp, 0xc
test al, al
jne 0x1012b7d1
lea edx, [esi*4 + 8]
lea eax, [ebp + 0x30]
and edx, 0xfffffff8
mov dword [ebp + 8], eax
add eax, edx
lea ecx, [ebx + 1]
mov dword [ebp + 0x20], eax
mov edx, ecx
lea eax, [eax + esi*4]
mov dword [esp + 0x70], 0
mov dword [ebp + 4], eax
lea eax, [eax + esi*4]
mov dword [ebp + 0x1c], eax
lea edi, [esi + eax]
mov esi, dword [esp + 0x1c]
shr ecx, 2
mov dword [ebp], edi
lea eax, [edi + ebx + 1]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dl, byte [esp + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
mov byte [ebp + 0x2c], dl
mov edx, dword [esp + 0x10]
mov dword [ebp + 0x24], ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
sete cl
mov byte [ebp + 0x2d], cl
mov ecx, dword [edx + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + ecx + 0xc]
mov edx, dword [esp + 0x20]
mov dword [ebp + 0x18], ecx
mov ecx, dword [edx + 0xc]
mov edx, dword [eax + 8]
mov dword [esp + 0x6c], edx
mov bl, byte [ecx + 0x4c]
mov ecx, dword [eax]
cmp bl, 4
sbb ebx, ebx
neg ebx
dec ebx
test ecx, ecx
jle 0x1012b734
mov eax, dword [esp + 0x6c]
xor esi, esi
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 8]
mov edi, dword [eax + 0xc]
test ecx, ecx
jle 0x1012b665
mov edx, dword [edi]
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.100f8fc0
add esp, 8
test eax, eax
je 0x1012b665
mov ecx, dword [esp + 0x54]
inc esi
add edi, 0x18
cmp esi, dword [ecx + 8]
jl 0x1012b644
mov edx, dword [esp + 0x54]
cmp esi, dword [edx + 8]
jge 0x1012b7b3
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x70]
mov dword [ecx + eax*4], esi
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x1012b6c9
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x1012b6c9
mov esi, dword [ecx]
push esi
call fcn.100f8fa0
mov edi, dword [esp + 0x28]
add esp, 4
inc eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov esi, ecx
add ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x14], ecx
jmp 0x1012b6e0
mov edx, dword [edx + 0xc]
lea ecx, [esi + esi*2]
mov esi, dword [edx + ecx*8 + 0x10]
test esi, esi
jne 0x1012b6e0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
mov esi, dword [edx]
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx + 0x7d]
test dl, dl
jne 0x1012b705
mov edx, dword [esp + 0x4c]
push esi
push edx
call fcn.10129da0
add esp, 8
test eax, eax
je 0x1012b7d1
mov eax, dword [esp + 0x70]
mov ecx, dword [ebp + 0x20]
mov dword [ecx + eax*4], esi
mov esi, dword [esp + 0x6c]
mov ecx, dword [ebp + 0x1c]
mov dl, byte [esi + 0xc]
add esi, 0x14
and dl, bl
mov dword [esp + 0x6c], esi
mov byte [ecx + eax], dl
mov edx, dword [esp + 0x5c]
inc eax
mov ecx, dword [edx]
mov dword [esp + 0x70], eax
cmp eax, ecx
jl 0x1012b629
push ebp
call fcn.1011a630
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x58]
add esp, 4
cmp ebx, dword [edx + 0x1f4]
jne 0x1012b859
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x1012b859
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp + 0x24]
cmp eax, ecx
jne 0x1012b7a7
xor esi, esi
test eax, eax
jle 0x1012b7a2
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 4]
mov edx, dword [eax + esi*4]
mov eax, dword [ecx + esi*4]
cmp edx, eax
jne 0x1012b7a2
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp + 0x20]
mov eax, dword [eax + esi*4]
mov ecx, dword [ecx + esi*4]
cmp eax, ecx
je 0x1012b79a
push ecx
push eax
call fcn.100f8fc0
add esp, 8
test eax, eax
jne 0x1012b7a2
mov eax, dword [edi + 0x24]
inc esi
cmp esi, eax
jl 0x1012b76c
cmp esi, dword [edi + 0x24]
je 0x1012b821
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x1012b75c
jmp 0x1012b859
mov eax, dword [esp + 0x20]
mov ecx, dword [edx]
mov esi, dword [esp + 0x4c]
push eax
push ecx
push str.table__s_has_no_column_named__s
push esi
call fcn.101172f0
add esp, 0x10
mov byte [esi + 0x11], 1
test ebp, ebp
je 0x1012b7ed
mov ecx, dword [ebp + 0x10]
mov esi, dword [esp + 0x10]
push ecx
push esi
call fcn.100f8b00
push ebp
push esi
call fcn.100f8b00
add esp, 0x10
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x10]
push edx
push esi
call fcn.1011a450
mov eax, dword [esp + 0x60]
push eax
push esi
call fcn.1011ddf0
mov ecx, dword [esp + 0x2c]
push ecx
push esi
call fcn.100f8b00
mov eax, dword [esp + 0x44]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov al, byte [edi + 0x2c]
mov cl, byte [ebp + 0x2c]
cmp al, cl
je 0x1012b7d1
cmp al, 0x63
je 0x1012b848
cmp cl, 0x63
je 0x1012b848
mov edx, dword [esp + 0x4c]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push edx
call fcn.101172f0
add esp, 0xc
cmp byte [edi + 0x2c], 0x63
jne 0x1012b7d1
mov al, byte [ebp + 0x2c]
mov byte [edi + 0x2c], al
jmp 0x1012b7d1
mov esi, dword [esp + 0x10]
mov al, byte [esi + 0x7d]
test al, al
je 0x1012b8b2
mov ecx, dword [ebp]
push ebp
push ecx
call fcn.100f8fa0
mov edx, dword [ebp]
add esp, 4
push eax
mov eax, dword [ebp + 0x18]
add eax, 0x18
push edx
push eax
call fcn.10119e10
add esp, 0x10
test eax, eax
je 0x1012b892
mov byte [esi + 0x36], 1
jmp 0x1012b7d1
mov ecx, dword [esi + 0x18]
mov eax, dword [esp + 0x58]
or ch, 2
test eax, eax
mov dword [esi + 0x18], ecx
je 0x1012b9d2
mov ecx, dword [esi + 0x78]
mov dword [ebp + 0x28], ecx
jmp 0x1012b9d2
mov edi, dword [esp + 0x4c]
push edi
mov ecx, dword [edi + 0x4c]
inc ecx
mov dword [edi + 0x4c], ecx
mov ebx, ecx
call fcn.10133730
add esp, 4
mov dword [esp + 0x70], eax
test eax, eax
je 0x1012b7d1
mov edx, dword [esp + 0x50]
push edx
push 1
push edi
call fcn.1012c4e0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x7c]
push ebx
push eax
push 0x68
push ecx
call fcn.10123750
mov eax, dword [esp + 0x80]
add esp, 0x1c
test eax, eax
je 0x1012b937
mov eax, dword [esp + 0x60]
mov ecx, 0x101a7844
test eax, eax
je 0x1012b913
mov ecx, str._UNIQUE
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov edx, dword [esp + 0x68]
push eax
mov edx, dword [edx]
sub edx, eax
inc edx
push edx
push ecx
push str.CREATE_s_INDEX__.s
push esi
call fcn.10107a60
add esp, 0x14
mov edi, eax
jmp 0x1012b939
xor edi, edi
mov eax, dword [esp + 0x50]
cmp eax, 1
mov eax, str.sqlite_temp_master
je 0x1012b94c
mov eax, str.sqlite_master
mov ecx, dword [esp + 0x54]
push edi
push ebx
mov edx, dword [ecx]
mov ecx, dword [ebp]
push edx
mov edx, dword [esi + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + edx]
mov edx, dword [esp + 0x60]
push ecx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
push edx
call fcn.10129170
push edi
push esi
call fcn.100f8b00
mov eax, dword [esp + 0x80]
add esp, 0x28
test eax, eax
je 0x1012b9ce
mov edi, dword [esp + 0x4c]
push ebx
push ebp
push edi
call fcn.1012ba40
mov ebx, dword [esp + 0x5c]
push ebx
push edi
call fcn.10129e20
mov eax, dword [ebp]
push eax
push str.name_q_AND_typeindex
push esi
call fcn.10107a60
push eax
push ebx
mov ebx, dword [esp + 0x98]
push ebx
call fcn.10122fe0
push 0
push 0x81
push ebx
call fcn.101241e0
add esp, 0x38
mov ebx, dword [esp + 0x54]
mov al, byte [esi + 0x7d]
test al, al
jne 0x1012b9e5
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x1012b7d1
mov eax, dword [esp + 0x60]
mov edx, 5
cmp eax, edx
jne 0x1012ba25
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x1012ba25
cmp byte [ecx + 0x2c], dl
je 0x1012ba25
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x1012ba13
cmp byte [eax + 0x2c], dl
je 0x1012ba13
mov ecx, eax
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x1012ba05
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x2c], ebp
mov dword [ebp + 0x14], edx
mov dword [ecx + 0x14], ebp
jmp 0x1012b7ed
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x2c], ebp
mov dword [ebp + 0x14], eax
mov dword [ebx + 0x10], ebp
jmp 0x1012b7ed