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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x108
mov eax, dword [0x5da084]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, ecx
mov dword [esp + 0x18], 0
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], ecx
xor ecx, ecx
push edi
mov edi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], ecx
cmp dword [eax + 0x24], ecx
jne 0x492bab
cmp byte [eax + 0xd4], 1
jne 0x4917db
cmp byte [ebp + 0x28], 2
jne 0x492bab
mov ecx, eax
call fcn.004ad850
test eax, eax
jne 0x492bab
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x49180d
mov edx, dword [ecx]
test edx, edx
jle 0x49180d
add ecx, 0x14
nop dword [eax + eax]
test byte [ecx], 0x20
jne 0x491880
inc eax
add ecx, 0x14
cmp eax, edx
jl 0x491800
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x38], 1
je 0x491a96
lea eax, [esp + 0x50]
mov edx, edi
mov edi, dword [esp + 0x18]
mov ecx, edi
push eax
push esi
call fcn.0048c260
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
js 0x492bab
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xb1], 0
jne 0x4918b5
mov edx, dword [esp + 0x2c]
mov ecx, edi
call fcn.00495630
cmp dword [esi + 4], 0
jne 0x4918b5
mov esi, dword [esp + 0x24]
test eax, eax
je 0x4918b9
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x1c]
cmove esi, dword [esp + 0x38]
mov dword [esp + 0x24], esi
jmp 0x4918b9
mov edi, dword [esp + 0x10]
lea eax, [eax + eax*4]
mov al, byte [edi + eax*4 + 0x10]
test al, al
je 0x491898
cmp al, 3
mov eax, str.LAST
jne 0x49189d
mov eax, str.FIRST
push eax
mov eax, dword [esp + 0x1c]
push str.unsupported_use_of_NULLS__s
push eax
call fcn.0043f000
add esp, 0xc
jmp 0x492baf
mov esi, dword [esp + 0x24]
mov edx, dword [edi]
mov ecx, esi
mov dword [esp + 0x84], edi
add ecx, ecx
cmp esi, 1
xorps xmm0, xmm0
movlpd qword [esp + 0xb8], xmm0
mov eax, dword [edx + 0x10]
movlpd qword [esp + 0xc0], xmm0
movlpd qword [esp + 0xc8], xmm0
movlpd qword [esp + 0xd0], xmm0
mov eax, dword [eax + ecx*8]
mov dword [esp + 0xac], eax
mov eax, dword [edx + 0x10]
lea edx, [esp + 0xb8]
movlpd qword [esp + 0xdc], xmm0
movlpd qword [esp + 0xe4], xmm0
movlpd qword [esp + 0xec], xmm0
mov eax, dword [eax + ecx*8 + 0xc]
sete byte [esp + 0xa8]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xa4], eax
xor eax, eax
mov word [esp + 0x9c], ax
lea eax, [esp + 0x84]
mov dword [esp + 0xb4], ecx
lea ecx, [esp + 0x88]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xb0], str.index
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], 0x48a2d0
mov dword [esp + 0x90], 0x48a320
mov dword [esp + 0x94], fcn.00423f50
mov dword [esp + 0x98], 0
movlpd qword [esp + 0xf4], xmm0
movlpd qword [esp + 0xfc], xmm0
mov dword [esp + 0xd8], eax
call fcn.00474e90
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 8]
test edx, edx
je 0x4919f3
mov eax, dword [edi]
xor ecx, ecx
mov esi, dword [eax + 0x10]
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x4919e8
nop dword [eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x4919e0
add ecx, ecx
mov eax, dword [esi + ecx*8]
mov esi, dword [esp + 0x24]
jmp 0x4919f6
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [esp + 0x30]
xor edx, edx
mov ecx, edi
push dword [eax + 0x10]
call fcn.0048b720
mov ecx, eax
add esp, 8
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x492bab
cmp esi, 1
jne 0x491a6a
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x1c]
cmp eax, dword [ecx + 0x3c]
je 0x491a6a
push dword [ecx]
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
push edi
call fcn.0043f000
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov edx, dword [ecx + 8]
add ecx, 8
test edx, edx
je 0x492baf
cmp byte [edx + 0x36], 5
je 0x492b82
lea ecx, [edx + 0x14]
mov edx, dword [ecx]
test edx, edx
jne 0x491a52
jmp 0x492baf
test byte [ecx + 0x1c], 0x80
je 0x491adc
mov ecx, dword [ecx + 8]
mov dword [esp + 0x3c], ecx
test ecx, ecx
je 0x491adc
nop dword [eax + eax]
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x491a90
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x491a80
mov dword [esp + 0x3c], ecx
jmp 0x491adc
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xf0]
mov dword [esp + 0xc], eax
test eax, eax
je 0x492bab
mov ecx, dword [eax + 0x3c]
mov esi, 0xffff8000
mov dword [esp + 0x24], esi
test ecx, ecx
je 0x491adc
mov eax, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x24], esi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x491adc
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x491ad0
mov dword [esp + 0x24], esi
mov edi, dword [esp + 0x14]
mov ecx, esi
shl ecx, 4
mov edx, 7
mov dword [esp + 0x58], ecx
mov eax, dword [edi + 0x10]
add eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov dword [esp + 0x30], esi
test esi, esi
je 0x491b7e
mov edi, str.sqlite_
nop word [eax + eax]
mov al, byte [esi]
dec edx
test al, al
je 0x491b32
movzx ecx, byte [edi]
movzx eax, al
mov al, byte [eax + 0x5b3648]
cmp al, byte [ecx + 0x5b3648]
jne 0x491b32
inc esi
inc edi
test edx, edx
jg 0x491b10
dec edx
test edx, edx
js 0x491b4e
movzx eax, byte [edi]
movzx ecx, byte [eax + 0x5b3648]
movzx eax, byte [esi]
movzx eax, byte [eax + 0x5b3648]
sub eax, ecx
jne 0x491b76
mov edi, dword [esp + 0x14]
cmp byte [edi + 0xb1], 0
jne 0x491b7a
cmp dword [esp + 0x2c], 0
je 0x491b7a
mov eax, dword [esp + 0xc]
push dword [eax]
push str.table__s_may_not_be_indexed
push dword [esp + 0x20]
jmp 0x491a34
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
mov al, byte [edx + 0x2b]
cmp al, 2
jne 0x491b9f
push str.views_may_not_be_indexed
push dword [esp + 0x1c]
call fcn.0043f000
add esp, 8
jmp 0x491a3c
cmp al, 1
jne 0x491bb9
push str.virtual_tables_may_not_be_indexed
push dword [esp + 0x1c]
call fcn.0043f000
add esp, 8
jmp 0x491a3c
mov eax, dword [esp + 0x50]
test eax, eax
je 0x491d29
mov edi, dword [eax]
mov esi, dword [eax + 4]
test edi, edi
je 0x491d15
xor eax, eax
mov ecx, esi
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0043b7c0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x491d01
push esi
push edi
push eax
call fcn.00570750
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, eax
mov byte [esi + eax], 0
call fcn.0043f090
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
mov ecx, edi
mov edx, dword [esp + 0x20]
push dword [eax]
push str.index
call fcn.0048c2f0
add esp, 8
test eax, eax
jne 0x492b75
cmp byte [edi + 0xd4], 2
mov esi, dword [esp + 0x1c]
jae 0x491cf7
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xb1], 0
jne 0x491c83
push dword [esi]
mov edx, dword [esp + 0x24]
mov ecx, eax
call fcn.0048b340
add esp, 4
test eax, eax
je 0x491c7f
mov esi, dword [esp + 0x20]
push esi
push str.there_is_already_a_table_named__s
push edi
call fcn.0043f000
mov dword [esp + 0x2c], esi
jmp 0x491a39
mov eax, dword [esp + 0x14]
push dword [esi]
mov edx, dword [esp + 0x24]
mov ecx, eax
call fcn.0048b8e0
add esp, 4
test eax, eax
je 0x491cf7
cmp dword [ebp + 0x24], 0
jne 0x491cb6
mov esi, dword [esp + 0x20]
push esi
push str.index__s_already_exists
push edi
call fcn.0043f000
mov dword [esp + 0x2c], esi
jmp 0x491a39
mov eax, dword [edi + 0x78]
mov edx, edi
mov esi, dword [esp + 0x38]
test eax, eax
mov ecx, dword [esp + 0x24]
cmovne edx, eax
shl esi, cl
mov eax, dword [edx + 0x58]
test eax, esi
jne 0x491ce3
bts eax, ecx
mov dword [edx + 0x58], eax
cmp ecx, 1
jne 0x491ce3
mov ecx, edx
call fcn.00493f70
mov ecx, edi
call fcn.0048c590
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
jmp 0x491a3c
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
jmp 0x491d6f
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.0043f090
mov dword [esp + 0x20], esi
jmp 0x491a3c
xor ecx, ecx
call fcn.0043f090
mov dword [esp + 0x20], 0
jmp 0x491a3c
mov eax, dword [edx + 8]
mov ecx, 1
test eax, eax
je 0x491d3d
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x491d35
push ecx
push esi
push str.sqlite_autoindex__s__d
push edi
call fcn.0043e040
mov esi, eax
add esp, 0x10
mov dword [esp + 0x20], esi
test esi, esi
je 0x491a3c
mov edi, dword [esp + 0x18]
cmp byte [edi + 0xd4], 0
je 0x491d6b
inc byte [esi + 7]
mov esi, dword [esp + 0x1c]
cmp byte [edi + 0xd4], 2
jae 0x491dd5
mov esi, dword [esi]
mov ecx, str.sqlite_temp_master
cmp dword [esp + 0x24], 1
mov eax, str.sqlite_master
push esi
cmove eax, ecx
mov edx, 0x12
push 0
push eax
mov ecx, edi
call fcn.0048a7e0
add esp, 0xc
test eax, eax
jne 0x491a3c
mov eax, dword [esp + 0xc]
xor edx, edx
cmp dword [esp + 0x24], 1
mov ecx, edi
push esi
sete dl
push dword [eax]
push dword [esp + 0x28]
lea edx, [edx*2 + 1]
call fcn.0048a7e0
add esp, 0xc
test eax, eax
jne 0x491a3c
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x491eb0
mov eax, dword [esp + 0xc]
movsx ecx, word [eax + 0x22]
mov eax, dword [eax + 4]
add ecx, ecx
or word [eax + ecx*8 - 2], 8
mov eax, dword [eax + ecx*8 - 0x10]
mov dword [esp + 0x44], eax
test eax, eax
jne 0x491e04
xor esi, esi
jmp 0x491e1f
mov esi, eax
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x491e10
sub esi, ecx
and esi, 0x3fffffff
mov ecx, dword [esp + 0x14]
lea eax, [esi + 0x35]
push 0
push eax
call fcn.0043b7c0
mov edi, eax
add esp, 8
test edi, edi
je 0x491e74
push 0x34
push 0
push edi
call fcn.00570cd0
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 0x491e66
push esi
push dword [esp + 0x48]
push eax
call fcn.00570750
add esp, 0xc
mov eax, dword [edi + 8]
mov byte [esi + eax], 0
mov dword [edi + 0x18], 1
mov eax, dword [esp + 0x18]
mov edx, edi
mov ecx, dword [eax]
call fcn.0047a6e0
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x492b79
mov ecx, dword [ebp + 0x20]
xor eax, eax
movzx edx, cl
cmp ecx, 0xffffffff
mov ecx, dword [edi]
cmovne eax, edx
mov dword [esp + 0x44], eax
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x44]
mov byte [edi + eax*4 - 4], cl
jmp 0x491edd
mov ecx, dword [edi]
mov eax, dword [eax]
cmp eax, dword [ecx + 0x80]
jle 0x491ecf
push str.index
push str.too_many_columns_in__s
push edi
call fcn.0043f000
add esp, 0xc
cmp dword [edi + 0x24], 0
mov edi, dword [esp + 0x10]
jne 0x492b79
mov esi, dword [edi]
test esi, esi
jle 0x491f1d
lea edx, [edi + 8]
mov ecx, dword [edx]
cmp byte [ecx], 0x71
jne 0x491f11
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x491f06
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x491ef7
sub ecx, edi
and ecx, 0x3fffffff
mov eax, dword [esp + 0x34]
inc eax
add eax, ecx
mov dword [esp + 0x34], eax
add edx, 0x14
sub esi, 1
jne 0x491ee6
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x491f24
mov eax, dword [esp + 0x3c]
sub esi, ecx
and esi, 0x3fffffff
test eax, eax
je 0x491f41
movzx ecx, word [eax + 0x32]
jmp 0x491f46
mov ecx, 1
mov ax, word [edi]
add ax, cx
movzx eax, ax
mov dword [esp + 0x48], eax
cwde
mov dword [esp + 0x5c], eax
lea ecx, [eax*4 + 7]
lea eax, [eax + eax*4]
and ecx, 0xfffffff8
add eax, 9
mov dword [esp + 0x30], ecx
and eax, 0xfffffff8
add ecx, 0x48
add eax, ecx
mov dword [esp + 0x28], eax
add eax, esi
add eax, dword [esp + 0x34]
lea ecx, [eax + 1]
cdq
add eax, 1
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x14]
adc edx, 0
push edx
push eax
call fcn.0043b7c0
mov edi, eax
add esp, 8
mov dword [esp + 0x44], edi
test edi, edi
je 0x491fe8
push dword [esp + 0x34]
push 0
push edi
call fcn.00570cd0
mov ecx, dword [esp + 0x68]
lea eax, [edi + 0x48]
mov dword [edi + 0x20], eax
add esp, 0xc
add eax, dword [esp + 0x30]
mov dword [edi + 8], eax
lea eax, [eax + ecx*2]
add eax, 2
mov dword [edi + 4], eax
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x48]
mov word [edi + 0x34], ax
dec eax
mov word [edi + 0x32], ax
add ecx, edi
jmp 0x491fea
xor ecx, ecx
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x57], 0
jne 0x492b21
lea eax, [esi + 1]
mov dword [edi], ecx
add eax, ecx
mov dword [esp + 0x34], eax
lea eax, [esi + 1]
push eax
push dword [esp + 0x24]
push ecx
call fcn.00570750
mov ecx, dword [esp + 0x58]
add esp, 0xc
movzx edx, byte [ebp + 0x28]
mov eax, dword [edi + 0x38]
and edx, 3
mov esi, dword [esp + 0xc]
mov byte [edi + 0x36], cl
neg ecx
mov dword [edi + 0xc], esi
sbb ecx, ecx
mov dword [esp + 0x5c], edx
and eax, 0xfffffff7
and ecx, 8
or ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 0xfffffffc
or ecx, edx
cmp dword [esp + 0x54], 0
mov edx, dword [esp + 0x58]
mov dword [edi + 0x38], ecx
mov eax, dword [eax + 0x10]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
movzx eax, word [edx]
mov word [edi + 0x32], ax
mov ecx, eax
je 0x492151
mov edx, dword [esp + 0x18]
xorps xmm0, xmm0
mov eax, dword [esi]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xd0], esi
mov eax, dword [edx]
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
mov dword [esp + 0x7c], 0
movlpd qword [esp + 0xbc], xmm0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xcc], 0
movlpd qword [esp + 0xd4], xmm0
movlpd qword [esp + 0xdc], xmm0
movlpd qword [esp + 0xe4], xmm0
movlpd qword [esp + 0xf0], xmm0
movlpd qword [esp + 0xf8], xmm0
movlpd qword [esp + 0x100], xmm0
mov dword [esp + 0xb8], 1
mov dword [esp + 0xec], 0xffffffff
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0xb8]
cmp dword [esi + 0x3c], ecx
lea ecx, [esp + 0x60]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x60], edx
mov edx, 0x10002
mov dword [esp + 0x64], eax
mov eax, 0x50002
cmove eax, edx
mov edx, esi
mov dword [esp + 0x78], eax
call fcn.00477e20
movzx ecx, word [edi + 0x32]
mov edx, dword [esp + 0x10]
mov dword [edi + 0x24], esi
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x1c]
lea esi, [edx + 8]
mov dword [esp + 0x30], esi
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x4c]
mov byte [esp + 0x43], al
mov eax, dword [esp + 0x18]
cmp byte [eax + 0xd4], 2
jb 0x49217e
mov dword [edi + 0x28], edx
mov dword [esp + 0x10], 0
xor edx, edx
xor eax, eax
mov dword [esp + 0x1c], edx
cmp ax, cx
jae 0x492458
nop
mov eax, dword [esi]
mov cl, byte [eax]
cmp cl, 0x75
je 0x4921a6
cmp cl, 0x71
jne 0x4921a9
mov eax, dword [eax + 0xc]
cmp byte [eax], 0x75
jne 0x4921a9
mov byte [eax], 0x3b
mov ecx, dword [esp + 0xc]
xorps xmm0, xmm0
mov edx, dword [esp + 0x18]
movaps xmmword [esp + 0x60], xmm0
mov dword [esp + 0xd0], ecx
mov eax, dword [ecx]
mov dword [esp + 0xc8], eax
mov eax, dword [edx]
movaps xmmword [esp + 0x70], xmm0
movlpd qword [esp + 0xbc], xmm0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xcc], 0
movlpd qword [esp + 0xd4], xmm0
movlpd qword [esp + 0xdc], xmm0
movlpd qword [esp + 0xe4], xmm0
movlpd qword [esp + 0xf0], xmm0
movlpd qword [esp + 0xf8], xmm0
movlpd qword [esp + 0x100], xmm0
mov dword [esp + 0xb8], 1
mov dword [esp + 0xec], 0xffffffff
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0xb8]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x64], eax
mov eax, 0x50020
cmp dword [edx + 0x3c], ecx
mov ecx, 0x10020
mov edx, dword [esi]
cmove eax, ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], eax
call fcn.00477e20
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x24], 0
jne 0x4924aa
mov eax, dword [esi]
test eax, eax
je 0x492297
test dword [eax + 4], 0x2000
je 0x492297
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x492287
cmp byte [eax], 0xa7
je 0x4922ea
mov edx, dword [esp + 0xc]
cmp edx, dword [ecx + 0xf0]
je 0x49249c
cmp dword [edi + 0x28], 0
jne 0x4922c1
mov eax, dword [esp + 0x10]
mov dword [edi + 0x28], eax
mov dword [esp + 0x10], 0
mov eax, dword [edi + 4]
mov ecx, 0xfffffffe
mov esi, dword [esp + 0x1c]
mov edx, ecx
mov word [eax + esi*2], dx
mov eax, dword [edi + 0x38]
mov edx, dword [esp + 0xc]
and eax, 0xfffffff7
or eax, 0x800
add edx, 4
mov dword [edi + 0x38], eax
jmp 0x492332
movsx ecx, word [eax + 0x20]
test ecx, ecx
jns 0x4922ff
mov eax, dword [esp + 0xc]
movsx ecx, word [eax + 0x20]
lea edx, [eax + 4]
jmp 0x492327
mov edx, dword [esp + 0xc]
mov esi, ecx
add edx, 4
add esi, esi
mov eax, dword [edx]
test byte [eax + esi*8 + 4], 0xf
jne 0x492317
and dword [edi + 0x38], 0xfffffff7
mov eax, dword [edx]
test byte [eax + esi*8 + 0xe], 0x20
je 0x492327
or dword [edi + 0x38], 0xc00
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x1c]
mov word [eax + esi*2], cx
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
cmp byte [eax], 0x71
jne 0x492382
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x492348
xor esi, esi
jmp 0x49235f
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x492350
sub esi, edx
and esi, 0x3fffffff
inc esi
push esi
push ecx
push dword [esp + 0x3c]
call fcn.00570750
mov eax, dword [esp + 0x40]
add esp, 0xc
mov dword [esp + 0x28], eax
add eax, esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x34], eax
jmp 0x4923b9
test ecx, ecx
js 0x4923bd
shl ecx, 4
add ecx, dword [edx]
movzx edx, word [ecx + 0xe]
test edx, 0x200
je 0x4923bd
mov eax, dword [ecx]
cmp byte [eax], 0
je 0x4923a6
nop
inc eax
cmp byte [eax], 0
jne 0x4923a0
test dl, 4
je 0x4923b6
nop dword [eax + eax]
inc eax
cmp byte [eax], 0
jne 0x4923b0
lea esi, [eax + 1]
test esi, esi
jne 0x4923c2
mov esi, 0x5b3024
mov eax, dword [esp + 0x14]
cmp byte [eax + 0xb1], 0
jne 0x49241e
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov al, byte [ecx + 0xb1]
mov dl, byte [ecx + 0x54]
mov byte [esp + 0x41], al
movzx eax, al
push eax
push esi
mov byte [esp + 0x4a], dl
call fcn.00494cb0
add esp, 8
cmp byte [esp + 0x41], 0
jne 0x492416
test eax, eax
je 0x492404
cmp dword [eax + 0xc], 0
jne 0x49241e
mov dl, byte [esp + 0x42]
mov ecx, dword [esp + 0x18]
push esi
push eax
call fcn.00494dc0
add esp, 8
test eax, eax
je 0x4924aa
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0x20]
mov dword [eax + edx*4], esi
xor eax, eax
mov esi, dword [esp + 0x30]
cmp byte [esp + 0x43], 4
movzx ecx, byte [esi + 8]
cmovb ecx, eax
mov eax, dword [edi + 0x1c]
add esi, 0x14
mov dword [esp + 0x30], esi
mov byte [edx + eax], cl
inc edx
movzx eax, word [edi + 0x32]
mov dword [esp + 0x1c], edx
cmp edx, eax
jl 0x492190
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4924fa
xor eax, eax
xor esi, esi
cmp ax, word [ecx + 0x32]
jae 0x49250e
mov eax, dword [ecx + 4]
movzx edx, word [edi + 0x32]
push esi
push ecx
movzx eax, word [eax + esi*2]
mov ecx, edi
mov dword [esp + 0x30], eax
call fcn.0048e600
add esp, 8
test eax, eax
je 0x4924b3
mov eax, 0xffff
add word [edi + 0x34], ax
jmp 0x4924e7
push str.expressions_prohibited_in_PRIMARY_KEY_and_UNIQUE_constraints
push ecx
call fcn.0043f000
add esp, 8
mov esi, dword [esp + 0x14]
jmp 0x492b23
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
mov word [eax + edx*2], cx
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 0x20]
mov eax, dword [eax + 0x20]
mov eax, dword [eax + esi*4]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [edi + 0x1c]
mov eax, dword [eax + 0x1c]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
inc edx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x3c]
inc esi
movzx eax, word [ecx + 0x32]
cmp esi, eax
jl 0x492472
jmp 0x49250e
mov eax, dword [edi + 4]
or ecx, 0xffffffff
mov word [eax + edx*2], cx
mov eax, dword [edi + 0x20]
mov dword [eax + edx*4], 0x5b3024
mov ecx, edi
call fcn.00492c10
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xf0], 0
jne 0x492529
mov ecx, edi
call fcn.0048e580
mov ecx, edi
call fcn.0048e6a0
cmp dword [esp + 0x2c], 0
je 0x492583
mov ecx, dword [esp + 0xc]
movzx esi, word [edi + 0x34]
movsx eax, word [ecx + 0x22]
cmp esi, eax
jl 0x492583
or dword [edi + 0x38], 0x20
xor edx, edx
movsx eax, word [ecx + 0x22]
mov dword [esp + 0x28], eax
test eax, eax
jle 0x492583
movsx ecx, word [ecx + 0x20]
mov dword [esp + 0x48], ecx
cmp edx, ecx
je 0x4925f1
xor eax, eax
test esi, esi
je 0x49257f
mov ecx, dword [edi + 4]
cmp dx, word [ecx]
je 0x4925e1
inc eax
add ecx, 2
cmp eax, esi
jl 0x492572
and dword [edi + 0x38], 0xffffffdf
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp eax, dword [edx + 0xf0]
jne 0x492695
mov esi, dword [eax + 8]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x492695
movzx ecx, word [edi + 0x32]
nop word [eax + eax]
movzx eax, word [esi + 0x32]
cmp ax, cx
jne 0x49267e
xor edx, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
test eax, eax
je 0x492676
mov ecx, dword [edi + 4]
mov eax, dword [esi + 4]
sub eax, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], eax
jmp 0x492604
movzx eax, ax
test ax, ax
js 0x49257f
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
inc edx
cmp edx, eax
jl 0x492561
jmp 0x492583
mov eax, dword [esp + 0x28]
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x49266e
mov eax, dword [esi + 0x20]
mov ecx, dword [edi + 0x20]
mov eax, dword [eax + edx*4]
mov esi, dword [ecx + edx*4]
sub esi, eax
nop dword [eax + eax]
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x492651
test edx, edx
jne 0x492663
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
inc edx
mov eax, dword [esp + 0x30]
add ecx, 2
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
cmp edx, eax
jl 0x492600
jmp 0x492672
movzx ecx, byte [ecx + 0x5b3648]
movzx edx, byte [edx + 0x5b3648]
sub edx, ecx
jne 0x492666
inc eax
jmp 0x492620
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
movzx ecx, word [edi + 0x32]
cmp edx, eax
je 0x492709
mov esi, dword [esi + 0x14]
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x4925b0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp byte [edx + 0xd4], 2
mov esi, dword [esp + 0x14]
jae 0x492ae6
cmp byte [esi + 0xb1], 0
je 0x4927b5
cmp dword [esp + 0x2c], 0
je 0x4926e4
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + 0xac]
mov dword [edi + 0x2c], ecx
mov eax, dword [eax + 8]
test eax, eax
je 0x4926e4
nop dword [eax]
cmp dword [eax + 0x2c], ecx
jne 0x4926dd
cmp eax, edi
jne 0x492773
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4926d0
mov ecx, dword [edi + 0x18]
mov edx, dword [edi]
add ecx, 0x18
push edi
call fcn.004408a0
add esp, 4
test eax, eax
je 0x4927ac
mov ecx, esi
call fcn.0043ba90
jmp 0x492b23
mov al, byte [esi + 0x36]
mov cl, byte [edi + 0x36]
cmp al, cl
je 0x49273b
cmp al, 0xb
je 0x49272f
cmp cl, 0xb
je 0x49272f
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push dword [esp + 0x20]
call fcn.0043f000
add esp, 0xc
cmp byte [esi + 0x36], 0xb
jne 0x49273b
mov al, byte [edi + 0x36]
mov byte [esi + 0x36], al
cmp byte [ebp + 0x28], 2
jne 0x49274e
mov eax, dword [esi + 0x38]
and eax, 0xfffffffc
or eax, dword [esp + 0x5c]
mov dword [esi + 0x38], eax
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0xd4], 2
jb 0x4924aa
mov eax, dword [ecx + 0xf4]
mov dword [edi + 0x14], eax
mov dword [ecx + 0xf4], edi
jmp 0x491a3c
push str.invalid_rootpage
push edx
call fcn.0043f000
push 0x5cad1c
push 0x1d902
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e300
mov eax, dword [esp + 0x34]
add esp, 0x1c
mov dword [eax + 0xc], 0xb
jmp 0x492b23
or dword [esi + 0x18], 1
jmp 0x492ae2
test byte [eax + 0x1c], 0x80
je 0x4927c7
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x492aea
inc dword [edx + 0x2c]
mov esi, dword [edx + 8]
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x1c], eax
test esi, esi
je 0x4927dd
lea eax, [edx + 0x78]
jmp 0x492807
cmp dword [edx + 0x78], 0
jne 0x4927ef
mov eax, dword [edx]
test byte [eax + 0x50], 8
jne 0x4927ef
mov byte [edx + 0x17], 1
mov ecx, edx
call fcn.004606d0
mov edx, dword [esp + 0x18]
mov esi, eax
lea eax, [edx + 0x78]
test esi, esi
je 0x4924aa
mov eax, dword [eax]
test eax, eax
mov ecx, dword [esp + 0x24]
cmovne edx, eax
shl dword [esp + 0x38], cl
mov dword [esp + 0x28], edx
mov eax, dword [edx + 0x58]
test dword [esp + 0x38], eax
jne 0x49283d
bts eax, ecx
mov dword [edx + 0x58], eax
cmp ecx, 1
jne 0x49283d
mov ecx, edx
call fcn.00493f70
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [edx + 0x54]
or byte [edx + 0x14], 1
bts eax, ecx
mov dword [edx + 0x54], eax
mov edx, dword [esi + 0x6c]
cmp dword [esi + 0x70], edx
jg 0x492872
push 0
push 0
push 0
mov edx, 0xb8
mov ecx, esi
call fcn.00460920
mov edx, eax
add esp, 0xc
lea eax, [esi + 0x68]
mov dword [esp + 0x38], eax
jmp 0x4928af
mov edi, dword [esp + 0x44]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
lea eax, [esi + 0x68]
mov dword [esp + 0x38], eax
mov eax, dword [eax]
mov dword [eax + ecx*4], 0xb8
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov dword [edi + 0x2c], edx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4928d6
mov edx, dword [esp + 0x1c]
mov ecx, esi
push 2
push edx
push dword [esp + 0x2c]
mov edx, 0x93
call fcn.00460920
add esp, 0xc
jmp 0x49290c
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x93
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 2
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [ebp + 0x18], 0
je 0x49295e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
mov edx, dword [eax + 0xcc]
add edx, dword [eax + 0xc8]
mov eax, dword [ecx]
mov ecx, edx
sub ecx, eax
push eax
cmp byte [edx - 1], 0x3b
mov edx, str._UNIQUE
lea eax, [ecx - 1]
cmovne eax, ecx
cmp dword [esp + 0x50], 0
push eax
mov eax, 0x5bc114
cmovne eax, edx
push eax
push str.CREATE_s_INDEX__.s
push dword [esp + 0x24]
call fcn.0043e040
add esp, 0x14
jmp 0x492960
xor eax, eax
mov ecx, dword [esp + 0x58]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
push dword [eax]
mov eax, dword [esp + 0x20]
push dword [edi]
mov eax, dword [eax + 0x10]
push dword [ecx + eax]
push str.INSERT_INTO__Q.sqlite_master_VALUES_index__Q__Q__d__Q__
push dword [esp + 0x30]
call fcn.0048b230
mov edx, dword [esp + 0x68]
add esp, 0x1c
test edx, edx
je 0x4929a1
mov ecx, dword [esp + 0x14]
call fcn.0043b330
cmp dword [esp + 0x2c], 0
je 0x492a76
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, edi
call fcn.00490ec0
mov eax, dword [esp + 0x1c]
add esp, 4
mov edx, dword [esp + 0x58]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x48], ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx + 0xc]
mov edx, dword [eax]
mov eax, dword [ecx + 0x6c]
inc edx
mov dword [esp + 0x28], eax
cmp dword [ecx + 0x70], eax
jg 0x4929fb
push edx
push 1
push dword [esp + 0x2c]
mov edx, 0x64
call fcn.00460920
add esp, 0xc
jmp 0x492a34
mov edi, dword [esp + 0x24]
inc eax
mov dword [ecx + 0x6c], eax
mov eax, dword [esp + 0x28]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x44]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push 0
push ecx
push dword [edi]
push str.name_q_AND_typeindex
push dword [esp + 0x24]
call fcn.0043e040
mov edx, dword [esp + 0x38]
add esp, 0x10
mov ecx, esi
push eax
call fcn.00460ed0
mov ecx, dword [esi + 0x6c]
add esp, 8
cmp dword [esi + 0x70], ecx
jg 0x492a90
push 0
push 1
push 0
mov edx, 0xa6
mov ecx, esi
call fcn.00460920
add esp, 0xc
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x28], eax
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
je 0x492acc
mov eax, 0x5dfc94
jmp 0x492ad7
mov edx, dword [esp + 0x38]
lea eax, [ecx + 1]
mov edi, dword [esp + 0x44]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x6c], eax
mov eax, dword [edx]
mov dword [eax + ecx*4], 0xa6
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x492a7a
mov eax, dword [edi + 0x2c]
lea ecx, [eax + eax*4]
mov eax, dword [edx]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
cmp byte [esi + 0xb1], 0
jne 0x492b0b
test eax, eax
je 0x492b0b
cmp byte [edx + 0xd4], 2
jb 0x492b23
mov dword [edx + 0xf4], edi
jmp 0x491a3c
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 8]
mov dword [edi + 0x14], eax
mov dword [ecx + 8], edi
jmp 0x491a40
mov esi, eax
test edi, edi
je 0x491a3c
push dword [edi + 0x24]
push esi
call fcn.00479a00
mov edx, dword [edi + 0x28]
add esp, 8
test edx, edx
je 0x492b45
mov ecx, esi
call fcn.0047ac20
mov edx, dword [edi + 0x10]
test edx, edx
je 0x492b53
mov ecx, esi
call fcn.0043b330
test byte [edi + 0x38], 0x10
je 0x492b67
mov edx, dword [edi + 0x20]
test edx, edx
je 0x492b67
mov ecx, esi
call fcn.0043b330
mov edx, edi
mov ecx, esi
call fcn.0043b330
jmp 0x491a3c
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
jmp 0x491a44
mov eax, dword [edx + 0x14]
test eax, eax
je 0x492baf
nop dword [eax]
cmp byte [eax + 0x36], 5
je 0x492baf
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 0x492b90
jmp 0x492baf
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x14]
test eax, eax
je 0x492bc4
mov edx, eax
mov ecx, esi
call fcn.004798d0
test edi, edi
je 0x492bd1
mov edx, edi
mov ecx, esi
call fcn.0047ac20
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.004936b0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x492bed
mov edx, eax
mov ecx, esi
call fcn.0043b330
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.0056eb71
mov esp, ebp
pop ebp
ret