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

Disassembly:
sub esp, 0x60
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
xor eax, eax
push esi
push edi
mov dword [esp + 0x20], 0
mov ebx, dword [ebp]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
cmp dword [ebp + 0x24], eax
jne 0x4ae8c2
cmp byte [ebp + 0xdc], 1
jne 0x4ada40
cmp byte [esp + 0x9c], 2
jne 0x4ae8c2
push ebp
call fcn.004cb3d0
add esp, 4
test eax, eax
jne 0x4ae8c2
mov eax, dword [esp + 0x84]
push eax
push ebp
mov dword [esp + 0x24], eax
call fcn.004bdb20
add esp, 8
test eax, eax
jne 0x4ae8c2
cmp dword [esp + 0x80], eax
je 0x4adb5e
mov esi, dword [esp + 0x7c]
lea eax, [esp + 0x2c]
push eax
push esi
push dword [esp + 0x80]
push ebp
call fcn.004d40a0
mov edi, eax
add esp, 0x10
mov dword [esp + 0x18], edi
test edi, edi
js 0x4ae8c2
cmp byte [ebx + 0xb1], 0
jne 0x4adadb
push dword [esp + 0x80]
push ebp
call fcn.004d1cc0
add esp, 8
cmp dword [esi + 4], 0
jne 0x4adadb
test eax, eax
je 0x4adadb
mov ecx, dword [ebx + 0x10]
mov edx, 1
mov eax, dword [eax + 0x3c]
cmp eax, dword [ecx + 0x1c]
cmove edi, edx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x2c]
push eax
push str.index
push edi
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x48]
push ebp
push eax
call fcn.004b80f0
mov esi, dword [esp + 0x94]
lea eax, [esp + 0x50]
push esi
push eax
call fcn.004b8160
lea eax, [esi + 8]
push eax
push 0
push ebp
call fcn.004c1600
mov edx, eax
add esp, 0x28
mov dword [esp + 0x10], edx
test edx, edx
je 0x4ae8c2
cmp edi, 1
jne 0x4adb49
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x1c]
cmp eax, dword [edx + 0x3c]
je 0x4adb49
push dword [edx]
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
push ebp
call fcn.004b0ca0
add esp, 0xc
jmp 0x4adc56
test byte [edx + 0x1c], 0x80
je 0x4adb9c
push edx
call fcn.004ca8a0
add esp, 4
mov dword [esp + 0x28], eax
jmp 0x4adb9c
mov eax, dword [ebp + 0xf8]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4ae8c2
mov ecx, dword [eax + 0x3c]
mov edi, 0xffff8000
mov dword [esp + 0x18], edi
test ecx, ecx
je 0x4adb9c
mov eax, dword [ebx + 0x10]
xor edi, edi
add eax, 0xc
mov dword [esp + 0x18], edi
cmp dword [eax], ecx
je 0x4adb9c
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x4adb90
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
mov ebx, edi
mov esi, dword [esp + 0x10]
mov edx, 7
shl ebx, 4
add ebx, dword [eax + 0x10]
mov esi, dword [esi]
mov dword [esp + 0x2c], ebx
test esi, esi
je 0x4adc2d
mov edi, str.sqlite_
mov al, byte [esi]
dec edx
test al, al
je 0x4adbe2
movzx ecx, byte [edi]
movzx eax, al
mov al, byte [eax + 0x684b30]
cmp al, byte [ecx + 0x684b30]
jne 0x4adbe2
inc esi
inc edi
test edx, edx
jg 0x4adbc0
dec edx
test edx, edx
js 0x4adbfe
movzx eax, byte [edi]
movzx ecx, byte [eax + 0x684b30]
movzx eax, byte [esi]
movzx eax, byte [eax + 0x684b30]
sub eax, ecx
jne 0x4adc31
mov esi, dword [esp + 0x14]
cmp byte [esi + 0xb1], 0
jne 0x4adc35
cmp dword [esp + 0x80], 0
je 0x4adc35
mov eax, dword [esp + 0x10]
push dword [eax]
push str.table__s_may_not_be_indexed
push ebp
call fcn.004b0ca0
add esp, 0xc
mov ebx, esi
jmp 0x4adc56
mov esi, eax
jmp 0x4adc35
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov al, byte [eax + 0x2b]
cmp al, 2
jne 0x4adcc8
push str.views_may_not_be_indexed
push ebp
call fcn.004b0ca0
add esp, 8
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
add ecx, 8
test edx, edx
je 0x4adc77
cmp byte [edx + 0x36], 5
je 0x4ae88e
lea ecx, [edx + 0x14]
mov edx, dword [ecx]
test edx, edx
jne 0x4adc64
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x90]
test esi, esi
je 0x4adc90
push esi
push ebx
call fcn.004b4a30
add esp, 8
test edi, edi
je 0x4adc9e
push edi
push ebx
call fcn.0047ea30
add esp, 8
push dword [esp + 0x80]
push ebx
call fcn.004d16e0
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x4adcc0
push eax
push ebx
call fcn.004aeac0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
cmp al, 1
jne 0x4adcd6
push str.virtual_tables_may_not_be_indexed
jmp 0x4adc49
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4ade2f
mov edi, dword [eax]
mov esi, dword [eax + 4]
test edi, edi
je 0x4ade22
xor eax, eax
mov ecx, esi
add ecx, 1
adc eax, eax
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
call fcn.004aebd0
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
je 0x4ade19
push esi
push edi
push eax
call fcn.006568a0
mov edi, dword [esp + 0x2c]
add esp, 0xc
mov byte [esi + edi], 0
mov esi, edi
mov cl, byte [esi]
movzx eax, cl
cmp byte [eax + 0x684c48], 0
jge 0x4add63
cmp cl, 0x5b
movzx edx, cl
mov eax, 0x5d
lea ecx, [esi + 1]
cmove edx, eax
mov al, byte [ecx]
cmp al, dl
jne 0x4add58
lea eax, [ecx + 1]
mov ecx, eax
cmp byte [eax], dl
jne 0x4add5e
mov al, dl
mov byte [esi], al
inc ecx
inc esi
jmp 0x4add47
mov byte [esi], 0
jmp 0x4add6f
mov dword [esp + 0x20], edi
test edi, edi
je 0x4adc52
mov eax, dword [esp + 0x10]
push dword [eax]
push str.index
push edi
push ebp
call fcn.004aa1c0
add esp, 0x10
test eax, eax
jne 0x4adc52
cmp byte [ebp + 0xdc], 2
jae 0x4aded7
mov esi, dword [esp + 0x14]
cmp byte [esi + 0xb1], al
jne 0x4addcb
push dword [ebx]
push edi
push esi
call fcn.004b7530
add esp, 0xc
test eax, eax
je 0x4addcb
push edi
push str.there_is_already_a_table_named__s
push ebp
call fcn.004b0ca0
add esp, 0xc
mov ebx, esi
jmp 0x4adc56
push dword [ebx]
push edi
push esi
call fcn.004b74a0
add esp, 0xc
test eax, eax
je 0x4ade75
cmp dword [esp + 0x98], 0
jne 0x4addff
push edi
push str.index__s_already_exists
push ebp
call fcn.004b0ca0
add esp, 0xc
mov ebx, esi
jmp 0x4adc56
push dword [esp + 0x18]
push ebp
call fcn.004aba40
push ebp
call fcn.004b9300
add esp, 0xc
mov ebx, esi
jmp 0x4adc56
mov dword [esp + 0x20], eax
jmp 0x4adc52
mov dword [esp + 0x20], 0
jmp 0x4adc52
mov eax, dword [esp + 0x10]
mov ecx, 1
mov eax, dword [eax + 8]
test eax, eax
je 0x4ade48
nop
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x4ade40
mov eax, dword [esp + 0x10]
push ecx
push dword [eax]
push str.sqlite_autoindex__s__d
push esi
call fcn.004c1990
add esp, 0x10
mov dword [esp + 0x20], eax
test eax, eax
je 0x4adc52
cmp byte [ebp + 0xdc], 0
je 0x4ade75
inc byte [eax + 7]
cmp byte [ebp + 0xdc], 2
jae 0x4aded7
mov esi, dword [ebx]
mov ecx, str.sqlite_temp_master
mov edi, dword [esp + 0x18]
mov eax, str.sqlite_master
push esi
cmp edi, 1
push 0
cmove eax, ecx
push eax
push 0x12
push ebp
call fcn.004a53a0
add esp, 0x14
test eax, eax
jne 0x4adc52
mov eax, dword [esp + 0x10]
push esi
push dword [eax]
xor eax, eax
cmp edi, 1
push dword [esp + 0x28]
sete al
lea eax, [eax*2 + 1]
push eax
push ebp
call fcn.004a53a0
add esp, 0x14
test eax, eax
jne 0x4adc52
mov edi, dword [esp + 0x84]
test edi, edi
jne 0x4adfac
mov eax, dword [esp + 0x10]
movsx ecx, word [eax + 0x22]
mov eax, dword [eax + 4]
add ecx, ecx
or word [eax + ecx*8 - 2], 8
mov ebx, dword [eax + ecx*8 - 0x10]
test ebx, ebx
jne 0x4adf05
xor esi, esi
jmp 0x4adf1f
mov esi, ebx
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4adf10
sub esi, ecx
and esi, 0x3fffffff
lea eax, [esi + 0x35]
push 0
push eax
push dword [esp + 0x1c]
call fcn.004aebd0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4adf71
push 0x34
push 0
push edi
call fcn.00656e20
or eax, 0xffffffff
mov byte [edi], 0x3b
mov word [edi + 0x22], ax
add esp, 0xc
lea eax, [edi + 0x34]
mov dword [edi + 8], eax
test esi, esi
je 0x4adf63
push esi
push ebx
push eax
call fcn.006568a0
add esp, 0xc
mov eax, dword [edi + 8]
mov byte [esi + eax], 0
mov dword [edi + 0x18], 1
push edi
push dword [ebp]
call fcn.004b5980
mov edi, eax
add esp, 8
mov dword [esp + 0x1c], edi
test edi, edi
je 0x4adc52
mov ecx, dword [esp + 0x94]
xor ebx, ebx
movzx edx, cl
cmp ecx, 0xffffffff
mov ecx, dword [edi]
cmovne ebx, edx
lea eax, [ecx + ecx*4]
mov byte [edi + eax*4 - 4], bl
mov ebx, dword [esp + 0x2c]
jmp 0x4adfd6
mov ecx, dword [ebp]
mov eax, dword [edi]
cmp eax, dword [ecx + 0x80]
jle 0x4adfcc
push str.index
push str.too_many_columns_in__s
push ebp
call fcn.004b0ca0
add esp, 0xc
cmp dword [ebp + 0x24], 0
jne 0x4adc52
mov esi, dword [edi]
test esi, esi
jle 0x4ae018
lea edx, [edi + 8]
xor ebx, ebx
mov ecx, dword [edx]
cmp byte [ecx], 0x71
jne 0x4ae004
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x4ae001
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4adff2
sub ecx, edi
and ecx, 0x3fffffff
inc ebx
add ebx, ecx
add edx, 0x14
sub esi, 1
jne 0x4adfe1
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4ae020
mov eax, dword [esp + 0x28]
sub esi, ecx
and esi, 0x3fffffff
test eax, eax
je 0x4ae03d
movzx ecx, word [eax + 0x32]
jmp 0x4ae042
mov ecx, 1
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x28]
inc eax
add eax, esi
push eax
mov ax, word [edi]
add ax, cx
movzx eax, ax
push eax
push dword [esp + 0x20]
call fcn.004a2c20
mov edi, eax
add esp, 0x10
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x57], 0
jne 0x4ae82b
mov edx, dword [esp + 0x34]
lea ecx, [esi + 1]
push ecx
push dword [esp + 0x24]
mov dword [edi], edx
lea eax, [edx + 1]
add eax, esi
push edx
mov dword [esp + 0x40], eax
call fcn.006568a0
mov eax, dword [esp + 0x94]
add esp, 0xc
mov byte [edi + 0x36], al
neg eax
mov edx, dword [esp + 0x10]
sbb ecx, ecx
mov esi, dword [esp + 0x90]
mov eax, dword [edi + 0x38]
and ecx, 8
and eax, 0xfffffff7
mov dword [edi + 0xc], edx
or ecx, eax
movzx eax, byte [esp + 0x9c]
xor eax, ecx
and eax, 3
xor eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x38], eax
add ecx, ecx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 0xc]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x1c]
movzx eax, word [eax]
mov word [edi + 0x32], ax
test esi, esi
je 0x4ae116
push 0
push esi
push 2
push edx
push ebp
call fcn.004cc460
movzx eax, word [edi + 0x32]
add esp, 0x14
mov edx, dword [esp + 0x10]
mov dword [edi + 0x24], esi
mov dword [esp + 0x90], 0
cmp byte [ebp + 0xdc], 2
movzx ecx, ax
mov eax, dword [ebx + 0xc]
mov al, byte [eax + 0x4c]
mov byte [esp + 0x84], al
mov eax, dword [esp + 0x1c]
lea ebx, [eax + 8]
mov dword [esp + 0x2c], ebx
jb 0x4ae145
mov dword [edi + 0x28], eax
mov dword [esp + 0x1c], 0
xor esi, esi
xor eax, eax
mov dword [esp + 0x24], esi
cmp ax, cx
jae 0x4ae362
mov eax, dword [ebx]
mov cl, byte [eax]
cmp cl, 0x75
je 0x4ae16c
cmp cl, 0x71
jne 0x4ae16f
mov eax, dword [eax + 0xc]
cmp byte [eax], 0x75
jne 0x4ae16f
mov byte [eax], 0x3b
push 0
push dword [ebx]
push 0x20
push edx
push ebp
call fcn.004cc460
add esp, 0x14
cmp dword [ebp + 0x24], 0
jne 0x4ae359
mov eax, dword [ebx]
test eax, eax
je 0x4ae1a0
nop
test dword [eax + 4], 0x2000
je 0x4ae1a0
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4ae190
cmp byte [eax], 0xa7
je 0x4ae1e8
mov edx, dword [esp + 0x10]
cmp edx, dword [ebp + 0xf8]
je 0x4ae34b
cmp dword [edi + 0x28], 0
jne 0x4ae1ca
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x28], eax
mov dword [esp + 0x1c], 0
mov eax, dword [edi + 4]
mov ecx, 0xfffffffe
mov ebp, ecx
mov word [eax + esi*2], bp
mov eax, dword [edi + 0x38]
and eax, 0xfffffff7
or eax, 0x1000
mov dword [edi + 0x38], eax
jmp 0x4ae22c
movsx ecx, word [eax + 0x20]
test ecx, ecx
jns 0x4ae1fa
mov edx, dword [esp + 0x10]
movsx ecx, word [edx + 0x20]
jmp 0x4ae225
mov ebp, dword [esp + 0x10]
mov edx, ecx
add edx, edx
mov eax, dword [ebp + 4]
test byte [eax + edx*8 + 4], 0xf
jne 0x4ae210
and dword [edi + 0x38], 0xfffffff7
mov eax, dword [ebp + 4]
test byte [eax + edx*8 + 0xe], 0x20
mov edx, dword [esp + 0x10]
je 0x4ae225
or dword [edi + 0x38], 0x1800
mov eax, dword [edi + 4]
mov word [eax + esi*2], cx
mov eax, dword [ebx]
cmp byte [eax], 0x71
jne 0x4ae26f
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4ae23e
xor esi, esi
jmp 0x4ae252
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ae243
sub esi, edx
and esi, 0x3fffffff
mov ebp, dword [esp + 0x34]
inc esi
push esi
push ecx
push ebp
call fcn.006568a0
lea eax, [esi + ebp]
add esp, 0xc
mov esi, dword [esp + 0x24]
mov dword [esp + 0x34], eax
jmp 0x4ae2a9
test ecx, ecx
js 0x4ae2ad
shl ecx, 4
mov eax, 0x200
add ecx, dword [edx + 4]
test word [ecx + 0xe], ax
jne 0x4ae288
xor ebp, ebp
jmp 0x4ae2a9
mov eax, dword [ecx]
cmp byte [eax], 0
je 0x4ae296
nop
inc eax
cmp byte [eax], 0
jne 0x4ae290
test byte [ecx + 0xe], 4
je 0x4ae2a6
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x4ae2a0
lea ebp, [eax + 1]
test ebp, ebp
jne 0x4ae2b2
mov ebp, 0x684ec8
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xb1], 0
jne 0x4ae30d
mov esi, dword [esp + 0x74]
mov ecx, dword [esi]
mov al, byte [ecx + 0x54]
mov bl, byte [ecx + 0xb1]
mov byte [esp + 0x38], al
movzx eax, bl
push eax
push ebp
push dword [esp + 0x40]
push ecx
call fcn.004b6800
add esp, 0x10
test bl, bl
jne 0x4ae301
test eax, eax
je 0x4ae2f2
cmp dword [eax + 0xc], 0
jne 0x4ae305
push ebp
push eax
push dword [esp + 0x40]
push esi
call fcn.004bcc50
add esp, 0x10
test eax, eax
je 0x4ae359
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov eax, dword [edi + 0x20]
mov dword [eax + esi*4], ebp
xor eax, eax
movzx ecx, byte [ebx + 8]
cmp byte [esp + 0x84], 4
mov ebp, dword [esp + 0x74]
cmovb ecx, eax
mov eax, dword [edi + 0x1c]
add ebx, 0x14
mov dword [esp + 0x2c], ebx
mov byte [esi + eax], cl
inc esi
movzx eax, word [edi + 0x32]
mov dword [esp + 0x24], esi
cmp esi, eax
jge 0x4ae362
mov edx, dword [esp + 0x10]
jmp 0x4ae156
push str.expressions_prohibited_in_PRIMARY_KEY_and_UNIQUE_constraints
push ebp
call fcn.004b0ca0
add esp, 8
mov ebx, dword [esp + 0x14]
jmp 0x4ae82d
mov edx, dword [esp + 0x28]
test edx, edx
je 0x4ae3d9
xor eax, eax
xor esi, esi
cmp ax, word [edx + 0x32]
jae 0x4ae3ed
mov ebp, dword [esp + 0x24]
nop dword [eax]
mov eax, dword [edx + 4]
push esi
push edx
movzx ebx, word [eax + esi*2]
movzx eax, word [edi + 0x32]
push eax
push edi
call fcn.00488020
mov edx, dword [esp + 0x38]
add esp, 0x10
test eax, eax
je 0x4ae3aa
mov eax, 0xffff
add word [edi + 0x34], ax
jmp 0x4ae3ca
mov eax, dword [edi + 4]
mov word [eax + ebp*2], bx
mov eax, dword [edx + 0x20]
mov ecx, dword [edi + 0x20]
mov eax, dword [eax + esi*4]
mov dword [ecx + ebp*4], eax
mov eax, dword [edx + 0x1c]
mov ecx, dword [edi + 0x1c]
mov al, byte [esi + eax]
mov byte [ecx + ebp], al
inc ebp
movzx eax, word [edx + 0x32]
inc esi
cmp esi, eax
jl 0x4ae380
mov ebp, dword [esp + 0x74]
jmp 0x4ae3ed
mov eax, dword [edi + 4]
or ecx, 0xffffffff
mov word [eax + esi*2], cx
mov eax, dword [edi + 0x20]
mov dword [eax + esi*4], 0x684ec8
push edi
call fcn.004af0a0
add esp, 4
cmp dword [ebp + 0xf8], 0
jne 0x4ae408
push edi
call fcn.0047b3f0
add esp, 4
push edi
call fcn.0049aa60
add esp, 4
cmp dword [esp + 0x80], 0
je 0x4ae4a2
movzx eax, word [edi + 0x34]
mov edx, eax
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], edx
movsx eax, word [eax + 0x22]
cmp ecx, eax
jl 0x4ae4a2
mov ebx, dword [edi + 0x38]
xor esi, esi
or ebx, 0x20
mov dword [esp + 0x84], esi
mov dword [edi + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x10]
movzx eax, word [ebx + 0x22]
mov ecx, eax
mov dword [esp + 0x34], ecx
cmp si, ax
jge 0x4ae4a2
movsx eax, word [ebx + 0x20]
mov dword [esp + 0x84], eax
nop dword [eax + eax]
cmp esi, eax
je 0x4ae5c4
xor eax, eax
xor ecx, ecx
cmp ax, dx
jae 0x4ae498
movzx ebx, dx
mov edx, dword [edi + 4]
cmp si, word [edx]
je 0x4ae5b0
inc ecx
add edx, 2
cmp ecx, ebx
jl 0x4ae487
mov eax, dword [esp + 0x2c]
and eax, 0xffffffdf
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 0xf8]
jne 0x4ae549
mov ebp, dword [eax + 8]
test ebp, ebp
je 0x4ae545
movzx ecx, word [edi + 0x32]
movzx eax, word [ebp + 0x32]
cmp ax, cx
jne 0x4ae53a
xor edx, edx
xor ebx, ebx
mov ecx, eax
cmp dx, ax
jae 0x4ae52b
mov esi, dword [edi + 4]
mov dword [esp + 0x84], eax
movzx eax, ax
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 4]
sub eax, esi
mov dword [esp + 0x38], eax
nop
mov ax, word [eax + esi]
cmp ax, word [esi]
jne 0x4ae527
mov eax, dword [edi + 0x20]
push dword [eax + ebx*4]
mov eax, dword [ebp + 0x20]
push dword [eax + ebx*4]
call fcn.004d2a70
add esp, 8
test eax, eax
jne 0x4ae527
mov eax, dword [esp + 0x84]
inc ebx
movzx eax, ax
add esi, 2
cmp ebx, eax
mov eax, dword [esp + 0x38]
jl 0x4ae4f0
mov ecx, dword [esp + 0x34]
movzx eax, cx
cmp ebx, eax
je 0x4ae5dc
movzx ecx, word [edi + 0x32]
mov ebp, dword [ebp + 0x14]
test ebp, ebp
jne 0x4ae4c1
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x74]
cmp byte [ebp + 0xdc], 2
mov ebx, dword [esp + 0x14]
jae 0x4ae7ed
cmp byte [ebx + 0xb1], 0
je 0x4ae677
mov esi, dword [esp + 0x80]
test esi, esi
je 0x4ae64a
mov eax, dword [ebx + 0xac]
push edi
mov dword [edi + 0x2c], eax
call fcn.004be3f0
add esp, 4
test eax, eax
je 0x4ae64a
push str.invalid_rootpage
push ebp
call fcn.004b0ca0
push 0x1eb33
call fcn.004ad240
add esp, 0xc
mov dword [ebp + 0xc], eax
jmp 0x4ae82d
movzx eax, cx
test ax, ax
js 0x4ae498
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
inc esi
movsx eax, cx
cmp esi, eax
jge 0x4ae4a2
mov eax, dword [esp + 0x84]
jmp 0x4ae470
mov al, byte [ebp + 0x36]
mov cl, byte [edi + 0x36]
mov esi, dword [esp + 0x74]
cmp al, cl
je 0x4ae60f
cmp al, 0xb
je 0x4ae603
cmp cl, 0xb
je 0x4ae603
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push esi
call fcn.004b0ca0
add esp, 0xc
cmp byte [ebp + 0x36], 0xb
jne 0x4ae60f
mov al, byte [edi + 0x36]
mov byte [ebp + 0x36], al
cmp byte [esp + 0x9c], 2
jne 0x4ae625
mov eax, dword [ebp + 0x38]
and eax, 0xfffffffc
xor eax, 2
mov dword [ebp + 0x38], eax
cmp byte [esi + 0xdc], 2
mov ebx, dword [esp + 0x14]
jb 0x4ae82d
mov eax, dword [esi + 0xfc]
mov dword [edi + 0x14], eax
mov dword [esi + 0xfc], edi
jmp 0x4adc56
mov eax, dword [edi + 0x18]
push edi
push dword [edi]
add eax, 0x18
push eax
call fcn.004bdc70
add esp, 0xc
test eax, eax
je 0x4ae66e
push ebx
call fcn.004c2710
add esp, 4
jmp 0x4ae82d
or dword [ebx + 0x18], 1
jmp 0x4ae7f4
test byte [eax + 0x1c], 0x80
je 0x4ae68c
mov esi, dword [esp + 0x80]
test esi, esi
je 0x4ae7f4
inc dword [ebp + 0x2c]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x2c]
mov dword [esp + 0x74], ebx
test esi, esi
jne 0x4ae6c5
cmp dword [ebp + 0x80], esi
jne 0x4ae6b2
mov eax, dword [ebp]
test byte [eax + 0x50], 8
jne 0x4ae6b2
mov byte [ebp + 0x17], 1
push ebp
call fcn.004d7d60
mov esi, eax
add esp, 4
test esi, esi
je 0x4ae359
push dword [esp + 0x18]
push 1
push ebp
call fcn.004a5e80
push 0xbb
push esi
call fcn.004d76e0
push 2
push ebx
push dword [esp + 0x34]
mov dword [edi + 0x2c], eax
push 0x93
push esi
call fcn.004d77f0
add esp, 0x28
cmp dword [esp + 0x8c], 0
je 0x4ae74b
mov edx, dword [ebp + 0xd4]
add edx, dword [ebp + 0xd0]
mov eax, dword [esp + 0x30]
mov ecx, edx
mov eax, dword [eax]
sub ecx, eax
cmp byte [edx - 1], 0x3b
push eax
lea eax, [ecx - 1]
cmovne eax, ecx
cmp dword [esp + 0x8c], 0
push eax
mov ecx, str._UNIQUE
mov eax, 0x70ce08
cmovne eax, ecx
push eax
push str.CREATE_s_INDEX__.s
push dword [esp + 0x24]
call fcn.004c1990
add esp, 0x14
mov ebx, eax
jmp 0x4ae74d
xor ebx, ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push dword [esp + 0x78]
add ecx, ecx
push dword [eax]
mov eax, dword [esp + 0x20]
push dword [edi]
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
push str.INSERT_INTO__Q.sqlite_master_VALUES_index__Q__Q__d__Q__
push ebp
call fcn.004c24d0
add esp, 0x1c
test ebx, ebx
je 0x4ae78c
push ebx
mov ebx, dword [esp + 0x18]
push ebx
call fcn.004aeac0
add esp, 8
jmp 0x4ae790
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x80], 0
je 0x4ae7e1
push dword [esp + 0x74]
push edi
push ebp
call fcn.004cb620
push dword [esp + 0x24]
push ebp
call fcn.004aa150
add esp, 0x14
push 0
push dword [edi]
push str.name_q_AND_typeindex
push ebx
call fcn.004c1990
add esp, 0xc
push eax
push dword [esp + 0x20]
push esi
call fcn.004d79f0
push 1
push 0
push 0xa6
push esi
call fcn.004d7790
add esp, 0x20
push dword [edi + 0x2c]
push esi
call fcn.004e1730
add esp, 8
mov esi, dword [esp + 0x80]
cmp byte [ebx + 0xb1], 0
jne 0x4ae815
test esi, esi
je 0x4ae815
cmp byte [ebp + 0xdc], 2
jb 0x4ae82d
mov dword [ebp + 0xfc], edi
jmp 0x4adc56
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 0x14], eax
mov dword [ecx + 8], edi
jmp 0x4adc5a
mov ebx, eax
test edi, edi
je 0x4adc56
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4ae846
push eax
push ebx
call fcn.004b4a30
add esp, 8
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4ae857
push eax
push ebx
call fcn.0047ea30
add esp, 8
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4ae868
push eax
push ebx
call fcn.004aeac0
add esp, 8
test byte [edi + 0x38], 0x10
je 0x4ae87f
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4ae87f
push eax
push ebx
call fcn.004aeac0
add esp, 8
push edi
push ebx
call fcn.004aeac0
add esp, 8
jmp 0x4adc56
mov eax, dword [edx + 0x14]
test eax, eax
je 0x4adc77
nop dword [eax]
cmp byte [eax + 0x36], 5
je 0x4adc77
mov dword [ecx], eax
lea ecx, [eax + 0x14]
mov eax, dword [ecx]
mov dword [edx + 0x14], eax
mov dword [ecx], edx
mov eax, dword [edx + 0x14]
test eax, eax
jne 0x4ae8a0
jmp 0x4adc77
mov edi, dword [esp + 0x84]
jmp 0x4adc7b