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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x100eb6ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x64], edx
xor edx, edx
push edi
mov edi, dword [eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x3c], edx
cmp dword [eax + 0x18], edx
jne 0x10041365
cmp dword [0x100f0574], edx
je 0x10040e08
cmp dword [0x100f0580], edx
jg 0x10041365
test ecx, ecx
je 0x10040eab
lea edx, [ebp - 0x48]
mov ecx, ebx
mov edi, eax
call fcn.1003eaf0
mov edi, eax
mov dword [ebp - 0x40], edi
test edi, edi
js 0x10041365
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x28]
push eax
push ecx
call fcn.1005d1a0
add esp, 8
test ebx, ebx
je 0x10040e60
test dword [ebx + 4], 0xfffffffe
jne 0x10040e60
test eax, eax
je 0x10040e60
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 0x3c]
cmp edx, dword [ecx + 0x2c]
jne 0x10040e60
mov edi, 1
mov dword [ebp - 0x40], edi
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x28]
push eax
push str.index
mov ecx, edi
lea eax, [ebp - 0x74]
call fcn.100511e0
mov ebx, dword [ebp - 0x44]
add esp, 8
test eax, eax
je 0x10040e8d
lea ecx, [ebp - 0x74]
push ebx
push ecx
call fcn.10051220
add esp, 8
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push edx
push eax
push esi
call fcn.1003da50
add esp, 0xc
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10041365
jmp 0x10040ed2
mov ecx, eax
mov eax, dword [ecx + 0xa4]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10041365
mov edx, eax
mov esi, dword [edx + 0x3c]
mov ecx, edi
call fcn.1002c750
mov esi, dword [ebp - 0x28]
mov edi, eax
mov dword [ebp - 0x40], edi
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx + 4]
lea eax, [edi + edi*2]
add eax, eax
add eax, eax
add eax, eax
add ecx, eax
cmp dword [esi + 0x18], 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x38], ecx
jne 0x10041365
mov esi, dword [ebp - 0x2c]
cmp byte [esi + 0x1c], 0
je 0x10040f15
mov edx, dword [esi]
mov eax, dword [ebp - 0x28]
push edx
push str.table__s_may_not_be_indexed
push eax
call fcn.1002ddf0
add esp, 0xc
jmp 0x10041365
cmp dword [esi + 0x18], 0
je 0x10040f31
mov ecx, dword [ebp - 0x28]
push str.views_may_not_be_indexed
push ecx
call fcn.1002ddf0
add esp, 8
jmp 0x10041365
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10040ff2
call fcn.1003e910
mov edx, dword [ebp - 0x28]
push edx
mov dword [ebp - 0x34], eax
call fcn.1002c550
add esp, 4
test eax, eax
jne 0x10041365
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x10041365
mov esi, dword [ebp - 0x28]
call fcn.1003eb30
test eax, eax
jne 0x10041365
mov edi, dword [ebp - 0x30]
cmp byte [edi + 0x44], al
jne 0x10041048
push esi
call fcn.1002c550
add esp, 4
test eax, eax
jne 0x10041365
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x34]
push ecx
push edx
push edi
call fcn.1003dad0
add esp, 0xc
test eax, eax
je 0x10040fc8
cmp dword [ebp + 0x24], 0
jne 0x10041365
mov eax, dword [ebp - 0x34]
push eax
push str.index__s_already_exists
push esi
call fcn.1002ddf0
add esp, 0xc
jmp 0x10041365
mov ecx, dword [ebp - 0x34]
push 0
push ecx
push edi
call fcn.1003d950
add esp, 0xc
test eax, eax
je 0x10041048
mov edx, dword [ebp - 0x34]
push edx
push str.there_is_already_a_table_named__s
push esi
call fcn.1002ddf0
add esp, 0xc
jmp 0x10041365
mov eax, dword [esi + 0x10]
mov ecx, 1
test eax, eax
je 0x10041008
mov edi, edi
mov eax, dword [eax + 0x20]
inc ecx
test eax, eax
jne 0x10041000
push ecx
lea eax, [ebp - 0x24]
push 0x100d6bdc
push eax
call fcn.1009c3ed
add esp, 0xc
push 0
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x34], 0
mov edx, dword [esi]
push edx
lea eax, [ebp - 0x34]
push str.sqlite_autoindex_
push eax
call fcn.1002dc00
add esp, 0x14
cmp dword [ebp - 0x34], 0
je 0x10041365
mov esi, dword [ebp - 0x28]
cmp dword [ebp - 0x40], 1
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ecx]
mov eax, str.sqlite_temp_master
je 0x1004105d
mov eax, str.sqlite_master
push ebx
push 0
push eax
push 0x12
mov edi, esi
call fcn.1005d110
add esp, 0x10
test eax, eax
jne 0x10041365
mov eax, 1
cmp dword [ebp - 0x40], eax
jne 0x10041084
mov eax, 3
mov ecx, dword [ebp - 0x34]
push ebx
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebx]
push edx
push ecx
push eax
mov edi, esi
call fcn.1005d110
add esp, 0x10
test eax, eax
jne 0x10041365
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x100410fa
mov eax, dword [ebx + 4]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
mov eax, dword [eax + edx*4 - 0x14]
mov dword [ebp - 0x58], eax
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100410c0
sub eax, edx
mov edx, dword [ebp - 0x54]
lea ecx, [eax + eax]
and edx, 1
or ecx, edx
push 0
push 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], ecx
call fcn.1005a5f0
add esp, 8
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x10041365
mov ecx, dword [eax + 0xc]
mov dl, byte [ebp + 0x20]
mov byte [ecx + 8], dl
mov esi, dword [eax]
test esi, esi
jle 0x1004112c
mov edi, dword [eax + 0xc]
mov ebx, esi
mov eax, dword [edi]
test eax, eax
je 0x10041126
mov eax, dword [eax + 4]
mov eax, dword [eax]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10041113
mov ecx, dword [ebp - 0x3c]
sub eax, edx
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x3c], edx
add edi, 0xc
dec ebx
jne 0x10041105
mov eax, dword [ebp - 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10041132
mov ecx, dword [ebp - 0x3c]
sub eax, edx
mov edi, eax
mov eax, esi
imul eax, eax, 0xd
add eax, edi
lea edx, [eax + ecx + 0x35]
push 1
push edx
call fcn.1002da60
add esp, 8
mov ebx, eax
call fcn.1002e980
test eax, eax
jne 0x10041348
lea eax, [ebx + 0x30]
mov dword [ebx + 0x2c], eax
lea eax, [eax + esi*4]
mov dword [ebx + 8], eax
lea eax, [eax + esi*4]
mov dword [ebx + 0xc], eax
lea eax, [eax + esi*4 + 4]
mov dword [ebx + 0x28], eax
add eax, esi
lea ecx, [eax + edi + 1]
mov dword [ebx], eax
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x34]
mov esi, eax
mov edi, edi
mov al, byte [ecx]
mov byte [esi], al
inc ecx
inc esi
test al, al
jne 0x10041190
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x48], 0
mov dword [ebx + 0x10], edx
mov ecx, dword [eax]
mov dl, byte [ebp + 0x14]
mov dword [ebx + 4], ecx
mov byte [ebx + 0x18], dl
mov edx, dword [ebp - 0x30]
sete cl
mov byte [ebx + 0x19], cl
mov ecx, dword [edx + 4]
mov edx, dword [ebp - 0x60]
mov ecx, dword [edx + ecx + 0x14]
mov edx, dword [ebp - 0x38]
mov dword [ebx + 0x24], ecx
mov ecx, dword [edx + 0x14]
cmp byte [ecx + 0x78], 4
mov edx, dword [eax + 0xc]
sbb ecx, ecx
neg ecx
dec ecx
cmp dword [eax], 0
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], edx
jle 0x100412ce
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax + 8]
xor esi, esi
mov dword [ebp - 0x50], ecx
cmp dword [eax + 4], esi
jle 0x10041220
mov edx, dword [edi]
mov ecx, dword [ebp - 0x50]
call fcn.1002df00
test eax, eax
je 0x10041220
mov edx, dword [ebp - 0x2c]
inc esi
add edi, 0x14
cmp esi, dword [edx + 4]
jl 0x10041206
mov ecx, dword [ebp - 0x2c]
cmp esi, dword [ecx + 4]
jge 0x1004132d
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0x38]
mov dword [eax + edx*4], esi
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
test eax, eax
je 0x10041269
mov edi, dword [ebp - 0x5c]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
mov esi, edi
mov al, byte [ecx]
mov byte [esi], al
inc ecx
inc esi
test al, al
jne 0x10041248
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10041257
sub eax, edx
lea edx, [edi + eax + 1]
mov dword [ebp - 0x5c], edx
jmp 0x1004127f
mov ecx, dword [ecx + 8]
lea eax, [esi + esi*4]
mov edi, dword [ecx + eax*4 + 0xc]
test edi, edi
jne 0x1004127f
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x18]
mov edi, dword [eax]
mov ecx, dword [ebp - 0x30]
cmp byte [ecx + 0x44], 0
jne 0x100412a1
mov edx, dword [ebp - 0x28]
push edx
or eax, 0xffffffff
mov ecx, edi
call fcn.1003f4f0
add esp, 4
test eax, eax
je 0x10041348
mov esi, dword [ebp - 0x38]
mov eax, dword [ebx + 0x2c]
mov dword [eax + esi*4], edi
mov edi, dword [ebp - 0x3c]
mov cl, byte [edi + 8]
and cl, byte [ebp - 0x54]
mov edx, dword [ebx + 0x28]
mov eax, dword [ebp - 0x4c]
mov byte [esi + edx], cl
inc esi
add edi, 0xc
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edi
cmp esi, dword [eax]
jl 0x100411f0
mov edx, ebx
call fcn.10041690
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [edx + 0xa4]
jne 0x100413f2
mov ecx, eax
mov edi, dword [ecx + 0x10]
test edi, edi
je 0x100413f2
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 4]
jne 0x100413e7
xor edx, edx
mov dword [ebp - 0x38], edx
test eax, eax
jle 0x100413e2
mov esi, dword [ebx + 0x2c]
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebx + 8]
sub eax, esi
mov dword [ebp - 0x5c], eax
mov eax, dword [edi + 8]
sub eax, esi
sub ecx, esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
jmp 0x100413a6
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
push ecx
mov ecx, dword [ebp - 0x28]
push eax
push str.table__s_has_no_column_named__s
push ecx
call fcn.1002ddf0
add esp, 0x10
test ebx, ebx
je 0x10041365
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1004135c
push eax
call fcn.1009cc76
add esp, 4
push ebx
call fcn.1009cc76
add esp, 4
mov ebx, dword [ebp - 0x4c]
call fcn.1005a730
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.10041cf0
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
je 0x10041389
push eax
call fcn.1009cc76
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009c0cb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + esi]
cmp eax, dword [ecx + esi]
jne 0x100413e2
mov ecx, dword [edi + 0x28]
mov eax, dword [ebx + 0x28]
mov cl, byte [edx + ecx]
cmp cl, byte [edx + eax]
jne 0x100413e2
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + esi]
mov eax, dword [esi]
cmp ecx, eax
je 0x100413d6
mov edx, eax
call fcn.1002df00
mov edx, dword [ebp - 0x38]
test eax, eax
jne 0x100413e2
inc edx
add esi, 4
mov dword [ebp - 0x38], edx
cmp edx, dword [edi + 4]
jl 0x100413a0
cmp edx, dword [edi + 4]
je 0x10041446
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x100412f4
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0x44], 0
je 0x10041485
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10041406
mov ecx, dword [ebx + 0x24]
sub eax, esi
push ebx
inc eax
push edx
add ecx, 0x20
call fcn.10038e20
add esp, 8
test eax, eax
jne 0x10041348
mov eax, dword [ebp - 0x30]
or dword [eax + 8], 0x10
cmp dword [ebp - 0x44], 0
je 0x100415c1
mov ecx, eax
mov edx, dword [ecx + 0x40]
mov dword [ebx + 0x14], edx
jmp 0x100415c1
mov al, byte [edi + 0x18]
mov cl, byte [ebx + 0x18]
cmp al, cl
je 0x10041348
cmp al, 0x63
je 0x10041470
cmp cl, 0x63
je 0x10041470
mov ecx, dword [ebp - 0x28]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push ecx
call fcn.1002ddf0
add esp, 0xc
cmp byte [edi + 0x18], 0x63
jne 0x10041348
mov dl, byte [ebx + 0x18]
mov byte [edi + 0x18], dl
jmp 0x10041348
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + 0x20]
lea eax, [edi + 1]
mov dword [ebp - 0x54], edi
mov dword [esi + 0x20], eax
call fcn.10056e40
mov esi, eax
test esi, esi
je 0x10041348
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
push 1
call fcn.10042260
mov ecx, dword [ebp - 0x40]
add esp, 4
push 0
push ecx
push 0x2c
mov eax, esi
call fcn.1003a0d0
add esp, 0xc
push 0
push edi
push 0x6c
mov eax, esi
call fcn.1003a0d0
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x1004150f
mov edx, dword [ebp - 0x64]
test edx, edx
je 0x1004150f
cmp dword [ebp + 0x14], 0
mov ecx, 0x100cdc9d
je 0x100414f1
mov ecx, str._UNIQUE
mov eax, dword [ebp - 0x48]
mov edi, dword [eax]
mov edx, dword [edx]
sub edx, edi
push edi
inc edx
push edx
push ecx
push str.CREATE_s_INDEX__.s
call fcn.10046b10
add esp, 0x10
mov edi, eax
jmp 0x10041511
xor edi, edi
cmp dword [ebp - 0x40], 1
mov eax, str.sqlite_temp_master
je 0x10041521
mov eax, str.sqlite_master
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov ecx, dword [ebx]
push edi
push edx
mov edx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x60]
push eax
mov eax, dword [edx + 4]
mov edx, dword [ecx + eax]
mov eax, dword [ebp - 0x28]
push edx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q_0__Q__
push eax
call fcn.1003d8a0
add esp, 0x1c
push 0
push 1
push 0x1a
mov eax, esi
call fcn.1003a0d0
add esp, 0xc
test edi, edi
je 0x10041567
push edi
call fcn.1009cc76
add esp, 4
cmp dword [ebp - 0x44], 0
je 0x100415c1
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x28]
push ecx
push ebx
push edx
call fcn.10040a30
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
add esp, 0xc
push edi
mov eax, esi
call fcn.1003f590
mov eax, dword [ebx]
add esp, 4
push 0xffffffffffffffff
push ecx
push eax
push str.name_q
call fcn.10046b10
add esp, 0xc
push eax
xor eax, eax
mov ecx, edi
lea edx, [eax + 0x76]
mov edi, esi
call fcn.1003a140
push 0
push 0
push 0x12
mov eax, esi
call fcn.1003a0d0
add esp, 0x14
mov ecx, dword [ebp - 0x30]
cmp byte [ecx + 0x44], 0
jne 0x100415d4
cmp dword [ebp - 0x44], 0
jne 0x10041348
mov ecx, dword [ebp - 0x2c]
mov edx, 5
cmp dword [ebp + 0x14], edx
jne 0x10041611
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x10041611
cmp byte [eax + 0x18], dl
je 0x10041611
cmp dword [eax + 0x20], 0
je 0x10041603
mov ecx, dword [eax + 0x20]
cmp byte [ecx + 0x18], dl
je 0x10041603
mov eax, ecx
cmp dword [eax + 0x20], 0
jne 0x100415f3
mov edx, dword [eax + 0x20]
mov dword [ebx + 0x20], edx
mov dword [eax + 0x20], ebx
jmp 0x10041365
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x20], eax
mov dword [ecx + 0x10], ebx
jmp 0x10041365