Function at 0x5d39ec
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov ebx, eax
mov dword [esp], edx
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x24], 0
jne 0x5d3cd7
mov esi, dword [ebx + 0xf8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x3c]
call fcn.005ccec4
mov dword [esp + 8], eax
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 8]
shl ecx, 4
mov eax, dword [edi + 0x10]
mov edx, dword [eax + ecx]
mov eax, esi
mov dword [esp + 0xc], edx
mov ecx, dword [esi]
add ecx, 0x10
mov dword [esp + 0x10], ecx
movsx ecx, word [esi + 0x22]
mov edi, ecx
shl edi, 2
lea edi, [edi + edi*2]
add edi, dword [esi + 4]
add edi, 0xfffffff4
mov edx, edi
call fcn.005ce0bc
mov ebp, eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
call fcn.005cda20
mov dword [esp + 4], eax
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
push eax
push 0
mov ecx, dword [esp + 0x14]
mov edx, 0x1a
mov eax, ebx
call fcn.00622ff0
test eax, eax
je 0x5d3a90
jmp 0x5d3cd7
test byte [edi + 0xa], 1
je 0x5d3aa9
push str.Cannot_add_a_PRIMARY_KEY_column
push ebx
call fcn.00645028
add esp, 8
jmp 0x5d3cd7
cmp dword [esi + 8], 0
je 0x5d3ac2
push str.Cannot_add_a_UNIQUE_column
push ebx
call fcn.00645028
add esp, 8
jmp 0x5d3cd7
test byte [edi + 0xa], 0x60
jne 0x5d3b83
test ebp, ebp
je 0x5d3ade
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [ecx]
cmp eax, 0x79
jne 0x5d3ade
xor ebp, ebp
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
and eax, 0x4000
xor edx, edx
cmp edx, 0
jne 0x5d3af8
cmp eax, 0
je 0x5d3b18
cmp dword [esi + 0x30], 0
je 0x5d3b18
test ebp, ebp
je 0x5d3b18
push str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, ebx
call fcn.005d39d0
test byte [edi + 4], 0xf
je 0x5d3b36
test ebp, ebp
jne 0x5d3b36
push str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, ebx
call fcn.005d39d0
test ebp, ebp
je 0x5d3b9d
xor ecx, ecx
mov edx, ebp
mov dword [esp + 0x1c], ecx
push 0x41
lea ecx, [esp + 0x20]
push ecx
mov cl, 1
mov eax, dword [esp + 0x1c]
call fcn.0064888c
test eax, eax
je 0x5d3b5d
jmp 0x5d3cd7
cmp dword [esp + 0x1c], 0
jne 0x5d3b78
push str.Cannot_add_a_column_with_non_constant_default
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, ebx
call fcn.005d39d0
mov eax, dword [esp + 0x1c]
call fcn.00648c38
jmp 0x5d3b9d
test byte [edi + 0xa], 0x40
je 0x5d3b9d
push str.cannot_add_a_STORED_column
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, ebx
call fcn.005d39d0
mov edx, dword [esp]
mov eax, dword [edx + 4]
xor edx, edx
push edx
push eax
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx]
call fcn.0064d048
mov ebp, eax
test ebp, ebp
je 0x5d3c0a
mov eax, dword [esp]
mov eax, dword [eax + 4]
dec eax
add eax, ebp
jmp 0x5d3bcb
mov byte [eax], 0
dec eax
cmp ebp, eax
jae 0x5d3be1
cmp byte [eax], 0x3b
je 0x5d3bc7
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x67fab6], 1
jne 0x5d3bc7
mov ecx, dword [esp + 0x10]
push ecx
mov eax, dword [esi + 0x2c]
push eax
push ebp
push eax
mov edx, dword [esp + 0x1c]
push edx
push str.UPDATE___w_.sqlite_master_SET_sql__printf___._ds___sql____Q__substr_sql_1length_printf___._ds_sql____WHERE_type__table_AND_name___Q
push ebx
call fcn.005cd96c
add esp, 0x1c
mov edx, ebp
mov eax, dword [esp + 0x14]
call fcn.0064cb60
mov eax, ebx
call fcn.005f6808
mov ebp, eax
test ebp, ebp
je 0x5d3cd7
mov eax, ebx
call fcn.00622d30
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
push edx
push 2
mov ecx, dword [esp + 0x10]
mov edx, 0x63
mov eax, ebp
call fcn.00631f48
mov edx, dword [esp + 8]
mov eax, ebp
call fcn.00632ebc
push 0xfffffffffffffffe
mov ecx, dword [esp + 0x1c]
mov edx, 0x56
mov eax, ebp
call fcn.00631f34
mov eax, ebp
call fcn.0063252c
add eax, 2
mov edx, 0x3b
push eax
mov eax, ebp
mov ecx, dword [esp + 0x1c]
call fcn.00631f34
push 2
push 3
mov ecx, dword [esp + 0x10]
mov edx, 0x64
mov eax, ebp
call fcn.00631f48
mov edx, dword [esp + 0x18]
mov eax, ebx
call fcn.00622d50
mov cx, 3
mov edx, dword [esp + 8]
mov eax, ebx
call fcn.005d36dc
cmp dword [esi + 0x10], 0
jne 0x5d3cbf
test byte [edi + 4], 0xf
je 0x5d3cb5
test byte [edi + 0xa], 0x60
jne 0x5d3cbf
mov edx, dword [esp + 4]
test byte [edx + 0x1e], 1
je 0x5d3cd7
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
push ecx
push str.SELECT_CASE_WHEN_quick_check_GLOB_CHECK_THEN_raise_ABORT_CHECK_constraint_failed__WHEN_quick_check_GLOB_non__value_in_THEN_raise_ABORT_type_mismatch_on_DEFAULT__ELSE_raise_ABORT_NOT_NULL_constraint_failed__END__FROM_pragma_quick_check__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL_OR_quick_check_GLOB_non__value_in
push ebx
call fcn.005cd96c
add esp, 0x10
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret