Function at 0x45a370
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0
push ebx
mov ebx, dword [eax]
push esi
push edi
mov dword [esp + 0x18], ebx
jne 0x45a6c5
mov esi, dword [eax + 0xf4]
mov eax, dword [esi + 0x3c]
test eax, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], 0xffff8000
je 0x45a3cc
mov ecx, dword [ebx + 0x10]
add ecx, 0xc
cmp dword [ecx], eax
mov dword [esp + 0x14], 0
je 0x45a3cc
lea ebx, [ebx]
add dword [esp + 0x14], 1
add ecx, 0x10
cmp dword [ecx], eax
jne 0x45a3c0
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x10]
mov edi, dword [esi]
shl eax, 4
mov edx, dword [eax + ecx]
movsx eax, word [esi + 0x22]
mov ecx, dword [esi + 4]
shl eax, 4
lea eax, [eax + ecx - 0x10]
mov dword [esp + 0x1c], eax
movzx eax, word [eax + 0xc]
add edi, 0x10
xor ecx, ecx
cmp ax, cx
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], edi
je 0x45a42d
cmp byte [esi + 0x2b], cl
jne 0x45a42d
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x45a415
mov dword [esp + 0xc], ecx
jmp 0x45a431
movzx eax, ax
cmp dword [ecx], eax
jge 0x45a426
mov dword [esp + 0xc], 0
jmp 0x45a431
lea eax, [eax + eax*4]
mov ecx, dword [ecx + eax*4 - 0xc]
mov dword [esp + 0xc], ecx
push edx
push edi
call fcn.00460170
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
push 0
push edx
push eax
push 0x1a
mov eax, ebx
call fcn.0045f990
add esp, 0x18
test eax, eax
jne 0x45a6c5
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + 0xe]
test al, 1
je 0x45a47b
push str.Cannot_add_a_PRIMARY_KEY_column
mov esi, ebx
call fcn.0041cbf0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 8], 0
je 0x45a497
push str.Cannot_add_a_UNIQUE_column
mov esi, ebx
call fcn.0041cbf0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 0x60
jne 0x45a567
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x45a4bb
mov edx, dword [ecx + 0xc]
cmp byte [edx], 0x79
jne 0x45a4bb
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x20]
and eax, 0x4000
xor edx, edx
or eax, edx
je 0x45a4f2
cmp dword [esi + 0x30], edx
je 0x45a4f2
test ecx, ecx
je 0x45a4f2
mov ecx, dword [esp + 0x10]
push edi
push ecx
push str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call fcn.00460090
mov ecx, dword [esp + 0x1c]
add esp, 0x10
mov edx, dword [esp + 0x1c]
test byte [edx + 4], 0xf
je 0x45a50d
test ecx, ecx
jne 0x45a511
mov eax, dword [esp + 0x10]
push edi
push eax
push str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x45a576
test ecx, ecx
je 0x45a583
test ecx, ecx
mov dword [esp + 0xc], 0
je 0x45a544
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x10]
push edx
push 0x41
push 1
push ecx
push eax
call fcn.0043bc50
add esp, 0x18
test eax, eax
jne 0x45a6c5
cmp dword [esp + 0xc], eax
jne 0x45a55c
mov ecx, dword [esp + 0x10]
push edi
push ecx
push str.Cannot_add_a_column_with_non_constant_default
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call fcn.00460090
add esp, 0x10
mov esi, dword [esp + 0xc]
call fcn.0043c0f0
jmp 0x45a583
test al, 0x40
je 0x45a583
mov edx, dword [esp + 0x10]
push edi
push edx
push str.cannot_add_a_STORED_column
push str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call fcn.00460090
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x18]
mov ebx, dword [eax]
push 0
push ecx
push edx
call fcn.004198f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45a5fa
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
lea eax, [ecx + esi - 1]
cmp eax, esi
jbe 0x45a5cd
nop
mov cl, byte [eax]
cmp cl, 0x3b
je 0x45a5c3
movzx edx, cl
test byte [edx + 0x4c1818], 1
je 0x45a5cd
mov byte [eax], 0
sub eax, 1
cmp eax, esi
ja 0x45a5b0
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x2c]
mov ecx, dword [esp + 0x10]
mov ebx, dword [ebp + 8]
push edi
push eax
push esi
push eax
push ecx
push str.UPDATE___w_.sqlite_master_SET_sql__printf___._ds___sql____Q__substr_sql_1length_printf___._ds_sql____WHERE_type__table_AND_name___Q
call fcn.00460090
mov ecx, dword [esp + 0x30]
add esp, 0x18
mov eax, esi
call fcn.00419270
jmp 0x45a5fd
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.0047d640
mov esi, eax
test esi, esi
je 0x45a6c5
mov eax, ebx
call fcn.00459eb0
mov edi, dword [esp + 0x14]
push 2
mov ebx, eax
push ebx
push edi
push 0x63
push esi
call fcn.0043c3f0
mov edx, 1
mov ecx, edi
shl edx, cl
add esp, 0x14
or dword [esi + 0x9c], edx
cmp edi, 1
je 0x45a645
mov eax, esi
call fcn.0043d460
push 0
push 0xfffffffffffffffe
push ebx
push 0x56
push esi
call fcn.0043c3f0
mov eax, dword [esi + 0x6c]
add esp, 0x14
push 0
add eax, 2
push eax
push ebx
push 0x3b
push esi
call fcn.0043c3f0
add esp, 0x14
push 3
push 2
push edi
push 0x64
push esi
call fcn.0043c3f0
mov eax, dword [ebp + 8]
add esp, 0x14
mov edx, ebx
call fcn.00459ed0
mov esi, edi
mov ebx, 3
mov edi, eax
call fcn.0045a040
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x10], 0
jne 0x45a6ac
mov eax, dword [esp + 0x1c]
test byte [eax + 4], 0xf
je 0x45a6c5
test byte [eax + 0xe], 0x60
je 0x45a6c5
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push edx
push eax
push str.SELECT_CASE_WHEN_quick_check_GLOB_CHECK_THEN_raise_ABORT_CHECK_constraint_failed__ELSE_raise_ABORT_NOT_NULL_constraint_failed__END__FROM_pragma_quick_check__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL
mov ebx, edi
call fcn.00460090
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret