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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x158
mov eax, dword [0x609e44]
xor eax, esp
mov dword [esp + 0x154], eax
mov eax, ecx
mov dword [esp + 0x28], 0
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax]
push esi
mov esi, edx
mov dword [esp + 4], eax
mov edx, dword [ebp + 0xc]
cmp byte [ecx + 0x51], 0
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x20], 0
jne 0x4a9da9
cmp dword [eax + 0x24], 0
jg 0x4a9da9
cmp byte [eax + 0xcc], 1
jne 0x4a8a28
cmp byte [ebp + 0x28], 2
jne 0x4a9da9
mov ecx, eax
call fcn.004c29b0
test eax, eax
jne 0x4a9da9
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 8]
call fcn.004a8930
test eax, eax
jne 0x4a9da9
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x38], 1
test edx, edx
je 0x4a8ca2
cmp dword [edi + 4], 0
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
jbe 0x4a8abe
cmp byte [eax + 0xa5], 0
je 0x4a8a88
push str.corrupt_database
push ecx
call fcn.0045b840
add esp, 8
jmp 0x4a9da9
mov edx, esi
mov dword [esp + 0x4c], edi
mov ecx, eax
call fcn.004a3600
mov dword [esp + 0x18], eax
test eax, eax
jns 0x4a8ab4
push esi
push str.unknown_database__T
push dword [esp + 0x10]
call fcn.0045b840
add esp, 0xc
jmp 0x4a9da9
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
jmp 0x4a8acd
movzx eax, byte [eax + 0xa4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0xc]
cmp byte [esi + 0xa5], 0
jne 0x4a8aff
call fcn.004acc40
cmp dword [edi + 4], 0
jne 0x4a8aff
test eax, eax
je 0x4a8aff
mov ecx, dword [esi + 0x10]
mov eax, dword [eax + 0x48]
mov edi, dword [esp + 0x18]
cmp eax, dword [ecx + 0x1c]
cmove edi, dword [esp + 0x38]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
shl ecx, 4
mov eax, dword [edi]
mov dword [esp + 0xa0], edi
mov dword [esp + 0xb0], str.index
add ecx, dword [eax + 0x10]
cmp dword [esp + 0x18], 1
sete byte [esp + 0xa8]
mov eax, dword [ecx]
mov dword [esp + 0xac], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0xa0]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xb4], eax
call fcn.004a1610
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 8]
test edx, edx
je 0x4a8b89
mov eax, dword [edi]
xor ecx, ecx
mov esi, dword [eax + 0x10]
cmp dword [esi + 0xc], edx
lea eax, [esi + 0xc]
je 0x4a8b7e
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x4a8b76
add ecx, ecx
mov eax, dword [esi + ecx*8]
mov esi, dword [esp + 0xc]
jmp 0x4a8b8c
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [esp + 0x30]
xor edx, edx
mov ecx, edi
push dword [eax + 0x10]
call fcn.004a28c0
mov ecx, eax
add esp, 8
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x4a9da9
cmp dword [esp + 0x18], 1
jne 0x4a8bd5
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x1c]
cmp eax, dword [ecx + 0x48]
je 0x4a8bd5
push dword [ecx]
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
push edi
call fcn.0045b840
add esp, 0xc
jmp 0x4a9d64
test byte [ecx + 0x24], 0x80
je 0x4a8bfa
mov ecx, dword [ecx + 8]
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x4a8bfa
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x4a8bf6
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x4a8be6
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov eax, dword [edx + 0x10]
mov edx, 7
shl ecx, 4
add eax, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
mov dword [esp + 0x10], esi
test esi, esi
je 0x4a8d02
mov edi, str.sqlite_
nop
mov al, byte [esi]
dec edx
test al, al
je 0x4a8c52
movzx ecx, byte [edi]
movzx eax, al
mov al, byte [eax + 0x5fad68]
cmp al, byte [ecx + 0x5fad68]
jne 0x4a8c52
inc esi
inc edi
test edx, edx
jg 0x4a8c30
dec edx
test edx, edx
js 0x4a8c72
movzx eax, byte [edi]
movzx ecx, byte [eax + 0x5fad68]
movzx eax, byte [esi]
movzx eax, byte [eax + 0x5fad68]
sub eax, ecx
jne 0x4a8cfa
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
cmp byte [edx + 0xa5], 0
jne 0x4a8cf4
cmp dword [esp + 0x2c], 0
je 0x4a8cf4
push dword [eax]
push str.table__s_may_not_be_indexed
push dword [esp + 0x10]
call fcn.0045b840
add esp, 0xc
jmp 0x4a9d64
mov eax, dword [esp + 8]
mov eax, dword [eax + 0xe8]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4a9da9
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x18], 0xffff8000
test ecx, ecx
je 0x4a8bfa
mov edx, dword [esp + 0xc]
xor esi, esi
mov dword [esp + 0x18], esi
mov eax, dword [edx + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x4a8bfe
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x4a8ce3
mov dword [esp + 0x18], esi
jmp 0x4a8bfe
mov esi, dword [esp + 0x10]
jmp 0x4a8d06
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
cmp dword [eax + 0xc], 0
je 0x4a8d22
push str.views_may_not_be_indexed
push dword [esp + 0xc]
call fcn.0045b840
add esp, 8
jmp 0x4a9d64
cmp dword [eax + 0x38], 0
je 0x4a8d3e
push str.virtual_tables_may_not_be_indexed
push dword [esp + 0xc]
call fcn.0045b840
add esp, 8
jmp 0x4a9d64
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4a8eb3
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4a8e9f
xor eax, eax
mov ecx, edi
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edx
call fcn.004581b0
mov esi, eax
add esp, 8
test esi, esi
je 0x4a8e8f
push edi
push dword [esp + 0x14]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [edi + esi], 0
mov ecx, esi
call fcn.0045b950
mov eax, dword [esp + 0x14]
mov edx, esi
mov edi, dword [esp + 8]
mov ecx, edi
mov dword [esp + 0x30], esi
push dword [eax]
push str.index
call fcn.004a36f0
add esp, 8
test eax, eax
jne 0x4a9d64
cmp byte [edi + 0xcc], 2
jae 0x4a8e81
mov eax, dword [esp + 0xc]
cmp byte [eax + 0xa5], 0
jne 0x4a8e02
push 0
mov edx, esi
mov ecx, eax
call fcn.004a24e0
add esp, 4
test eax, eax
je 0x4a8dfe
push esi
push str.there_is_already_a_table_named__s
push edi
call fcn.0045b840
add esp, 0xc
mov dword [esp + 0x30], esi
jmp 0x4a9d64
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
mov edx, esi
mov ecx, eax
push dword [edi]
call fcn.004a2a70
add esp, 4
test eax, eax
je 0x4a8e85
cmp dword [ebp + 0x24], 0
jne 0x4a8e39
push esi
push str.index__s_already_exists
push dword [esp + 0x10]
call fcn.0045b840
add esp, 0xc
mov dword [esp + 0x30], esi
jmp 0x4a9d64
mov edx, dword [esp + 8]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], esi
mov eax, dword [edx + 0x74]
test eax, eax
cmovne edx, eax
shl edi, cl
mov eax, dword [edx + 0x54]
test eax, edi
jne 0x4a9d64
bts eax, ecx
mov dword [esp + 0x30], esi
mov dword [edx + 0x54], eax
cmp ecx, 1
jne 0x4a9d64
mov ecx, edx
call fcn.004ab2f0
mov dword [esp + 0x30], esi
jmp 0x4a9d64
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 8]
mov dword [esp + 0x30], esi
jmp 0x4a8efa
mov ecx, esi
call fcn.0045b950
mov dword [esp + 0x30], esi
jmp 0x4a9d64
xor ecx, ecx
call fcn.0045b950
mov dword [esp + 0x30], 0
jmp 0x4a9d64
mov eax, dword [eax + 8]
mov ecx, 1
test eax, eax
je 0x4a8ec8
nop
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x4a8ec0
push ecx
push esi
push str.sqlite_autoindex__s__d
push edx
call fcn.0045aa50
mov esi, eax
add esp, 0x10
mov dword [esp + 0x30], esi
test esi, esi
je 0x4a9d64
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x1c]
cmp byte [eax + 0xcc], 0
je 0x4a8efa
inc byte [esi + 7]
cmp byte [eax + 0xcc], 2
jae 0x4a8f66
mov esi, dword [edi]
mov ecx, str.sqlite_temp_master
cmp dword [esp + 0x18], 1
mov eax, str.sqlite_master
mov edi, dword [esp + 8]
mov edx, 0x12
push esi
cmove eax, ecx
mov ecx, edi
push 0
push eax
call fcn.004a1b40
add esp, 0xc
test eax, eax
jne 0x4a9d64
mov eax, dword [esp + 0x14]
xor edx, edx
cmp dword [esp + 0x18], 1
mov ecx, edi
push esi
sete dl
push dword [eax]
push dword [esp + 0x38]
lea edx, [edx*2 + 1]
call fcn.004a1b40
add esp, 0xc
test eax, eax
jne 0x4a9d64
jmp 0x4a8f6a
mov edi, dword [esp + 8]
mov esi, dword [esp + 0x28]
test esi, esi
jne 0x4a9065
mov edx, dword [esp + 0x14]
movsx eax, word [edx + 0x2a]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 4]
or word [eax + ecx*4 - 4], 8
mov eax, dword [eax + ecx*4 - 0x14]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4a8faf
mov esi, eax
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a8fa0
sub esi, ecx
and esi, 0x3fffffff
mov ecx, dword [esp + 0xc]
lea eax, [esi + 0x35]
push 0
push eax
call fcn.004581b0
mov edi, eax
add esp, 8
test edi, edi
je 0x4a9004
push 0x34
push 0
push edi
call sub.VCRUNTIME140.dll_memset
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 0x4a8ff6
push esi
push dword [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [edi + 8]
mov byte [esi + eax], 0
mov dword [edi + 0x18], 1
mov eax, dword [esp + 8]
push 0
push 0x18
mov esi, dword [eax]
mov ecx, esi
call fcn.004581b0
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
je 0x4a904b
mov esi, eax
xorps xmm0, xmm0
mov eax, dword [ebp + 0x20]
xor edx, edx
movzx ecx, al
cmp eax, 0xffffffff
mov dword [esi], 1
cmovne edx, ecx
movups xmmword [esi + 8], xmm0
mov dword [esi + 4], edi
mov eax, dword [esi]
lea eax, [eax + eax*4]
mov byte [esi + eax*4 - 8], dl
jmp 0x4a908b
test edi, edi
je 0x4a9058
mov edx, edi
mov ecx, esi
call fcn.00492560
mov dword [esp + 0x28], 0
jmp 0x4a9d64
mov ecx, dword [edi]
mov eax, dword [esi]
cmp eax, dword [ecx + 0x74]
jle 0x4a9081
push str.index
push str.too_many_columns_in__s
push edi
call fcn.0045b840
add esp, 0xc
cmp dword [edi + 0x24], 0
jne 0x4a9d64
mov esi, dword [esi]
mov edx, dword [esp + 0x28]
test esi, esi
jle 0x4a90d6
add edx, 4
mov ecx, dword [edx]
cmp byte [ecx], 0x6f
jne 0x4a90ca
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x4a90bf
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a90b0
sub ecx, edi
and ecx, 0x3fffffff
mov eax, dword [esp + 0x24]
inc eax
add eax, ecx
mov dword [esp + 0x24], eax
add edx, 0x14
sub esi, 1
jne 0x4a9098
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov eax, edx
add eax, 4
mov dword [esp + 0x10], eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a90e6
mov eax, dword [esp + 0x20]
sub esi, ecx
and esi, 0x3fffffff
test eax, eax
je 0x4a9103
movzx ecx, word [eax + 0x32]
jmp 0x4a9108
mov ecx, 1
movzx edx, word [edx]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x28]
add dx, cx
mov ecx, dword [esp + 0x10]
inc eax
add eax, esi
push eax
call fcn.004a8890
mov edi, eax
add esp, 8
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], edi
cmp byte [eax + 0x51], 0
jne 0x4a9d51
mov ecx, dword [esp + 0x3c]
mov dword [edi], ecx
lea eax, [ecx + 1]
add eax, esi
mov dword [esp + 0x3c], eax
lea eax, [esi + 1]
push eax
push dword [esp + 0x34]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x64]
add esp, 0xc
movzx edx, byte [ebp + 0x28]
mov eax, dword [edi + 0x38]
and edx, 3
mov esi, dword [esp + 0x14]
mov byte [edi + 0x36], cl
neg ecx
mov dword [edi + 0xc], esi
sbb ecx, ecx
mov dword [esp + 0x48], edx
and eax, 0xfffffff7
and ecx, 8
or ecx, eax
mov eax, dword [esp + 0xc]
and ecx, 0xfffffffc
or ecx, edx
cmp dword [esp + 0x50], 0
mov edx, dword [esp + 0x54]
mov dword [edi + 0x38], ecx
mov eax, dword [eax + 0x10]
mov eax, dword [edx + eax + 0xc]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x28]
movzx eax, word [eax]
mov ecx, eax
mov word [edi + 0x32], ax
mov edx, eax
je 0x4a929a
mov edx, dword [esp + 8]
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 + 0x48], ecx
lea ecx, [esp + 0x60]
mov esi, dword [esp + 0x50]
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.004911c0
movzx eax, word [edi + 0x32]
mov dword [edi + 0x24], esi
mov edx, eax
mov dword [esp + 0x50], 0
jmp 0x4a929c
mov eax, ecx
movzx ecx, ax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x4c]
mov byte [esp + 0x43], al
mov eax, dword [esp + 8]
cmp byte [eax + 0xcc], 2
jb 0x4a92c9
mov eax, dword [esp + 0x28]
mov dword [edi + 0x28], eax
mov dword [esp + 0x28], 0
mov eax, ecx
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x1c], esi
cmp cx, dx
jae 0x4a95aa
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
mov cl, byte [eax]
cmp cl, 0x73
je 0x4a92f6
cmp cl, 0x6f
jne 0x4a92f9
mov eax, dword [eax + 0xc]
cmp byte [eax], 0x73
jne 0x4a92f9
mov byte [eax], 0x3b
mov ecx, dword [esp + 0x14]
xorps xmm0, xmm0
mov esi, dword [esp + 0x14]
mov edx, dword [edx]
movaps xmmword [esp + 0x80], xmm0
mov eax, dword [ecx]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x120], ecx
movaps xmmword [esp + 0x90], xmm0
movlpd qword [esp + 0x10c], xmm0
mov eax, dword [eax]
mov dword [esp + 0x114], 0
mov dword [esp + 0x11c], 0
movlpd qword [esp + 0x124], xmm0
movlpd qword [esp + 0x12c], xmm0
movlpd qword [esp + 0x134], xmm0
movlpd qword [esp + 0x140], xmm0
movlpd qword [esp + 0x148], xmm0
movlpd qword [esp + 0x150], xmm0
mov dword [esp + 0x108], 1
mov dword [esp + 0x13c], 0xffffffff
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 8]
cmp dword [esi + 0x48], ecx
mov ecx, 0x10020
mov dword [esp + 0x80], eax
lea eax, [esp + 0x108]
mov dword [esp + 0x84], eax
mov eax, 0x50020
cmove eax, ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0x98], eax
call fcn.004911c0
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x1c]
cmp dword [ecx + 0x24], 0
jne 0x4a961e
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4a9405
test dword [eax + 4], 0x1000
je 0x4a9405
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4a93f5
cmp byte [eax], 0xa4
je 0x4a944a
mov edx, dword [esp + 0x14]
cmp edx, dword [ecx + 0xe8]
je 0x4a9610
cmp dword [edi + 0x28], 0
jne 0x4a942f
mov eax, dword [esp + 0x28]
mov dword [edi + 0x28], eax
mov dword [esp + 0x28], 0
mov eax, dword [edi + 4]
mov ecx, 0xfffffffe
mov edx, ecx
mov word [eax + esi*2], dx
mov edx, dword [esp + 0x14]
and dword [edi + 0x38], 0xfffffff7
add edx, 4
jmp 0x4a9491
movsx ecx, word [eax + 0x20]
test ecx, ecx
jns 0x4a945f
mov eax, dword [esp + 0x14]
movsx ecx, word [eax + 0x28]
lea edx, [eax + 4]
jmp 0x4a948a
mov edx, dword [esp + 0x14]
lea esi, [ecx + ecx*4]
add edx, 4
mov eax, dword [edx]
cmp byte [eax + esi*4 + 0xc], 0
jne 0x4a9476
and dword [edi + 0x38], 0xfffffff7
mov eax, dword [edx]
test byte [eax + esi*4 + 0x10], 0x20
mov esi, dword [esp + 0x1c]
je 0x4a948a
or dword [edi + 0x38], 0x400
mov eax, dword [edi + 4]
mov word [eax + esi*2], cx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp byte [eax], 0x6f
jne 0x4a94dc
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4a94a7
xor esi, esi
jmp 0x4a94bf
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a94b0
sub esi, edx
and esi, 0x3fffffff
mov edi, dword [esp + 0x3c]
inc esi
push esi
push ecx
push edi
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + edi]
add esp, 0xc
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
jmp 0x4a94e9
test ecx, ecx
js 0x4a94ed
mov eax, dword [edx]
lea ecx, [ecx + ecx*4]
mov edi, dword [eax + ecx*4 + 8]
test edi, edi
jne 0x4a94f2
mov edi, 0x5fa794
mov eax, dword [esp + 0xc]
cmp byte [eax + 0xa5], 0
jne 0x4a956c
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov dl, byte [ecx + 0x4e]
mov al, byte [ecx + 0xa5]
mov byte [esp + 0x37], dl
mov byte [esp + 0x36], al
test edi, edi
je 0x4a9608
movzx eax, al
mov edx, edi
push eax
call fcn.004ac2d0
mov dl, byte [esp + 0x3b]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4a9542
movzx eax, dl
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
add ecx, 0xffffffec
mov al, byte [esp + 0x36]
test al, al
jne 0x4a9564
test ecx, ecx
je 0x4a9554
cmp dword [ecx + 0xc], 0
jne 0x4a956c
push edi
push ecx
mov ecx, dword [esp + 0x10]
call fcn.004ac460
add esp, 8
mov ecx, eax
test ecx, ecx
je 0x4a961e
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0x20]
mov dword [eax + esi*4], edi
xor eax, eax
mov edi, dword [esp + 0x24]
movzx ecx, byte [edx + 8]
cmp byte [esp + 0x43], 4
cmovb ecx, eax
mov eax, dword [edi + 0x1c]
add edx, 0x14
mov dword [esp + 0x10], edx
mov byte [esi + eax], cl
inc esi
movzx eax, word [edi + 0x32]
mov dword [esp + 0x1c], esi
cmp esi, eax
jl 0x4a92e0
mov edx, dword [esp + 0x20]
movzx eax, ax
test edx, edx
je 0x4a9675
xor ecx, ecx
xor esi, esi
cmp cx, word [edx + 0x32]
jae 0x4a9689
mov ecx, eax
nop dword [eax]
mov eax, dword [edx + 4]
movzx ecx, cx
push esi
push edx
movzx eax, word [eax + esi*2]
mov edx, ecx
mov dword [esp + 0x4c], eax
mov eax, ecx
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.004a5670
add esp, 8
test eax, eax
je 0x4a9627
mov eax, 0xffff
add word [edi + 0x34], ax
mov eax, dword [esp + 0x10]
movzx eax, ax
jmp 0x4a965f
mov ecx, dword [ecx + 8]
jmp 0x4a9546
push str.expressions_prohibited_in_PRIMARY_KEY_and_UNIQUE_constraints
push ecx
call fcn.0045b840
add esp, 8
mov esi, dword [esp + 0xc]
jmp 0x4a9d53
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x44]
mov word [eax + edx*2], cx
mov eax, dword [esp + 0x20]
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 + 0x20]
mov ecx, dword [edi + 0x1c]
mov eax, dword [eax + 0x1c]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
inc edx
movzx eax, word [edi + 0x32]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
inc esi
movzx ecx, ax
movzx eax, word [edx + 0x32]
cmp esi, eax
jl 0x4a95d0
jmp 0x4a9689
mov eax, dword [edi + 4]
or ecx, 0xffffffff
mov word [eax + esi*2], cx
mov eax, dword [edi + 0x20]
mov dword [eax + esi*4], 0x5fa794
mov ecx, edi
call fcn.004a9e90
mov eax, dword [esp + 8]
cmp dword [eax + 0xe8], 0
jne 0x4a96a4
mov ecx, edi
call fcn.004a55f0
mov ecx, edi
call fcn.004a5710
cmp dword [esp + 0x2c], 0
je 0x4a9706
mov ecx, dword [esp + 0x14]
movzx esi, word [edi + 0x34]
movsx eax, word [ecx + 0x2a]
cmp esi, eax
jl 0x4a9706
or dword [edi + 0x38], 0x20
xor edx, edx
movsx eax, word [ecx + 0x2a]
mov dword [esp + 0x44], eax
test eax, eax
jle 0x4a9706
movsx ecx, word [ecx + 0x28]
mov dword [esp + 0x10], ecx
nop dword [eax]
cmp edx, ecx
je 0x4a97c1
xor eax, eax
test esi, esi
je 0x4a9702
mov ecx, dword [edi + 4]
cmp dx, word [ecx]
je 0x4a97ad
inc eax
add ecx, 2
cmp eax, esi
jl 0x4a96f1
and dword [edi + 0x38], 0xffffffdf
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x14]
cmp eax, dword [edx + 0xe8]
jne 0x4a9817
mov esi, dword [eax + 8]
mov dword [esp + 0x20], esi
test esi, esi
je 0x4a9817
movzx ecx, word [edi + 0x32]
nop dword [eax]
movzx eax, word [esi + 0x32]
cmp ax, cx
jne 0x4a9800
mov ecx, eax
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x4a97f4
mov eax, dword [esi + 4]
mov edi, dword [edi + 4]
sub eax, edi
mov dword [esp + 0x44], eax
nop dword [eax]
mov ax, word [eax + edi]
cmp ax, word [edi]
jne 0x4a97f0
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 0x20]
mov ecx, dword [ecx + 0x20]
mov eax, dword [eax + edx*4]
mov esi, dword [ecx + edx*4]
sub esi, eax
nop
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x4a97cf
test edx, edx
jne 0x4a97e1
mov edx, dword [esp + 0x10]
add edi, 2
mov ecx, dword [esp + 0x1c]
inc edx
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], edx
cmp edx, ecx
jl 0x4a9760
jmp 0x4a97f0
movzx eax, ax
test ax, ax
js 0x4a9702
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x10]
inc edx
cmp edx, eax
jl 0x4a96e0
jmp 0x4a9706
movzx ecx, byte [ecx + 0x5fad68]
movzx edx, byte [edx + 0x5fad68]
sub edx, ecx
jne 0x4a97e4
inc eax
jmp 0x4a9780
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
cmp edx, ecx
je 0x4a98d1
movzx ecx, word [edi + 0x32]
mov esi, dword [esi + 0x14]
mov dword [esp + 0x20], esi
test esi, esi
jne 0x4a9730
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x14]
cmp byte [edx + 0xcc], 2
mov esi, dword [esp + 0xc]
jae 0x4a9d1c
cmp byte [esi + 0xa5], 0
je 0x4a997d
cmp dword [esp + 0x2c], 0
je 0x4a9864
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + 0xa0]
mov dword [edi + 0x2c], ecx
mov eax, dword [eax + 8]
test eax, eax
je 0x4a9864
nop
cmp dword [eax + 0x2c], ecx
jne 0x4a985d
cmp eax, edi
jne 0x4a993b
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x4a9850
mov ecx, dword [edi + 0x18]
mov edx, dword [edi]
add ecx, 0x18
push edi
call fcn.0045d010
add esp, 4
test eax, eax
je 0x4a9974
cmp byte [esi + 0x51], 0
jne 0x4a9d53
cmp byte [esi + 0x52], 0
jne 0x4a9d53
cmp dword [esi + 0xbc], 0
mov byte [esi + 0x51], 1
jle 0x4a98a8
mov dword [esi + 0x110], 1
inc dword [esi + 0x118]
xor eax, eax
mov word [esi + 0x11c], ax
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x4a9d53
mov dword [eax + 0xc], 7
jmp 0x4a9d53
mov al, byte [esi + 0x36]
mov cl, byte [edi + 0x36]
cmp al, cl
je 0x4a9903
cmp al, 0xb
je 0x4a98f7
cmp cl, 0xb
je 0x4a98f7
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push dword [esp + 0x10]
call fcn.0045b840
add esp, 0xc
cmp byte [esi + 0x36], 0xb
jne 0x4a9903
mov al, byte [edi + 0x36]
mov byte [esi + 0x36], al
cmp byte [ebp + 0x28], 2
jne 0x4a9916
mov eax, dword [esi + 0x38]
and eax, 0xfffffffc
or eax, dword [esp + 0x48]
mov dword [esi + 0x38], eax
mov ecx, dword [esp + 8]
cmp byte [ecx + 0xcc], 2
jb 0x4a961e
mov eax, dword [ecx + 0xec]
mov dword [edi + 0x14], eax
mov dword [ecx + 0xec], edi
jmp 0x4a9d64
push str.invalid_rootpage
push edx
call fcn.0045b840
push 0x604454
push 0x1be97
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045ade0
mov eax, dword [esp + 0x24]
add esp, 0x1c
mov dword [eax + 0xc], 0xb
jmp 0x4a9d53
or dword [esi + 0x18], 1
jmp 0x4a9d18
test byte [eax + 0x24], 0x80
je 0x4a998f
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4a9d20
inc dword [edx + 0x2c]
mov esi, dword [edx + 8]
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x10], eax
test esi, esi
je 0x4a99ab
mov ecx, esi
lea eax, [edx + 0x74]
mov dword [esp + 0x3c], ecx
jmp 0x4a99db
cmp dword [edx + 0x74], 0
jne 0x4a99bd
mov eax, dword [edx]
test byte [eax + 0x4c], 8
jne 0x4a99bd
mov byte [edx + 0x17], 1
mov ecx, edx
call fcn.0047a090
mov edx, dword [esp + 8]
mov esi, eax
mov ecx, esi
mov dword [esp + 0x3c], ecx
lea eax, [edx + 0x74]
test esi, esi
je 0x4a961e
mov eax, dword [eax]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4a99ef
mov dword [esp + 0x20], edx
mov eax, edx
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x18]
shl dword [esp + 0x38], cl
mov edx, dword [eax + 0x54]
test dword [esp + 0x38], edx
jne 0x4a9a12
bts edx, ecx
mov dword [eax + 0x54], edx
cmp ecx, 1
jne 0x4a9a12
mov ecx, eax
call fcn.004ab2f0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + 0x50]
or byte [ecx + 0x14], 1
bts eax, edx
mov dword [ecx + 0x50], eax
mov edx, dword [esi + 0x6c]
cmp dword [esi + 0x70], edx
jg 0x4a9a53
push 0
push 0
push 0
mov edx, 0xad
mov ecx, esi
call fcn.0047a300
mov edx, eax
add esp, 0xc
mov eax, dword [esp + 0x3c]
add eax, 0x68
mov dword [esp + 0x38], eax
jmp 0x4a9a90
mov edi, dword [esp + 0x24]
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], 0xad
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 0x4a9ab7
mov edx, dword [esp + 0x10]
mov ecx, esi
push 2
push edx
push dword [esp + 0x20]
mov edx, 0x8b
call fcn.0047a300
add esp, 0xc
jmp 0x4a9aed
mov edx, dword [esp + 0x18]
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 + 0x10]
mov dword [eax + ecx*4], 0x8b
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 0x4a9b41
mov eax, dword [esp + 8]
mov edx, dword [eax + 0xc4]
add edx, dword [eax + 0xc0]
mov eax, dword [esp + 0x4c]
mov ecx, edx
mov eax, dword [eax]
sub ecx, eax
cmp byte [edx - 1], 0x3b
mov edx, str._UNIQUE
push eax
lea eax, [ecx - 1]
cmovne eax, ecx
cmp dword [esp + 0x5c], 0
push eax
mov eax, 0x5f8cb8
cmovne eax, edx
push eax
push str.CREATE_s_INDEX__.s
push dword [esp + 0x1c]
call fcn.0045aa50
add esp, 0x14
mov edi, eax
jmp 0x4a9b43
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
push edi
push dword [esp + 0x14]
push dword [eax]
mov eax, dword [esp + 0x30]
push dword [eax]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
push dword [eax + ecx]
push str.INSERT_INTO__Q.sqlite_master_VALUES_index__Q__Q__d__Q__
push dword [esp + 0x20]
call fcn.004a22f0
add esp, 0x1c
test edi, edi
je 0x4a9bce
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x1f8], 0
je 0x4a9b8d
mov edx, edi
call fcn.00457e30
jmp 0x4a9bce
cmp edi, dword [ecx + 0x14c]
jae 0x4a9bc5
cmp edi, dword [ecx + 0x144]
jb 0x4a9bad
mov eax, dword [ecx + 0x140]
mov dword [edi], eax
mov dword [ecx + 0x140], edi
jmp 0x4a9bce
cmp edi, dword [ecx + 0x148]
jb 0x4a9bc5
mov eax, dword [ecx + 0x138]
mov dword [edi], eax
mov dword [ecx + 0x138], edi
jmp 0x4a9bce
push edi
call fcn.00457dc0
add esp, 4
cmp dword [esp + 0x2c], 0
mov edi, dword [esp + 0x24]
je 0x4a9ca4
push dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, edi
call fcn.004a7f60
mov eax, dword [esp + 0xc]
add esp, 4
mov edx, dword [esp + 0x54]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x44], 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 + 0x48], eax
cmp dword [ecx + 0x70], eax
jg 0x4a9c2c
push edx
push 1
push dword [esp + 0x20]
mov edx, 0x5e
call fcn.0047a300
add esp, 0xc
jmp 0x4a9c65
mov edi, dword [esp + 0x18]
inc eax
mov dword [ecx + 0x6c], eax
mov eax, dword [esp + 0x48]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x5e
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push dword [edi]
push str.name_q_AND_typeindex
push dword [esp + 0x14]
call fcn.0045aa50
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0047a9e0
mov ecx, dword [esi + 0x6c]
add esp, 4
cmp dword [esi + 0x70], ecx
jg 0x4a9cbe
push 0
push 1
push 0
mov edx, 0x9e
mov ecx, esi
call fcn.0047a300
add esp, 0xc
mov edx, dword [esp + 0x38]
mov eax, dword [esi]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x48], ecx
cmp byte [eax + 0x51], 0
je 0x4a9cfa
mov eax, 0x60d7e0
jmp 0x4a9d11
mov edx, dword [esp + 0x38]
lea eax, [ecx + 1]
mov edi, dword [esp + 0x24]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x6c], eax
mov eax, dword [edx]
mov dword [eax + ecx*4], 0x9e
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 0x4a9ca8
lea eax, [ecx - 1]
mov ecx, dword [edi + 0x2c]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edx]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x2c]
cmp byte [esi + 0xa5], 0
jne 0x4a9d3e
test eax, eax
je 0x4a9d3e
cmp byte [edx + 0xcc], 2
jb 0x4a9d53
mov dword [edx + 0xec], edi
jmp 0x4a9d64
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 8], edi
jmp 0x4a9d64
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4a9d64
mov edx, eax
mov ecx, esi
call fcn.004a2b00
mov ecx, dword [esp + 0x14]
add ecx, 8
mov edx, dword [ecx]
test edx, edx
je 0x4a9da9
cmp byte [edx + 0x36], 5
je 0x4a9d82
lea ecx, [edx + 0x14]
mov edx, dword [ecx]
test edx, edx
jne 0x4a9d71
jmp 0x4a9da9
mov eax, dword [edx + 0x14]
test eax, eax
je 0x4a9da9
nop dword [eax]
cmp byte [eax + 0x36], 5
je 0x4a9da9
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 0x4a9d90
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x4a9dbe
mov edx, eax
mov ecx, esi
call fcn.00492560
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a9dcf
mov edx, eax
mov ecx, esi
call fcn.004936e0
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.004aa9b0
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4a9e71
cmp dword [esi + 0x1f8], 0
je 0x4a9e0c
mov edx, ecx
mov ecx, esi
call fcn.00457e30
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
cmp ecx, dword [esi + 0x14c]
jae 0x4a9e68
cmp ecx, dword [esi + 0x144]
jb 0x4a9e3e
mov eax, dword [esi + 0x140]
mov dword [ecx], eax
mov dword [esi + 0x140], ecx
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
cmp ecx, dword [esi + 0x148]
jb 0x4a9e68
mov eax, dword [esi + 0x138]
mov dword [ecx], eax
mov dword [esi + 0x138], ecx
pop edi
pop esi
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
push ecx
call fcn.00457dc0
add esp, 4
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret